Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve link focus styles #89

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Next Next commit
Update link focus style
  • Loading branch information
Steellow committed Oct 17, 2021
commit c66dedae7efd8920d2e6cf09ba4ba0432f068d60
7 changes: 6 additions & 1 deletion src/js/components/Link.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,12 @@ import { apply, tw } from 'twind'

export default ({ children, class: classes = '', href, ...rest }) => html`
<a
class=${tw(classes, apply('underline text-red(hover:600 active:700)'))}
class=${tw(
classes,
apply(
'underline text-red(hover:600 active:700) focus-visible:(outline-none ring-2 ring-blue-300 border-transparent)'
Steellow marked this conversation as resolved.
Show resolved Hide resolved
)
)}
href=${href}
style="text-decoration-thickness: 1px"
...${rest}