--- title: Details path: utilities/details status: Stable source: 'https://github.com/primer/css/blob/master/src/utilities/details.scss' bundle: utilities --- Details classes are created to enhance the native behaviors of `
`. ## Fullscreen click area Use `.details-overlay` to expand the click area of `` to cover the full screen, so user can click anywhere on a page to close `
`. ```html live
More
Hidden text
``` ## Darkened fullscreen click area Use `.details-overlay-dark` darken the click area overlay. Useful for modals. ```html live
More
Hidden text
``` ## Custom caret Use `.details-reset` to remove the default caret (that little triangle on the left). You then can add the `.dropdown-caret` on the right of the text. ```html live
More
Hidden text
``` ## Using button styles with the details summary element You can add `.btn` and `.btn-*` classes to any [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary) element so that it gains the appearance of a button, and selected/active styles when the parent [`
`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) element is open. ```html live
More
Hidden text
More
Hidden text
```