Last active
April 6, 2025 12:22
-
Star
(131)
You must be signed in to star a gist -
Fork
(45)
You must be signed in to fork a gist
-
-
Save luxplanjay/6f6936b1bba7afe006fa9317b07b6045 to your computer and use it in GitHub Desktop.
Visually hidden CSS pattern
Если надо скрыть элементы от скрин-ридеров и убрать выделение табом и мышкой:
.is-hidden {
visibility: hidden;
pointer-events: none;
position: absolute;
}
ty =)
thank you!
cool. thanks
Thanks)
Thanks a lot!
thanks)
Use outline: transparent instead of outline:0 for compatibility with Windows High Contrast Mode.
oooooo assalomu alekom bratiim qandaysiiz ozbela bormi Uzbekistan
visually hidden means it can be "seen" by blind people using screen readers, but not by sighted people (no part of the item styled this way is drawn visually, because the clip rect is empty, but this item is still "visible" in the DOM.)
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add these: