Copy/Paste style to pseudo-elements(classes)

On the websites I built recently, I want to style the :focus pseudo-class for all the links as well. So, they see the effect when they access the site through the keyboard.

Do you think it’s good to copy and paste the styles across pseudo-classes? Just like we do for our global classes?

Example: I have done styling for :hover, I want to have the ability to copy/paste from the :hover to :focus

So, I don’t need to do the same styling for the :focus(or any pseudo-class we want).

What do you think?

1 Like