Checkbox: Hidden input styles #2766
-
|
Hi everyone, I have a question regarding the styles of the hidden input elements. border:0;
clip:rect(0 0 0 0);
height:1px;
margin:-1px;
overflow:hidden;
padding:0;
position:absolute;
width:1px;
white-space:nowrap;
word-wrap:normal;The |
Beta Was this translation helpful? Give feedback.
Answered by
segunadebayo
Oct 10, 2025
Replies: 1 comment
-
|
This is the recommended way to hide an element visually while making it accessible to screen readers. Please add position relative as needed in your style to the checkbox root or control. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
segunadebayo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the recommended way to hide an element visually while making it accessible to screen readers.
Please add position relative as needed in your style to the checkbox root or control.