Fix display issues of close button in contextual light and dark modes#41126
Fix display issues of close button in contextual light and dark modes#41126julien-deramond merged 4 commits intomainfrom
Conversation
2a67d59 to
577dcb0
Compare
577dcb0 to
761d57e
Compare
louismaximepiton
left a comment
There was a problem hiding this comment.
The only regression I can see here is for people overriding directly --bs-btn-close-white-filter and not the Scss variable. I think that this patch is more asked than the workaround I underline here. I'm fine with the changes.
I forgot to mention it in the description, you're right. I don't think that the override of |
Caution
Before merging,
close-button.mdmodifications must be revertedDescription
Following up the PR for the carousel display issues in contextual light and dark modes at #40695, this PR also fixes the same kind of
filterissue.This PR will close #39765.
The light in dark mode doesn't work in the main branch:
The idea is to rely on custom properties so that there's never a specificity issue when nesting color modes (light mode in dark mode, and dark mode in light mode) (see more info in #40695)
/cc @louismaximepiton
Type of changes
Checklist
npm run lint)Live previews
Related issues
Closes #39765