Skip to content

Instantly share code, notes, and snippets.

@mosesoak
Last active March 6, 2021 01:33
Show Gist options
  • Save mosesoak/a0adb8a303aeab621173b69f8c761b75 to your computer and use it in GitHub Desktop.
Save mosesoak/a0adb8a303aeab621173b69f8c761b75 to your computer and use it in GitHub Desktop.
hideOutline state example
// 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