Skip to content

Commit

Permalink
Remove whatinput.js and use :focus-visible instead (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwojcik authored Jun 1, 2023
1 parent e721021 commit 9ab6eae
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion content/_includes/partials/head/scripts.njk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<script src="{{ '/js/vendors/whatinput.min.js' | addHash }}"></script>
<script src="{{ '/js/scripts.js' | addHash }}"></script>
7 changes: 0 additions & 7 deletions src/scripts/vendors/whatinput.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/styles/partials/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ html {
background-color: var(--background-color);
color: var(--text-color);

&[data-whatinput='keyboard'] *:focus {
*:focus-visible {
outline-color: var(--link-color);
}
}
Expand Down

1 comment on commit 9ab6eae

@vercel
Copy link

@vercel vercel bot commented on 9ab6eae Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.