Why doesn't the focus style show when I click the button with a mouse?
Focus styles appear when the element receives keyboard focus (like tabbing). Clicking with a mouse may not always show focus styles unless the element stays focused. See step 2 where focus triggers the outline.
💡 Focus styles appear on keyboard navigation or when element is focused, not just on mouse click.
Why does the active style only show while I hold the mouse button down?
The :active state applies only during the mouse button press (mouse down). Once released, the style goes away. See step 3 where background changes only while pressing.
💡 :active is temporary, only while pressing the mouse button.
Why can't I see the outline on some buttons?
Some browsers remove outlines by default or custom styles hide them. Always add a visible outline or focus style for accessibility. Our code in step 2 explicitly adds a blue outline.
💡 Always provide a visible focus style for keyboard users.