Improve focus styles

Pushed-by: Philipp Ahrendt<philipp.ahrendt@cloudogu.com>
Co-authored-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Co-authored-by: Philipp Ahrendt<philipp.ahrendt@cloudogu.com>
This commit is contained in:
Philipp Ahrendt
2024-11-14 14:31:10 +01:00
parent df0582dfd8
commit f2a5ff2d09
4 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
- type: changed
description: Improved contrast for focus indicator in dark and high contrast mode
- type: changed
description: Not showing the focus indicator, when using a pointer device

View File

@@ -357,7 +357,7 @@ a.has-text-secondary-most:focus {
}
a {
&:focus,
&:focus-visible,
&.is-focused {
outline: $focus-outline-color 2px solid;
outline-offset: 1px;
@@ -365,7 +365,7 @@ a {
}
button, .button {
&:focus,
&:focus-visible,
&.is-focused {
outline: $focus-outline-color $focus-outline-style;
outline-offset: $focus-outline-offset;
@@ -861,6 +861,10 @@ form .field:not(.is-grouped) {
color: $link;
background-color: $scheme-main;
}
&:focus-visible {
outline-offset: -4px;
}
}
> li {

View File

@@ -70,6 +70,9 @@ $button-active-color: lighten($text-strong, 2.5%);
$table-row-hover-background-color: $grey-darker;
/* Focus for Buttons */
$focus-outline-color: #C777EE;
/* Components */
$card-background-color: $box-background-color;

View File

@@ -58,6 +58,9 @@ $box-background-color: $grey-darker;
$table-row-hover-background-color: $grey-darker;
/* Focus for Buttons */
$focus-outline-color: #C777EE;
/* Components */
$menu-label-color: $scheme-main;
$menu-item-color: $white-ter;