Skip to content

Commit

Permalink
feat: accessibility - adjust colors to have a sufficient contrast rat…
Browse files Browse the repository at this point in the history
…io - update secondary form button
  • Loading branch information
andreassteinmann committed Aug 22, 2024
1 parent a3dea53 commit 44d8e6b
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions src/styles/global/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,35 @@
}

&-secondary {
color: $button-default-color;
background-color: $button-default-bg;
border-color: $button-default-border;

&:hover {
color: $button-default-color;
background-color: $color-tertiary;
border-color: $CORPORATE-SECONDARY;
}

&:focus,
&.focus {
color: $button-default-color;
background-color: $color-tertiary;
border-color: $CORPORATE-SECONDARY;
box-shadow: 0 0 0 $btn-focus-width $CORPORATE-SHADOW;
}

&.disabled,
&:disabled {
color: $text-color-secondary;
background-color: $button-default-bg;
border-color: $border-color-light;
}

&:not(:disabled):not(.disabled):active,
&:not(:disabled):not(.disabled).active {
background-color: $CORPORATE-SECONDARY;
color: $button-default-color;
background-color: $color-tertiary;
border-color: $CORPORATE-SECONDARY;

&:focus {
Expand All @@ -86,23 +107,6 @@
line-height: inherit;
vertical-align: baseline;
}

&.btn-secondary {
color: $button-default-color;
background-color: $button-default-bg;
border-color: $button-default-border;

&.disabled,
&:disabled {
color: $text-color-secondary;
border-color: $border-color-light;
}

&:not(:disabled):hover {
background-color: $color-tertiary;
border-color: $CORPORATE-SECONDARY;
}
}
}

.btn-lg {
Expand Down

0 comments on commit 44d8e6b

Please sign in to comment.