You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add data-bs-theme="dark" to the .btn-close, or to its parent element, to invert the close button.
It however doesn't work, when the data-bs-theme="dark" is placed on the btn-close itself, it only works, when it's placed on a parent. This is due to the SASS:
This workaround allows to use `data-bs-theme="dark"` directly on
`btn-close` tags to honor documentation and support use cases where a
white button is required in all themes
Fixtwbs#38853
@tagliala seems to have provided a patch for this to match the documented behavior although I don't see any pull requests for it here. Bummer its gotten pushed twice now for such a seemingly simple patch.
Prerequisites
Describe the issue
According to the documentation,
It however doesn't work, when the
data-bs-theme="dark"
is placed on the btn-close itself, it only works, when it's placed on a parent. This is due to the SASS:Reduced test cases
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.0
The text was updated successfully, but these errors were encountered: