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
Make .close
hover focus styles less specific
#27785
Conversation
.close
hover focus styles less specific (#27784).close
hover focus styles less specific
We moved to this approach awhile ago across most of the project to simplify our the amount of code to properly disable things. If we change it here, I fear we need to change it everywhere. Are there other places we need to revisit as well? |
Changing it across the board is my preference, but might cause some unintended consequences for any Bootstrap themes in the wild.
came too late unfortunately. What if we kept:
and moved the hover-focus opacity outside of that selector? |
1e8c581
to
82f728b
Compare
That solution could work perhaps, but then we're still adding extra selectors. Going to have to review this more in-depth. |
@mdo if you prefer to change it everywhere, I can resend with changes everywhere. |
I do not know why
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Accessibility_concerns If we drop support of |
Because sadly, many authors (either directly, or indirectly because their tooling does it) like to misuse |
@patrickhlauke OK I understand. @pat270 could you fix the conflict ? |
This pull removes the
&:not(:disabled):not(.disabled)
selector on the.close
component and styles:disabled
/.disabled
directly because the:not
pseudo classes are too hard to overwrite (breaks for people that extended.close
based on the old version).Also added variables:
Fixes #27784