From be5e223177004c2072e8beedf00963adf9ced2db Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 12 Nov 2015 19:15:54 -0800 Subject: Move `[hidden]` style from _utilities.scss to _reboot.scss; fixes #18230 [skip sauce] --- docs/components/utilities.md | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'docs/components') diff --git a/docs/components/utilities.md b/docs/components/utilities.md index 887cc32d4..788f1a3c8 100644 --- a/docs/components/utilities.md +++ b/docs/components/utilities.md @@ -318,19 +318,3 @@ Aspect ratios can be customized with modifier classes. {% endhighlight %} - -## 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](http://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 IE9-10, the explicit declaration in our CSS gets around that problem. - -{% highlight html %} - -{% endhighlight %} - -{% callout warning %} -#### jQuery incompatibility - -`[hidden]` is not compatible with jQuery's `$(...).hide()` and `$(...).show()` methods. This could potentially change in jQuery 3, but we're not holding our breath. Therefore, we don't currently especially endorse `[hidden]` over other techniques for managing the `display` of elements. -{% endcallout %} - -To merely toggle the visibility of an element, meaning its `display` is not modified and the element can still affect the flow of the document, use [the `.invisible` class](#invisible-content) instead. -- cgit v1.2.3