Skip to content

Commit

Permalink
fix(a11y): apply the right colors for ordered and unordered lists (#1248
Browse files Browse the repository at this point in the history
)
  • Loading branch information
louismaximepiton authored May 31, 2022
1 parent f66fec2 commit 726df16
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,12 @@ ul {
// See https://developer.mozilla.org/fr/docs/Web/CSS/::marker
// stylelint-disable selector-max-type
li::marker {
color: $accessible-orange;
color: var(--#{$prefix}link-hover-color);
vertical-align: middle;

ol & {
color: inherit;
}
}

li li::marker { color: $gray-600; }
Expand All @@ -244,8 +248,12 @@ li li li::marker { color: $gray-500; }
// @todo To remove when ::marker support is OK
// See https://caniuse.com/#search=%3A%3Amarker
li::before {
color: $accessible-orange;
color: var(--#{$prefix}link-hover-color);
vertical-align: text-top;

ol & {
color: inherit;
}
}

li li::before { color: $gray-600; }
Expand Down

0 comments on commit 726df16

Please sign in to comment.