diff options
Diffstat (limited to 'docs/_includes')
| -rw-r--r-- | docs/_includes/components/navbar.html | 34 | ||||
| -rw-r--r-- | docs/_includes/js/dropdowns.html | 2 | ||||
| -rw-r--r-- | docs/_includes/js/scrollspy.html | 2 | ||||
| -rw-r--r-- | docs/_includes/nav/main.html | 2 |
4 files changed, 20 insertions, 20 deletions
diff --git a/docs/_includes/components/navbar.html b/docs/_includes/components/navbar.html index 0b9b42327..db157de7c 100644 --- a/docs/_includes/components/navbar.html +++ b/docs/_includes/components/navbar.html @@ -25,11 +25,11 @@ </div> <div class="bs-callout bs-callout-warning" id="callout-navbar-role"> <h4>Make navbars accessible</h4> - <p>Be sure to add a <code>role="navigation"</code> to every navbar to help with accessibility.</p> + <p>Be sure to use a <code><nav></code> element or, if using a more generic element such as a <code><div></code>, add a <code>role="navigation"</code> to every navbar to explicitly identify it as a landmark region for users of assistive technologies.</p> </div> <div class="bs-example"> - <nav class="navbar navbar-default" role="navigation"> + <nav class="navbar navbar-default"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> @@ -84,7 +84,7 @@ </nav> </div> {% highlight html %} -<nav class="navbar navbar-default" role="navigation"> +<nav class="navbar navbar-default"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> @@ -143,7 +143,7 @@ <h2 id="navbar-brand-image">Brand image</h2> <p>Replace the navbar brand with your own image by swapping the text for an <code><img></code>. Since the <code>.navbar-brand</code> has its own padding and height, you may need to override some CSS depending on your image.</p> <div class="bs-example"> - <nav class="navbar navbar-default" role="navigation"> + <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="#"> @@ -154,7 +154,7 @@ </nav> </div> {% highlight html %} -<nav class="navbar navbar-default" role="navigation"> +<nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="#"> @@ -170,7 +170,7 @@ <p>Place form content within <code>.navbar-form</code> for proper vertical alignment and collapsed behavior in narrow viewports. Use the alignment options to decide where it resides within the navbar content.</p> <p>As a heads up, <code>.navbar-form</code> shares much of its code with <code>.form-inline</code> via mixin. <strong class="text-danger">Some form controls, like input groups, may require fixed widths to be show up properly within a navbar.</strong></p> <div class="bs-example"> - <nav class="navbar navbar-default" role="navigation"> + <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2"> @@ -215,7 +215,7 @@ <h2 id="navbar-buttons">Buttons</h2> <p>Add the <code>.navbar-btn</code> class to <code><button></code> elements not residing in a <code><form></code> to vertically center them in the navbar.</p> <div class="bs-example"> - <nav class="navbar navbar-default" role="navigation"> + <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-3"> @@ -244,7 +244,7 @@ <h2 id="navbar-text">Text</h2> <p>Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code><p></code> tag for proper leading and color.</p> <div class="bs-example"> - <nav class="navbar navbar-default" role="navigation"> + <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-4"> @@ -269,7 +269,7 @@ <h2 id="navbar-links">Non-nav links</h2> <p>For folks using standard links that are not within the regular navbar navigation component, use the <code>.navbar-link</code> class to add the proper colors for the default and inverse navbar options.</p> <div class="bs-example"> - <nav class="navbar navbar-default" role="navigation"> + <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-5"> @@ -304,7 +304,7 @@ <h2 id="navbar-fixed-top">Fixed to top</h2> <p>Add <code>.navbar-fixed-top</code> and include a <code>.container</code> or <code>.container-fluid</code> to center and pad navbar content.</p> <div class="bs-example bs-navbar-top-example"> - <nav class="navbar navbar-default navbar-fixed-top" role="navigation"> + <nav class="navbar navbar-default navbar-fixed-top"> <!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. --> <div class="container-fluid"> <div class="navbar-header"> @@ -328,7 +328,7 @@ </nav> </div><!-- /example --> {% highlight html %} -<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> +<nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> ... </div> @@ -348,7 +348,7 @@ body { padding-top: 70px; } <h2 id="navbar-fixed-bottom">Fixed to bottom</h2> <p>Add <code>.navbar-fixed-bottom</code> and include a <code>.container</code> or <code>.container-fluid</code> to center and pad navbar content.</p> <div class="bs-example bs-navbar-bottom-example"> - <nav class="navbar navbar-default navbar-fixed-bottom" role="navigation"> + <nav class="navbar navbar-default navbar-fixed-bottom"> <!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. --> <div class="container-fluid"> <div class="navbar-header"> @@ -372,7 +372,7 @@ body { padding-top: 70px; } </nav> </div><!-- /example --> {% highlight html %} -<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation"> +<nav class="navbar navbar-default navbar-fixed-bottom"> <div class="container"> ... </div> @@ -393,7 +393,7 @@ body { padding-bottom: 70px; } <p>Create a full-width navbar that scrolls away with the page by adding <code>.navbar-static-top</code> and include a <code>.container</code> or <code>.container-fluid</code> to center and pad navbar content.</p> <p>Unlike the <code>.navbar-fixed-*</code> classes, you do not need to change any padding on the <code>body</code>.</p> <div class="bs-example bs-navbar-top-example"> - <nav class="navbar navbar-default navbar-static-top" role="navigation"> + <nav class="navbar navbar-default navbar-static-top"> <!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. --> <div class="container-fluid"> <div class="navbar-header"> @@ -418,7 +418,7 @@ body { padding-bottom: 70px; } </nav> </div><!-- /example --> {% highlight html %} -<nav class="navbar navbar-default navbar-static-top" role="navigation"> +<nav class="navbar navbar-default navbar-static-top"> <div class="container"> ... </div> @@ -429,7 +429,7 @@ body { padding-bottom: 70px; } <h2 id="navbar-inverted">Inverted navbar</h2> <p>Modify the look of the navbar by adding <code>.navbar-inverse</code>.</p> <div class="bs-example"> - <nav class="navbar navbar-inverse" role="navigation"> + <nav class="navbar navbar-inverse"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> @@ -454,7 +454,7 @@ body { padding-bottom: 70px; } </nav> </div><!-- /example --> {% highlight html %} -<nav class="navbar navbar-inverse" role="navigation"> +<nav class="navbar navbar-inverse"> ... </nav> {% endhighlight %} diff --git a/docs/_includes/js/dropdowns.html b/docs/_includes/js/dropdowns.html index 2268b5780..19e0245b2 100644 --- a/docs/_includes/js/dropdowns.html +++ b/docs/_includes/js/dropdowns.html @@ -6,7 +6,7 @@ <h3>Within a navbar</h3> <div class="bs-example"> - <nav id="navbar-example" class="navbar navbar-default navbar-static" role="navigation"> + <nav id="navbar-example" class="navbar navbar-default navbar-static"> <div class="container-fluid"> <div class="navbar-header"> <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-collapse"> diff --git a/docs/_includes/js/scrollspy.html b/docs/_includes/js/scrollspy.html index 4f660b40e..b2dd07ae9 100644 --- a/docs/_includes/js/scrollspy.html +++ b/docs/_includes/js/scrollspy.html @@ -4,7 +4,7 @@ <h2 id="scrollspy-examples">Example in navbar</h2> <p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.</p> <div class="bs-example"> - <nav id="navbar-example2" class="navbar navbar-default navbar-static" role="navigation"> + <nav id="navbar-example2" class="navbar navbar-default navbar-static"> <div class="container-fluid"> <div class="navbar-header"> <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-scrollspy"> diff --git a/docs/_includes/nav/main.html b/docs/_includes/nav/main.html index a9e09a081..530430615 100644 --- a/docs/_includes/nav/main.html +++ b/docs/_includes/nav/main.html @@ -9,7 +9,7 @@ </button> <a href="../" class="navbar-brand">Bootstrap</a> </div> - <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation"> + <nav class="collapse navbar-collapse bs-navbar-collapse"> <ul class="nav navbar-nav"> <li{% if page.slug == "getting-started" %} class="active"{% endif %}> <a href="../getting-started/">Getting started</a> |
