Bundled themes: update CSS rules for `.screen-reader-text` to be consistent with current accessibility guidelines. Fixes #31279.
Built from https://develop.svn.wordpress.org/trunk@31464 git-svn-id: http://core.svn.wordpress.org/trunk@31445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
49b4c405ff
commit
e23a918599
|
@ -17,7 +17,7 @@ body.custom-background-white .site {
|
||||||
}
|
}
|
||||||
.assistive-text,
|
.assistive-text,
|
||||||
.site .screen-reader-text {
|
.site .screen-reader-text {
|
||||||
clip: rect(1px 1px 1px 1px); /* IE7 */
|
clip: rect(1px 1px 1px 1px);
|
||||||
}
|
}
|
||||||
.full-width .site-content {
|
.full-width .site-content {
|
||||||
float: none;
|
float: none;
|
||||||
|
|
|
@ -506,6 +506,9 @@ a:hover {
|
||||||
.site .screen-reader-text {
|
.site .screen-reader-text {
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
clip: rect(1px, 1px, 1px, 1px);
|
clip: rect(1px, 1px, 1px, 1px);
|
||||||
|
overflow: hidden;
|
||||||
|
height: 1px;
|
||||||
|
width: 1px;
|
||||||
}
|
}
|
||||||
.main-navigation .assistive-text:focus,
|
.main-navigation .assistive-text:focus,
|
||||||
.site .screen-reader-text:hover,
|
.site .screen-reader-text:hover,
|
||||||
|
|
Loading…
Reference in New Issue