Add aria-pressed to selected day-quick-pick buttons (a11y for screen readers)
This commit is contained in:
@@ -70,6 +70,7 @@ export const DayQuickPick: FC<DayQuickPickProps> = ({
|
||||
key={i}
|
||||
type="button"
|
||||
className={`day-quick-pick__btn${selected ? " day-quick-pick__btn--selected" : ""}`}
|
||||
aria-pressed={selected}
|
||||
onClick={() => onChange(d)}
|
||||
data-testid={`day-quick-pick-${i}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user