Skip to content

Commit 5d86afd

Browse files
committed
Announce nav ol, nav ul list semantics on Safari with VoiceOver
1 parent 54a7da3 commit 5d86afd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

sanitize.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ nav ul {
120120
padding: 0;
121121
}
122122

123+
/**
124+
* Prevent VoiceOver from ignoring list semantics in Safari (opinionated).
125+
*/
126+
127+
nav li::before {
128+
content: "\200B";
129+
}
130+
123131
/**
124132
* 1. Correct the inheritance and scaling of font size in all browsers.
125133
* 2. Correct the odd `em` font sizing in all browsers.

0 commit comments

Comments
 (0)