79149497

Date: 2024-11-01 21:56:05
Score: 1
Natty:
Report link

Option: Using :focus pseudo-class

Your CSS already defines styles for the .btn-primary:focus state. You can add the outline: none; property to remove the default browser outline:

.btn-primary:focus {
  outline: none !important;  
  box-shadow: none !important;
  background-color: #b80c09;
}

Also check the cache in the browser, is there any conflicting styles in Bootstrap that is why I put !important to override.

The :focus pseudo-class applies styles when an element receives focus and the outline property controls the outline around an element when focused.

Reasons:
  • Blacklisted phrase (1): is there any
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hamza Crnovrsanin