Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove dropdown arrow in React Bootstrap

i´m trying to remove the dropdown arrow with this following css, but it´s not making any effect.

enter image description here

.dropdown::after{
  display: none !important; 
}

here is the code

<NavDropdown className={classes.user} title="Componentes" id="collasible-nav-dropdown">
   <NavDropdown.Item href="#action/3.1">Action</NavDropdown.Item>
   <NavDropdown.Item href="#action/3.2">Another action</NavDropdown.Item>
   <NavDropdown.Item href="#action/3.3">Something</NavDropdown.Item>
   <NavDropdown.Divider />
   <NavDropdown.Item href="#action/3.4">Separated link</NavDropdown.Item>
</NavDropdown>
like image 305
Cláudio Vitor Dantas Avatar asked Apr 20 '26 18:04

Cláudio Vitor Dantas


1 Answers

Here is the CSS from the Bootstrap dropdown arrow:
enter image description here

So in order to overwrite it you need to use the corresponding CSS selector:

.dropdown-toggle::after {
  display: none !important; 
}

Note that maybe there is no need to include the !important.

like image 95
Bikas Avatar answered Apr 22 '26 08:04

Bikas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!