Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-bootstrap: remove 'active' after button was clicked

If i click the 'Default' button on react-bootstrap page it remains "clicked". What is the common way to remove the active state, so that the button looks like before it was clicked?

Overriding with the following css does not work:

.btn-default:active {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}
like image 463
davey Avatar asked Sep 05 '25 03:09

davey


1 Answers

.btn:focus {
    outline: none !important;
    outline-offset: none !important;
}

Use this, In my case, it was solved.

like image 132
Karan Shaw Avatar answered Sep 08 '25 00:09

Karan Shaw