mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-14 19:42:11 +01:00
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:
4
gradle/changelog/improve-focus-style.yaml
Normal file
4
gradle/changelog/improve-focus-style.yaml
Normal 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
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user