Skip to content

Commit

Permalink
Fix primefaces#12577: Screenreader improve hidden accessible (primefa…
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Sep 12, 2024
1 parent a8b7ca7 commit d821a98
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
.ui-helper-hidden-accessible input,
.ui-helper-hidden-accessible select {
-webkit-transform: scale(0);
-moz-transform: scale(0);
transform: scale(0);
}

.ui-shadow {
-moz-box-shadow: 0px 5px 10px rgba(0,0,0,0.8);
-webkit-box-shadow: 0px 5px 10px rgba(0,0,0,0.8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
padding: 0.3em;
}

.ui-icon {
display: block;
vertical-align: baseline;
.ui-icon {
display: block;
margin-top: 0px;
}

/* https://stackoverflow.com/a/62109988/502366 */
/* Modern override for all browsers and screenreaders */
.ui-helper-hidden-accessible {
border: 0 !important;
padding: 0 !important;
margin: -1px !important;
border: unset;
clip: unset;
height: unset;
margin: unset;
overflow: unset;
padding: unset;
width: unset;
position: absolute !important;
height: 1px !important;
width: 1px !important;
overflow: hidden !important;
clip: rect(1px, 1px, 1px, 1px) !important; /* Legacy Browsers */
clip-path: inset(50%) !important; /* Modern Browsers */
pointer-events: none !important;
opacity: 0 !important;
white-space: nowrap !important;
}

0 comments on commit d821a98

Please sign in to comment.