I'm struggling to figure out the event that is triggered when an element gains focus through tab navigation. I want all buttons in the codepen provided to expand to full size when tabbed over. https://codepen.io/anon/pen/YopBaz
Currently, I have achieved the desired effect using the ':hover' pseudo-class for mouse interaction, but I'm unsure how to replicate this behavior for tab-based selection. I attempted to monitor all events (active/focus/hover) on the parent div element when a child element receives tab focus. Unfortunately, this approach did not yield the results I was hoping for. Is there a specific event that bubbles up to the parent element when a child element is highlighted by a tab selection?
The essential CSS snippet is as follows:
.speed-unit-selector .btn.active, .speed-unit-selector .btn:hover, .speed-unit-selector:active .btn,
.speed-unit-selector:hover .btn,
.speed-unit-selector:focus .btn {
transform: scale(1, 1);
}
Any insights or advice would be greatly appreciated!