️(frontend) fix carousel focus ring visibility with NVDA

add :focus fallback for nav buttons when focus-visible detection fails
This commit is contained in:
Cyril
2026-02-26 09:23:26 +01:00
committed by aleb_the_flash
parent 116db1e697
commit 4881fa20f5

View File

@@ -206,6 +206,7 @@ export const IntroSlider = () => {
ref={prevButtonRef} ref={prevButtonRef}
variant="secondaryText" variant="secondaryText"
square square
className="carousel-nav-button"
aria-label={previousAriaLabel} aria-label={previousAriaLabel}
onPress={() => { onPress={() => {
focusTargetRef.current = 'prev' focusTargetRef.current = 'prev'
@@ -234,6 +235,7 @@ export const IntroSlider = () => {
ref={nextButtonRef} ref={nextButtonRef}
variant="secondaryText" variant="secondaryText"
square square
className="carousel-nav-button"
aria-label={nextAriaLabel} aria-label={nextAriaLabel}
onPress={() => { onPress={() => {
focusTargetRef.current = 'next' focusTargetRef.current = 'next'