Skip to content

Commit d0fdf04

Browse files
committed
docs(CModal): update content
1 parent db383a5 commit d0fdf04

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/docs/content/components/modal.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,8 @@ Below is a static react modal component example (meaning its `position` and `dis
3838
<p>React Modal body text goes here.</p>
3939
</div>
4040
<div className="modal-footer">
41-
<button type="button" className="btn btn-secondary">
42-
Close
43-
</button>
44-
<button type="button" className="btn btn-primary">
45-
Save changes
46-
</button>
41+
<button type="button" className="btn btn-secondary">Close</button>
42+
<button type="button" className="btn btn-primary">Save changes</button>
4743
</div>
4844
</div>
4945
</div>
@@ -1030,7 +1026,7 @@ For modals that simply appear rather than fade into view, set `transition` to `f
10301026
10311027
### Accessibility
10321028
1033-
Be sure to add `aria-labelledby="..."`, referencing the modal title, to `<CModal />` Additionally, you may give a description of your modal dialog with `aria-describedby` on `<CModal>`. Note that you don’t need to add `role="dialog` since we already add it.
1029+
Be sure to add `aria-labelledby="..."`, referencing the modal title, to `<CModal />` Additionally, you may give a description of your modal dialog with `aria-describedby` on `<CModal>`. Note that you don’t need to add `role="dialog`, `aria-hidden="true"`, and `aria-modal="true"` since we already add it.
10341030
10351031
## Optional sizes
10361032

0 commit comments

Comments
 (0)