Skip to content

Commit

Permalink
[added] Adds a callout to the sr-only button in Closable Alerts
Browse files Browse the repository at this point in the history
Signed-off-by: Kenny Wang <[email protected]>
  • Loading branch information
d-reinhold authored and Kenny Wang committed Sep 1, 2015
1 parent 1f29000 commit 533530a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/ComponentsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,11 @@ const ComponentsPage = React.createClass({
<p>just pass in a <code>onDismiss</code> function.</p>
<ReactPlayground codeText={Samples.AlertDismissable} />

<div className="bs-callout bs-callout-info">
<h4>Screen Reader Accessibility</h4>
<p>Unlike regular Bootstrap, alerts have an sr-only dismiss button after the content.</p>
</div>

<h4><Anchor id="alerts-auto-closeable">Auto closeable</Anchor></h4>
<p>Auto close after a set time with <code>dismissAfter</code> prop.</p>
<ReactPlayground codeText={Samples.AlertAutoDismissable} />
Expand Down

0 comments on commit 533530a

Please sign in to comment.