Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove black border from option when hover in chrome 83

I update my chrome browser to 83 and saw the option tag and it looks ugly, It shows the black border when hovering in option.

I tried

option {
    box-shadow: none;
    border: none;
    -webkit-appearance: none;
}

option:hover {
    box-shadow: none;
    border: none;
    -webkit-appearance: none;
}

option {
  box-shadow: none;
  border: none;
  -webkit-appearance: none;
}

option:hover {
  box-shadow: none;
  border: none;
  -webkit-appearance: none;
}
<select>
  <option value="1">Option 1</option>
  <option value="2">Option 2</option>
  <option value="3">Option 3</option>
  <option value="4">Option 4</option>
</select>

but still no luck!! why? I don't know.

I want to remove that black border because In my project it looks ugly.

MY NEED

I need same result as previous select and option tag have.

like image 578
Nisharg Shah Avatar asked May 23 '20 11:05

Nisharg Shah


People also ask

How do I get rid of the black border in Chrome?

settings in chrome > Appearance > Show a quick highlight on the focused object. Disable this option.

How do I get rid of hover border?

To remove the CSS hover effect from a specific element, you can set the pointer-events property of the element (the hover behavior of which you want to disable) to “none”.

How do I get rid of the input focus border in Chrome?

Answer: Use CSS outline property In Google Chrome browser form controls like <input> , <textarea> and <select> highlighted with blue outline around them on focus. This is the default behavior of chrome, however if you don't like it you can easily remove this by setting their outline property to none .

Why is there a black border around Chrome?

Chromium team has updated form controls look-n-feel to bring touch support and consistency among all form controls. That's why whenever a user clicks inside text field or clicks on drop-down boxes, buttons, etc, a black border is displayed to highlight the focus.


1 Answers

in Chrome 84, the black border around select option item doesn't seem to appear when hovering. Now changing css outline rule is the easiest way to remove black border for focusable input.

*:focus {
  outline: none;
}
like image 140
Rongrong Luo Avatar answered Sep 22 '22 18:09

Rongrong Luo