From 6794e7276b4c97e6400a1dd0cff9b90e54bffdbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Tue, 21 Feb 2023 09:21:38 +0100 Subject: [PATCH] Drop unused `--bs-focus-ring-box-shadow` and add documentation for `--bs-focus-ring-{x|y|blur}` --- scss/_root.scss | 2 -- site/content/docs/5.3/helpers/focus-ring.md | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scss/_root.scss b/scss/_root.scss index 2219ba03232f..e7cff705618d 100644 --- a/scss/_root.scss +++ b/scss/_root.scss @@ -120,8 +120,6 @@ --#{$prefix}focus-ring-width: #{$focus-ring-width}; --#{$prefix}focus-ring-opacity: #{$focus-ring-opacity}; --#{$prefix}focus-ring-color: #{$focus-ring-color}; - // By default, there is no `--bs-focus-ring-x`, `--bs-focus-ring-y`, or `--bs-focus-ring-blur`, but we provide CSS variables with fallbacks to initial `0` values - --#{$prefix}focus-ring-box-shadow: var(--#{$prefix}focus-ring-x, 0) var(--#{$prefix}focus-ring-y, 0) var(--#{$prefix}focus-ring-blur, 0) var(--#{$prefix}focus-ring-width) var(--#{$prefix}focus-ring-color); // scss-docs-end root-focus-variables // scss-docs-start root-form-validation-variables diff --git a/site/content/docs/5.3/helpers/focus-ring.md b/site/content/docs/5.3/helpers/focus-ring.md index 2a71975ccce0..5f6e770734cc 100644 --- a/site/content/docs/5.3/helpers/focus-ring.md +++ b/site/content/docs/5.3/helpers/focus-ring.md @@ -37,6 +37,14 @@ Modify the `--bs-focus-ring-*` CSS variables as needed to change the default app {{< scss-docs name="root-focus-variables" file="scss/_root.scss" >}} +By default, there is no `--bs-focus-ring-x`, `--bs-focus-ring-y`, or `--bs-focus-ring-blur`, but we provide CSS variables with fallbacks to initial `0` values. Modify them to change the default appearance. + +{{< example >}} + + Blurry offset focus ring + +{{< /example >}} + ### Sass Customize the focus ring Sass variables to modify all usage of the focus ring styles across your Bootstrap-powered project.