Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility: Tlačidlo pre zatvorenie dialógového okna nemá menovku #104

Open
rraddatch opened this issue Nov 16, 2024 · 0 comments
Open

Comments

@rraddatch
Copy link

Tlačidlo pre zatvorenie dialógového okna nemá menovku.
Nevidiaci používateľ nevie aký je účel tohto tlačidla.

Riešenie:

<button aria-label="Zatvoriť okno" class="close">
     <span class="sr-only">Zatvoriť okno</span>
     <svg role="img" aria-hidden="true">...</svg>
     ...
</button>
.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;
}

2024-11-16_14h53_04
2024-11-16_14h58_03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant