Skip to content

Commit

Permalink
Add focus on color mode
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton committed Oct 4, 2023
1 parent c6c74bb commit 51461bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@
--#{$prefix}border-color: #{$border-color-dark};
--#{$prefix}border-color-translucent: #{$border-color-translucent-dark};

--#{$prefix}focus-visible-inner-color: #{$focus-visible-inner-color-dark}; // Boosted mod
--#{$prefix}focus-visible-outer-color: #{$focus-visible-outer-color-dark}; // Boosted mod

--#{$prefix}form-valid-color: #{$form-valid-color-dark};
--#{$prefix}form-valid-border-color: #{$form-valid-border-color-dark};
--#{$prefix}form-invalid-color: #{$form-invalid-color-dark};
Expand Down
3 changes: 3 additions & 0 deletions scss/_variables-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ $code-color-dark: tint-color($code-color, 40%) !default;
$mark-color-dark: $black !default; // Boosted mod: instead of `$body-color-dark`
$mark-bg-dark: $white !default; // Boosted mod: instead of `$yellow-800`

$focus-visible-inner-color-dark: $black !default; // Boosted mod
$focus-visible-outer-color-dark: $white !default; // Boosted mod

//
// Forms
//
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,11 @@ $outline-offset: $outline-width !default; // Deprecated in v5.2.3
$focus-visible-zindex: 5 !default; // Boosted mod

$focus-visible-inner-width: 2px !default; // Boosted mod
$focus-visible-inner-color: var(--#{$prefix}body-bg) !default; // Boosted mod
$focus-visible-inner-color: $white !default; // Boosted mod

$focus-visible-outer-width: 3px !default; // Boosted mod
$focus-visible-outer-offset: $focus-visible-inner-width !default; // Boosted mod
$focus-visible-outer-color: var(--#{$prefix}emphasis-color) !default; // Boosted mod
$focus-visible-outer-color: $black !default; // Boosted mod
// scss-docs-end focus-visible-variables

// scss-docs-start box-shadow-variables
Expand Down

0 comments on commit 51461bd

Please sign in to comment.