The border of button appears automatically. How to close it so that it will never appear? Thanks. The button in sweetalert2
Asked
Active
Viewed 927 times
-2
-
Some actual code would be useful. The answer will be in the CSS styles for the button though. – Steve Apr 19 '18 at 02:32
1 Answers
4
I guess you are talking about the outline of a focused button:
It's possible to remove that outline from buttons, but PLEASE DO NOT DO THAT.
There's a reason for that ugly outline!
You're killing the keyboard accessibility of your app. People with vision disabilities, as well as keyboard-ninjas, will hate you for that.
SweetAlert2 authors were working hard to make that plugin accessible to all users, by removing buttons outline you simply ruin their effort.

Limon Monte
- 52,539
- 45
- 182
- 213
-
Thanks for your help. And yes, you are right, I agree with that. But you know, user often makes unassailable and strange requirement... – Jacob Feng Apr 23 '18 at 01:37