fix: survey runtime accessibility for keyboard controls (#7927)

This commit is contained in:
Javi Aguilar
2026-05-06 12:21:42 +02:00
committed by GitHub
parent d103499496
commit 255c97854f
2 changed files with 5 additions and 2 deletions
@@ -75,7 +75,11 @@ export function ElementMedia({ imgUrl, videoUrl, altText = "Image", className }:
target="_blank"
rel="noreferrer"
aria-label={t("common.open_in_new_tab")}
className="absolute right-2 bottom-2 flex items-center gap-2 rounded-md bg-slate-800/40 p-1.5 text-white opacity-0 backdrop-blur-lg transition duration-300 ease-in-out group-hover/image:opacity-100 hover:bg-slate-800/65">
className={cn(
"absolute right-2 bottom-2 flex items-center gap-2 rounded-md bg-slate-800/40 p-1.5",
"text-white backdrop-blur-lg transition duration-300 ease-in-out",
"opacity-0 group-hover/image:opacity-100 hover:bg-slate-800/65 focus:opacity-100"
)}>
{imgUrl ? <ImageDownIcon size={20} /> : <ExpandIcon size={20} />}
</a>
</div>
@@ -88,7 +88,6 @@ export function LanguageSwitch({
borderRadius: typeof borderRadius === "number" ? `${borderRadius}px` : borderRadius,
}}
onClick={toggleDropdown}
tabIndex={-1}
aria-haspopup="true"
aria-expanded={showLanguageDropdown}
aria-label={t("common.language_switch")}