Last active
March 6, 2021 01:33
-
-
Save mosesoak/a0adb8a303aeab621173b69f8c761b75 to your computer and use it in GitHub Desktop.
hideOutline state example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get the state from the hook | |
const { hideOutline } = useTabOutline(); | |
// in one case this was used in a render like so: | |
<span | |
className={classnames({ | |
highlighted, | |
checkmark: true, | |
'hide-outline': hideOutline, | |
})} | |
/> | |
// with scss code like: | |
input:focus ~ :not(.hide-outline) { | |
border-color: $color-white; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment