Merge pull request #20148 from owncloud/checkbox-accessibility

Make new checkbox style accessible for screenreaders
This commit is contained in:
Thomas Müller 2015-11-11 17:12:38 +01:00
commit 2479363492
1 changed files with 6 additions and 5 deletions

View File

@ -164,11 +164,12 @@ textarea:hover, textarea:focus, textarea:active {
/* ie8 doesn't support :checked */ /* ie8 doesn't support :checked */
html:not(.ie8) input[type="checkbox"].checkbox { html:not(.ie8) input[type="checkbox"].checkbox {
margin:0; position: absolute;
padding:0; left:-10000px;
height:auto; top: auto;
width:auto; width: 1px;
display: none; height: 1px;
overflow: hidden;
} }
html:not(.ie8) input[type="checkbox"].checkbox + label:before { html:not(.ie8) input[type="checkbox"].checkbox + label:before {