Skip to content

Commit 2a4be9a

Browse files
Add explicit role="main" to <main> elements (twbs#22574)
For compatibility in IE10/IE11 which don't otherwise "know" this element's role/don't expose it to AT
1 parent c81be77 commit 2a4be9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/examples/dashboard/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
</ul>
9292
</nav>
9393

94-
<main class="col-sm-9 offset-sm-3 col-md-10 offset-md-2 pt-3">
94+
<main class="col-sm-9 offset-sm-3 col-md-10 offset-md-2 pt-3" role="main">
9595
<h1>Dashboard</h1>
9696

9797
<section class="row text-center placeholders">

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: home
33
---
44

5-
<main class="bd-masthead" id="content">
5+
<main class="bd-masthead" id="content" role="main">
66
<div class="container">
77
<span class="bd-booticon outline">B</span>
88
<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>

0 commit comments

Comments
 (0)