0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Add explicit role="main" to <main> elements (#22574)

For compatibility in IE10/IE11 which don't otherwise "know" this element's role/don't expose it to AT
This commit is contained in:
Patrick H. Lauke 2017-05-05 10:22:09 +01:00 committed by GitHub
parent c81be77929
commit 2a4be9a0c9
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@
</ul> </ul>
</nav> </nav>
<main class="col-sm-9 offset-sm-3 col-md-10 offset-md-2 pt-3"> <main class="col-sm-9 offset-sm-3 col-md-10 offset-md-2 pt-3" role="main">
<h1>Dashboard</h1> <h1>Dashboard</h1>
<section class="row text-center placeholders"> <section class="row text-center placeholders">

View File

@ -2,7 +2,7 @@
layout: home layout: home
--- ---
<main class="bd-masthead" id="content"> <main class="bd-masthead" id="content" role="main">
<div class="container"> <div class="container">
<span class="bd-booticon outline">B</span> <span class="bd-booticon outline">B</span>
<p class="lead">Bootstrap is the most popular HTML, CSS, and JS framework in the world for building responsive, mobile-first projects on the web.</p> <p class="lead">Bootstrap is the most popular HTML, CSS, and JS framework in the world for building responsive, mobile-first projects on the web.</p>