Skip to content

Commit 76b4f30

Browse files
authored
[6.x] Make the focus outline color themeable (#13048)
1 parent 62935d7 commit 76b4f30

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

packages/ui/src/ui.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
--color-global-header-bg: var(--theme-color-global-header-bg);
3030
--color-dark-global-header-bg: var(--theme-color-dark-global-header-bg);
3131
--color-progress-bar: var(--theme-color-progress-bar);
32+
--color-focus-outline: var(--theme-color-focus-outline);
3233
--color-ui-accent-bg: var(--theme-color-ui-accent-bg);
3334
--color-ui-accent-text: var(--theme-color-ui-accent-text);
3435
--color-dark-ui-accent-bg: var(--theme-color-dark-ui-accent-bg);

resources/css/elements/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/* Here we typically need a negative outline-offset because of the inner shadow on inputs */
99
--focus-outline-offset: -1px;
1010
--focus-within-outline-offset: 0px;
11-
--focus-outline-color: var(--color-blue-400);
11+
--focus-outline-color: var(--theme-color-focus-outline, var(--color-blue-400));
1212
--focus-outline-style: solid;
1313

1414
/* The outline-offset value used for buttons */

src/CP/Color.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ public static function defaults(): array
391391
'global-header-bg' => self::Zinc[800],
392392
'dark-global-header-bg' => self::Zinc[800],
393393
'progress-bar' => self::Indigo[700],
394+
'focus-outline' => self::Blue[400],
394395
'ui-accent-bg' => self::Indigo[700],
395396
'ui-accent-text' => 'var(--theme-color-ui-accent-bg)',
396397
'dark-ui-accent-bg' => self::Indigo[700],

0 commit comments

Comments
 (0)