question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove Outline When Buttons Clicked

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
f1shy-devcommented, Mar 20, 2021

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.

here is how you could do it: button:focus{ outline:none; }

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.

0reactions
ofshocommented, Mar 20, 2021

@benawad you can add better looking custom outlines or on focus background …

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found