Created
June 6, 2019 08:26
-
-
Save yuko-m/4e6d390ff3b29cc4dc8c6ae56e881447 to your computer and use it in GitHub Desktop.
`list-style: none` な `ul` `ol` が Safari で ARIA Role を失うので、忘れずに role=list で補うための対策
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$color-error: #c53d43; | |
$color-highlight: #fff; | |
@mixin unstyled-list { | |
margin-top: 0; | |
margin-bottom: 0; | |
padding-left: 0; | |
list-style: none; | |
&:not([role])::after { | |
content: "Safari のために role=list を記述しましょう"; | |
position: absolute; | |
padding-right: 0.5em; | |
padding-left: 0.5em; | |
border-radius: 4px; | |
background-color: $color-error; | |
color: $color-highlight; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment