Remove Outline When Buttons Clicked
See original GitHub issueWhen buttons are clicked on the website the default blue outline appears , I find it quite annoying so could you remove , here is how you could do it:
button:focus{ outline:none; }
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to remove outline border from input button - Stack Overflow
Using outline: none; you can remove that border in chrome. <style> input[type=button] { width: 120px; height: 60px; margin-left: 35px; ...
Read more >How to Remove Focus Around Buttons on Click - W3docs
If you want to remove the focus around a button, you can use the CSS outline property. You need to set the “none”...
Read more >How to remove focus around buttons on click? - GeeksforGeeks
Example 2: This example uses outline:none property to remove focus from button after clicking the button.
Read more >Removing the unwanted border around a button after it has ...
In the above image, I have a button which normally displayed no border, however after it has been clicked, this border comes up...
Read more >Remove border after clicking button - Envato Forums
I've removed the border for the anchor elements, but it won't go away for the input elements…
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Possibly we add focus classes that could change button colours/custom rounded outline instead? Making it look better instead of removing it is a better solution in my opinion.
Also, DogeHouse uses TailwindCSS so we would do
button {@apply focus:outline-none}
to apply it to all buttons, or<button className="focus:outline-none ..."
for a single button instead.@benawad you can add better looking custom outlines or on focus background …