Browse Source

Fix .infield labels not being readable by screenreaders

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
tags/v16.0.0alpha1
Jan-Christoph Borchardt 5 years ago
parent
commit
58ecd86f55
No account linked to committer's email address
3 changed files with 13 additions and 12 deletions
  1. 2
    6
      core/css/guest.css
  2. 11
    0
      core/css/inputs.scss
  3. 0
    6
      core/css/styles.scss

+ 2
- 6
core/css/guest.css View File

@@ -331,12 +331,6 @@ input[type='checkbox'].checkbox--white:checked + label:before {
background-image: url('../img/actions/checkbox-mark-white.svg');
}


/* keep the labels for screen readers but hide them since we use placeholders */
label.infield {
display: none;
}

/* Password strength meter */
.strengthify-wrapper {
display: inline-block;
@@ -838,6 +832,8 @@ footer .info .entity-name {
display: none;
}

/* keep the labels for screen readers but hide them since we use placeholders */
label.infield,
.hidden-visually {
position: absolute;
left:-10000px;

+ 11
- 0
core/css/inputs.scss View File

@@ -917,3 +917,14 @@ progress {
animation-duration: .7s;
animation-timing-function: ease-out;
}

// Keep the labels for screen readers but hide them since we use placeholders
// Same as .hidden-visually
label.infield {
position: absolute;
left:-10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}

+ 0
- 6
core/css/styles.scss View File

@@ -256,12 +256,6 @@ body {
user-select: none;
}

/* keep the labels for screen readers but hide them since we use placeholders */

label.infield {
display: none;
}

/* Show password toggle */

#show, #dbpassword {

Loading…
Cancel
Save