Tab key skips all my buttons in Safari but works in Chrome, is it a focus-visible problem?
I have a doubt that is making me crazy. In our checkout, when I navigate with the keyboard in Chrome and Firefox everything works: Tab goes to inputs, buttons and links, and the focus ring appears. In Safari on Mac, Tab jumps only between the text inputs. The buttons and links are completely skipped, like they don't exist.
I thought it was my CSS, we have this:
button:focus { outline: none; }
button:focus-visible { outline: 2px solid #1a56db; outline-offset: 2px; }
I removed both rules and the problem continues, so I don't think is the outline. The buttons are real button elements, no tabindex anywhere. Safari 17. Is this a bug in Safari or something in our markup? Our accessibility audit is next week, help 🙏
Accepted answer
Written by
Mariana Costa
Product designer in São Paulo, working on e-commerce checkout. I like design systems, accessibility and talk with real users. Figma all day, but I still write some CSS when nobody is watching.
Get the best of #css-is-my-passion weekly
One email each Monday with the most useful posts. No spam; unsubscribe in one click.
Comments
Sign in to join the conversation.
Sign in to commentAccepted answer