Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @lindsayevans , here's a quick PR to reset the
box-shadow
as well asoutline
.This is useful for users who use
box-shadow
to apply a focus ring instead of outline, Bootstrap 4 does this for example, and it's useful if you want a focus ring to follow theborder-radius
of the focusable element.However, this might cause unintended consequences for some people who have box-shadows on elements such as buttons, so I'll understand completely if you chose not to reset this property for that reason.
For users who want this behaviour, you can load my fork from JSDelivr:
https://cdn.jsdelivr.net/gh/philwolstenholme/outline.js@master/outline.min.js