Outline

Utilities for controlling an element's outline.

Usage

Use d-ol-{focusring|focusring-outset|none} to change an element's outline.

  • Use d-ol-focusring to add a focus ring within the edge of an element. Use this utility when an element reaches the edge of its parent or its overflow property is set to hidden.
  • Use d-ol-focusring-outset to add a focus ring outside the edge of an element.
  • Use d-ol-none to remove an element's focus ring.

Hover

Use h:d-ol-{focusring|focusring-outset|none} to change an element's outline on :hover.

Focus Visible

Use fv:d-ol-{focusring|focusring-outset|none} to change an element's outline on :focus-visible when focused by keyboard.

Focus

Use f:d-ol-{focusring|focusring-outset|none} to change an element's outline on :focus and :focus-within.

Classes

Class
Output
.d-ol-focusring box-shadow: var(--dt-shadow-focus) !important;
.d-ol-focusring-inset box-shadow: var(--dt-shadow-focus-inset) !important;
.d-ol-focusring-outset box-shadow: var(--dt-shadow-focus-outset) !important;
.d-ol-none box-shadow: none !important;

Outline documentation last updated Friday, September 4, 2026

fix/popover-modal-zindex-scope