Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

focus in styled component

 &:focus {
        outline: none;
        box-shadow: 0px 0px 2px red;
 }

//check for focus with in (on a child)
 &:focus-within {
    border: 2px solid #1FC2FF;
}
 
PREVIOUS NEXT
Tagged: #focus #styled #component
ADD COMMENT
Topic
Name
2+6 =