WordPress / wporg-theme-directory

15 stars 6 forks source link

Variation selector possible focus loss #59

Closed jasmussen closed 3 months ago

jasmussen commented 3 months ago

There appears to be some focus handling improvements we could/should make to the variation scroll-arrows:

gif showing focus set on the "next variation" button, then focus disappearing when button gets disabled

The arrows are hard to tab to but when setting focus there, then clicking, if it scrolls to the end of the row, the button becomes disabled which moves focus to the next focusable. It seems like the button should be focusable even if disabled, to avoid this.