]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update btn-close-white docs to filter (not backdrop-filter) (#31796)
authorChristian Oliff <christianoliff@pm.me>
Wed, 30 Sep 2020 11:57:00 +0000 (20:57 +0900)
committerGitHub <noreply@github.com>
Wed, 30 Sep 2020 11:57:00 +0000 (14:57 +0300)
This PR fixes an error in the v5 docs. The btn-close-white class actually uses the filter (not backdrop-filter)

site/content/docs/5.0/components/close-button.md
site/content/docs/5.0/migration.md

index ba4d17bdc54348245f7dd0c536590c3a27eb60c4..a6bb3f4c06d99c98c3b33b7f26d47b221e7367a9 100644 (file)
@@ -24,7 +24,7 @@ Disabled close buttons change their `opacity`. We've also applied `pointer-event
 
 ## White variant
 
-Change the default `.btn-close` to be white with the `.btn-close-white` class. This class uses the `backdrop-filter` property to invert the `background-image`.
+Change the default `.btn-close` to be white with the `.btn-close-white` class. This class uses the `filter` property to invert the `background-image`.
 
 {{< example class="bg-dark" >}}
 <button type="button" class="btn-close btn-close-white" aria-label="Close"></button>
index 13fdcafadf5832cc9ae012a6017b68be18929c90..8773394495e26c47d7a6078e1279367ea2875530 100644 (file)
@@ -65,7 +65,7 @@ toc: true
 - Renamed `.close` to `.btn-close` for a less generic name.
 - Close buttons now use a `background-image` (embedded SVG) instead of a `&times;` in the HTML, allowing for easier customization without the need to touch your markup.
 - Added new variables to better control the customization.
-- Added new `.btn-close-white` variant that uses `backdrop-filter: invert(1)` to enable higher contrast dismiss icons against darker backgrounds.
+- Added new `.btn-close-white` variant that uses `filter: invert(1)` to enable higher contrast dismiss icons against darker backgrounds.
 
 #### Collapse