Accessibility: Improve the way Safari and VoiceOver read out the screen reader text.
Sometimes, Safari and VoiceOver read out the text hidden with `screen-reader-text` in a wrong order. While there's no known, full, solution, it is possible to make them respect the correct order reliably at least within buttons. Fixes #42006. git-svn-id: https://develop.svn.wordpress.org/trunk@44543 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ba6f1ff56e
commit
3b3808feeb
@ -134,6 +134,10 @@
|
||||
word-wrap: normal !important; /* many screen reader and browser combinations announce broken words as they would appear visually */
|
||||
}
|
||||
|
||||
.button .screen-reader-text {
|
||||
height: auto; /* Fixes a Safari+VoiceOver bug, see ticket #42006 */
|
||||
}
|
||||
|
||||
.screen-reader-shortcut {
|
||||
position: absolute;
|
||||
top: -1000em;
|
||||
|
Loading…
Reference in New Issue
Block a user