Replies: 1 comment 1 reply
-
This "hash" is there for a reason, to automatically avoid conflicts between similar class names we (+ third party) theme authors might use. For example In the document linked, we mention you can create CSS selectors that ignore the hash suffix:
Note that you can also swizzle wrap components and add your own stable class names if we don't provide any. And if you detail the CSS targeting use case you have, we could consider adding new stable classes to help you target things more reliably. |
Beta Was this translation helpful? Give feedback.
-
When building the site, the classnames for native Docusaurus components receive randomized postfixes e.g.:
In build:
![image](https://private-user-images.githubusercontent.com/47085752/319189627-b1e9ae5c-2b7a-417b-8213-0ab08643e086.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NjQyMDcsIm5iZiI6MTczODk2MzkwNywicGF0aCI6Ii80NzA4NTc1Mi8zMTkxODk2MjctYjFlOWFlNWMtMmI3YS00MTdiLTgyMTMtMGFiMDg2NDNlMDg2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDIxMzE0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE2MzNlNTViZTZlYjNlYWY5NjM1MWVkY2VhMmY0OWJiYzQ5ZjlmM2UyMWJhZDZlMzI1ZTFkZTQ3MDdhZTQ3NDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.l9qsrCMSA3RoQ3x_DGnsN4wvuTK7KAPdML6arwuFvq0)
In dev:
![image](https://private-user-images.githubusercontent.com/47085752/319190493-fab5e0fd-0969-4971-ae84-f071aba1b1b7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NjQyMDcsIm5iZiI6MTczODk2MzkwNywicGF0aCI6Ii80NzA4NTc1Mi8zMTkxOTA0OTMtZmFiNWUwZmQtMDk2OS00OTcxLWFlODQtZjA3MWFiYTFiMWI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDIxMzE0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI2NTQxMTkwZjBiNzY4NTk4ODZiMTUzY2ZkM2UyNjQ0YmEwYzE4NmE0OWUyMjM0MzdiM2Y0NWUyMjliZWM2MzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OG6pTCHdkzzvx5zkVpKl1nBWB4CzMzYx_jFilvPvYpg)
Is there an option we can use to opt out of this optimization step? I'm aware of potential performance drawbacks.
Motivation: This would simplify adding custom CSS on native components that are not targetable via the exposed classnames found here
Beta Was this translation helpful? Give feedback.
All reactions