-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[hidden]{display:none !important;} #467
Comments
Another way we could tackle this would be to change our .d-flex:not([hidden]) { display: flex; } The problem I foresee is that if we put |
This actually begs the question: should we deprecate |
Done in #557! We should update the docs to reflect this, maybe with a clear set of rules like:
|
Closing because this is done. Thanks, @muan! |
We should add this to
primer-base
to better support custom elements, and potentially increase the selector specificity to override ourd-*
utility classes. This will encourage custom elements and JS behaviors to toggle visibility with thehidden
attribute rather than toggling thed-none
utility class.As more custom elements are extracted from github.com and designed to function separately from Primer, and as we consider other environments (such as React), we might even discuss deprecating
d-none
entirely. 😬/cc @muan
The text was updated successfully, but these errors were encountered: