diff options
| author | Andres Galante <[email protected]> | 2017-12-27 23:08:10 -0300 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2017-12-28 02:08:10 +0000 |
| commit | a5232abefc257fcbe71f69d22b4027fe6b2ce299 (patch) | |
| tree | 43d57542882bd379e65c57a673834b2bbe083204 /docs/4.0/content | |
| parent | 1a4a94bfd90626bdd48cea0c0d4bf0293f052edb (diff) | |
| download | bootstrap-a5232abefc257fcbe71f69d22b4027fe6b2ce299.tar.xz bootstrap-a5232abefc257fcbe71f69d22b4027fe6b2ce299.zip | |
Set `cursor:pointer` for `<summary>`
Diffstat (limited to 'docs/4.0/content')
| -rw-r--r-- | docs/4.0/content/reboot.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/4.0/content/reboot.md b/docs/4.0/content/reboot.md index d89e73da7..309391fd6 100644 --- a/docs/4.0/content/reboot.md +++ b/docs/4.0/content/reboot.md @@ -333,6 +333,22 @@ The `<abbr>` element receives basic styling to make it stand out amongst paragra Nulla <abbr title="attribute">attr</abbr> vitae elit libero, a pharetra augue. </div> +### Summary + +The default `cursor` on summary is `text`, so we reset that to `pointer` to convey that the element can be interacted with by clicking on it. + +<div class="bd-example"> + <details> + <summary>Some details</summary> + <p>More info about the details.</p> + </details> + + <details open> + <summary>Even more details</summary> + <p>Here are even more details about the details.</p> + </details> +</div> + ## HTML5 `[hidden]` attribute HTML5 adds [a new global attribute named `[hidden]`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden), which is styled as `display: none` by default. Borrowing an idea from [PureCSS](https://purecss.io/), we improve upon this default by making `[hidden] { display: none !important; }` to help prevent its `display` from getting accidentally overridden. While `[hidden]` isn't natively supported by IE10, the explicit declaration in our CSS gets around that problem. |
