Skip to content

Commit 533530a

Browse files
d-reinholdKenny Wang
authored and
Kenny Wang
committed
[added] Adds a callout to the sr-only button in Closable Alerts
Signed-off-by: Kenny Wang <[email protected]>
1 parent 1f29000 commit 533530a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/src/ComponentsPage.js

+5
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,11 @@ const ComponentsPage = React.createClass({
623623
<p>just pass in a <code>onDismiss</code> function.</p>
624624
<ReactPlayground codeText={Samples.AlertDismissable} />
625625

626+
<div className="bs-callout bs-callout-info">
627+
<h4>Screen Reader Accessibility</h4>
628+
<p>Unlike regular Bootstrap, alerts have an sr-only dismiss button after the content.</p>
629+
</div>
630+
626631
<h4><Anchor id="alerts-auto-closeable">Auto closeable</Anchor></h4>
627632
<p>Auto close after a set time with <code>dismissAfter</code> prop.</p>
628633
<ReactPlayground codeText={Samples.AlertAutoDismissable} />

0 commit comments

Comments
 (0)