Skip to content

Commit

Permalink
Fix toast button focus outline contrast ratio
Browse files Browse the repository at this point in the history
Fixes AB#1137
  • Loading branch information
dpwatrous committed Oct 19, 2023
1 parent e423edc commit 08663a2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions desktop/src/@batch-flask/ui/notifications/toast/toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ bl-toast {
background-color: $warn-color;
}

&.success > .focus-outline.focus-visible {
outline-color: $success-contrast-color;
}

&.error > .focus-outline.focus-visible {
outline-color: $danger-contrast-color;
}

&.info > .focus-outline.focus-visible {
outline-color: $primary-contrast-color;
}

&.warn > .focus-outline.focus-visible {
outline-color: $warn-contrast-color;
}

&.notification-hidden {
opacity: 0;
}
Expand All @@ -58,6 +74,7 @@ bl-toast {

> .dismiss-btn {
cursor: pointer;
padding: 2px;
.fa-times {
color: $primary-contrast-color;
}
Expand Down

0 comments on commit 08663a2

Please sign in to comment.