-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide class names for major elements for custom CSS #435
Comments
Hey guys, sorry for the noob question but I legit do not know and have been looking for myself for a while now... Where can we find what the new names are for 2.3.1? I'd like to update my css so it at least works in the meantime. Thx in advance! |
Using Chrome, right click on the page -> Inspect. Look around and you should find the names. |
A handy CSS feature I've found useful situations like these where I can't rely on consistent class names or styles is the CSS attribute selector.
For example, in your CSS: .Layout_Container__2Hv3J would instead be: [class*="Layout_Container"] You can select elements with specific a[href="/applications"] MDN has a great guide to CSS attribute selectors here: That said, it would be ideal to have major, consistent CSS classes available for styling without needing to work around the lack of them haha. |
Currently, class names get auto generated, leaving us to think of some creative ways to access selectors for custom css implementation and confusion (see #434, #433). I propose we add a simple class name to every major element. For example, currently the app grid for applications looks like this:
The
__33iLW
suffix will be changed with every build, making the class name unreliable for targeting the element between updates. We could change it to something likewith a static class name. I think every element with an auto generated name (e.g.
.Layout_Container__2Hv3J
,.Header_Header__2oavH
,.BookmarkGrid_BookmarkGrid__26LlR
,.Home_SettingsButton__Qvn8C
)would benefit from the static class names, as well asdiv
<a href="/applications">
<a href="/bookmarks">
For reference how complicated this can get without, this is my current setup to add a "Search:" prefix in front of the search bar:
Open me
The text was updated successfully, but these errors were encountered: