Hover

No-hover

Add .no-hover to a control to turn off its hover effect. The control keeps its resting border, background, and shadow when the pointer is over it, while focus, selected, disabled, and error states are left untouched.

This is useful when a hover change would be distracting rather than helpful — for example inside an input group, where hovering the field would otherwise highlight it while the user is interacting with an adjacent control.

The class is supported on the following controls:

.no-hover Turns off the hover effect on text inputs, textareas, selects, search fields, input groups, and table header cells. On .table-active tables it also suppresses the pressed/active highlight on the header cell it is applied to.
							
<input type="text" class="form-control no-hover">

Form controls

Demonstrates .no-hover on a text input, textarea, select, search field, and numeric input group. These examples are also used by our Playwright CSS property assertion tests.

Hover over each control below. The controls on the left react to hover with a changed border and background; the controls on the right carry .no-hover, so they keep their resting appearance.

Hovering changes the border and background.
Hovering leaves the resting style unchanged.
SEK
SEK