PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, September 30, 2022

[FIXED] How to get rid of React-Bootstrap Dropdown Button box-shadow?

 September 30, 2022     bootstrap-4, bootstrap-5, react-bootstrap     No comments   

Issue

I am trying to get rid of the box shadow or second border on the bootstrap dropdown button when I click on it.

I couldn't find which class makes this change.

Screenshot of bootstrap dropdown button


Solution

Buttons get appropriate ":focus" classes on focus, which add box shadows:

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}

To deactivate this behaviour, set "box-shadow" css property to "none". There is a utility bootstrap class called "shadow-none" which does the same: https://getbootstrap.com/docs/5.1/utilities/shadows/



Answered By - Igor Gonak
Answer Checked By - Mildred Charles (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing