diff options
| author | Christian Oliff <[email protected]> | 2020-09-30 20:57:00 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-30 14:57:00 +0300 |
| commit | c5966de27395a407f9a3d20d0eb2ff8e8fb7b564 (patch) | |
| tree | 5c24abc04c6c90e4f4c71410e37cf9494885b3c0 | |
| parent | dd5ad8fb528319c2e3f109b23037ec22dad456e7 (diff) | |
| download | bootstrap-c5966de27395a407f9a3d20d0eb2ff8e8fb7b564.tar.xz bootstrap-c5966de27395a407f9a3d20d0eb2ff8e8fb7b564.zip | |
Update btn-close-white docs to filter (not backdrop-filter) (#31796)
This PR fixes an error in the v5 docs. The btn-close-white class actually uses the filter (not backdrop-filter)
| -rw-r--r-- | site/content/docs/5.0/components/close-button.md | 2 | ||||
| -rw-r--r-- | site/content/docs/5.0/migration.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.0/components/close-button.md b/site/content/docs/5.0/components/close-button.md index ba4d17bdc..a6bb3f4c0 100644 --- a/site/content/docs/5.0/components/close-button.md +++ b/site/content/docs/5.0/components/close-button.md @@ -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> diff --git a/site/content/docs/5.0/migration.md b/site/content/docs/5.0/migration.md index 13fdcafad..877339449 100644 --- a/site/content/docs/5.0/migration.md +++ b/site/content/docs/5.0/migration.md @@ -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 `×` 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 |
