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
Show file tree
Hide file tree
Changes from all commits
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
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}::-moz-focus-inner{border:0;}');
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;}input:focus~label[class*="focused-label"]{outline:0 !important;box-shadow:none !important;');
});

add_event_listener('keydown', function(){
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "remove-focus-outline",
"version": "1.2.1",
"version": "1.4.0",
"description": "Removes CSS outlines in an accessible manner",
"main": "outline.js",
"scripts": {
Expand All @@ -23,4 +23,4 @@
"url": "https://github.com/lindsayevans/outline.js/issues"
},
"homepage": "https://github.com/lindsayevans/outline.js#readme"
}
}