Mohamed Wagdy• 240
@MohamedWagdy7
Posted
- To tackle the accessibility issues. you can add a
<h1>
withclass="sr-only"
(Hidden visually, but present for assistive tech).
.sr-only {
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important;
}
Marked as helpful
1
Gabriel_BC• 300
@GabrielBC2021
Posted
@MohamedWagdy7 Thank you so much for this helpful piece of code, I really appreciate it.
0