mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user