Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
b136d42b
Commit
b136d42b
authored
Mar 12, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13024 from twbs/role-alert
add role="alert" to Alert examples, to improve accessibility
parents
28d2de37
4277ba62
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
28 deletions
+28
-28
docs/components.html
docs/components.html
+18
-18
docs/examples/rtl/index.html
docs/examples/rtl/index.html
+4
-4
docs/examples/theme/index.html
docs/examples/theme/index.html
+4
-4
docs/javascript.html
docs/javascript.html
+2
-2
No files found.
docs/components.html
View file @
b136d42b
...
...
@@ -2170,36 +2170,36 @@ body { padding-bottom: 70px; }
</div>
<div
class=
"bs-example"
>
<div
class=
"alert alert-success"
>
<div
class=
"alert alert-success"
role=
"alert"
>
<strong>
Well done!
</strong>
You successfully read this important alert message.
</div>
<div
class=
"alert alert-info"
>
<div
class=
"alert alert-info"
role=
"alert"
>
<strong>
Heads up!
</strong>
This alert needs your attention, but it's not super important.
</div>
<div
class=
"alert alert-warning"
>
<div
class=
"alert alert-warning"
role=
"alert"
>
<strong>
Warning!
</strong>
Better check yourself, you're not looking too good.
</div>
<div
class=
"alert alert-danger"
>
<div
class=
"alert alert-danger"
role=
"alert"
>
<strong>
Oh snap!
</strong>
Change a few things up and try submitting again.
</div>
</div>
{% highlight html %}
<div
class=
"alert alert-success"
>
...
</div>
<div
class=
"alert alert-info"
>
...
</div>
<div
class=
"alert alert-warning"
>
...
</div>
<div
class=
"alert alert-danger"
>
...
</div>
<div
class=
"alert alert-success"
role=
"alert"
>
...
</div>
<div
class=
"alert alert-info"
role=
"alert"
>
...
</div>
<div
class=
"alert alert-warning"
role=
"alert"
>
...
</div>
<div
class=
"alert alert-danger"
role=
"alert"
>
...
</div>
{% endhighlight %}
<h2
id=
"alerts-dismissable"
>
Dismissable alerts
</h2>
<p>
Build on any alert by adding an optional
<code>
.alert-dismissable
</code>
and close button.
</p>
<div
class=
"bs-example"
>
<div
class=
"alert alert-warning alert-dismissable"
>
<div
class=
"alert alert-warning alert-dismissable"
role=
"alert"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
<strong>
Warning!
</strong>
Better check yourself, you're not looking too good.
</div>
</div>
{% highlight html %}
<div
class=
"alert alert-warning alert-dismissable"
>
<div
class=
"alert alert-warning alert-dismissable"
role=
"alert"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
<strong>
Warning!
</strong>
Better check yourself, you're not looking too good.
</div>
...
...
@@ -2213,30 +2213,30 @@ body { padding-bottom: 70px; }
<h2
id=
"alerts-links"
>
Links in alerts
</h2>
<p>
Use the
<code>
.alert-link
</code>
utility class to quickly provide matching colored links within any alert.
</p>
<div
class=
"bs-example"
>
<div
class=
"alert alert-success"
>
<div
class=
"alert alert-success"
role=
"alert"
>
<strong>
Well done!
</strong>
You successfully read
<a
href=
"#"
class=
"alert-link"
>
this important alert message
</a>
.
</div>
<div
class=
"alert alert-info"
>
<div
class=
"alert alert-info"
role=
"alert"
>
<strong>
Heads up!
</strong>
This
<a
href=
"#"
class=
"alert-link"
>
alert needs your attention
</a>
, but it's not super important.
</div>
<div
class=
"alert alert-warning"
>
<div
class=
"alert alert-warning"
role=
"alert"
>
<strong>
Warning!
</strong>
Better check yourself, you're
<a
href=
"#"
class=
"alert-link"
>
not looking too good
</a>
.
</div>
<div
class=
"alert alert-danger"
>
<div
class=
"alert alert-danger"
role=
"alert"
>
<strong>
Oh snap!
</strong>
<a
href=
"#"
class=
"alert-link"
>
Change a few things up
</a>
and try submitting again.
</div>
</div>
{% highlight html %}
<div
class=
"alert alert-success"
>
<div
class=
"alert alert-success"
role=
"alert"
>
<a
href=
"#"
class=
"alert-link"
>
...
</a>
</div>
<div
class=
"alert alert-info"
>
<div
class=
"alert alert-info"
role=
"alert"
>
<a
href=
"#"
class=
"alert-link"
>
...
</a>
</div>
<div
class=
"alert alert-warning"
>
<div
class=
"alert alert-warning"
role=
"alert"
>
<a
href=
"#"
class=
"alert-link"
>
...
</a>
</div>
<div
class=
"alert alert-danger"
>
<div
class=
"alert alert-danger"
role=
"alert"
>
<a
href=
"#"
class=
"alert-link"
>
...
</a>
</div>
{% endhighlight %}
...
...
docs/examples/rtl/index.html
View file @
b136d42b
...
...
@@ -214,16 +214,16 @@
<div
class=
"page-header"
>
<h1>
Alerts
</h1>
</div>
<div
class=
"alert alert-success"
>
<div
class=
"alert alert-success"
role=
"alert"
>
<strong>
Well done!
</strong>
You successfully read this important alert message.
</div>
<div
class=
"alert alert-info"
>
<div
class=
"alert alert-info"
role=
"alert"
>
<strong>
Heads up!
</strong>
This alert needs your attention, but it's not super important.
</div>
<div
class=
"alert alert-warning"
>
<div
class=
"alert alert-warning"
role=
"alert"
>
<strong>
Warning!
</strong>
Best check yo self, you're not looking too good.
</div>
<div
class=
"alert alert-danger"
>
<div
class=
"alert alert-danger"
role=
"alert"
>
<strong>
Oh snap!
</strong>
Change a few things up and try submitting again.
</div>
...
...
docs/examples/theme/index.html
View file @
b136d42b
...
...
@@ -216,16 +216,16 @@
<div
class=
"page-header"
>
<h1>
Alerts
</h1>
</div>
<div
class=
"alert alert-success"
>
<div
class=
"alert alert-success"
role=
"alert"
>
<strong>
Well done!
</strong>
You successfully read this important alert message.
</div>
<div
class=
"alert alert-info"
>
<div
class=
"alert alert-info"
role=
"alert"
>
<strong>
Heads up!
</strong>
This alert needs your attention, but it's not super important.
</div>
<div
class=
"alert alert-warning"
>
<div
class=
"alert alert-warning"
role=
"alert"
>
<strong>
Warning!
</strong>
Best check yo self, you're not looking too good.
</div>
<div
class=
"alert alert-danger"
>
<div
class=
"alert alert-danger"
role=
"alert"
>
<strong>
Oh snap!
</strong>
Change a few things up and try submitting again.
</div>
...
...
docs/javascript.html
View file @
b136d42b
...
...
@@ -1393,14 +1393,14 @@ $('#myPopover').on('hidden.bs.popover', function () {
<h2
id=
"alerts-examples"
>
Example alerts
</h2>
<p>
Add dismiss functionality to all alert messages with this plugin.
</p>
<div
class=
"bs-example"
>
<div
class=
"alert alert-warning fade in"
>
<div
class=
"alert alert-warning fade in"
role=
"alert"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
<strong>
Holy guacamole!
</strong>
Best check yo self, you're not looking too good.
</div>
</div>
<!-- /example -->
<div
class=
"bs-example"
>
<div
class=
"alert alert-danger fade in"
>
<div
class=
"alert alert-danger fade in"
role=
"alert"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
<h4>
Oh snap! You got an error!
</h4>
<p>
Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.
</p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment