K
K
Konstantin17062015-11-16 14:35:43
css
Konstantin1706, 2015-11-16 14:35:43

How to change button style on focus change?

Good afternoon. I need to change the style of a button when I press (hold) and move the focus to another element. Suppose there are 2 buttons, I click on one and delay and move the focus to another element by pressing tab, the style of the first button should change.
Tried to do it by button:active:not(:focus). But the style only changes when the focus of the window itself changes, using alt+tab. I will be grateful if I get an answer.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question