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

Remove box-shadow as well as outline #9

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
Add focus-within support
  • Loading branch information
Phil Wolstenholme committed Nov 15, 2018
commit 35570d62d33d4d6dccac9b04120718bd197e495a
2 changes: 1 addition & 1 deletion outline.js
Expand Up @@ -21,7 +21,7 @@

// Using mousedown instead of mouseover, so that previously focused elements don't lose focus ring on mouse move
add_event_listener('mousedown', function(){
set_css(':focus{outline:0 !important;box-shadow: none !important;}::-moz-focus-inner{border:0 !important;}');
set_css(':focus{outline:0 !important;box-shadow: none !important;}:focus-within{outline:0 !important;box-shadow: none !important;}::-moz-focus-inner{border:0 !important;}');
});

add_event_listener('keydown', function(){
Expand Down