Skip to content

Commit

Permalink
docs(modal): add full-width (#3299)
Browse files Browse the repository at this point in the history
* docs(modal): add full-width

* Update modal-usage-alignment-2.png

* Update modal-usage-alignment-2.png
  • Loading branch information
aagonzales committed Dec 8, 2022
1 parent 423695f commit 9e2f7e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 18 additions & 3 deletions src/pages/components/modal/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ instead.

### Alignment

Inside of a modal, body copy, including titles, have a 20%
[margin-right](/components/modal/style#margin-right). However, form inputs and
other components expand the full width of a modal window.
In the modal, at [larger breakpoints](/components/modal/style#margin-right),
body copy, including titles, have a 20% margin-right. However, form inputs and
other components expand the entire width of a modal window.

<Row>
<Column colLg={8}>
Expand All @@ -298,6 +298,21 @@ other components expand the full width of a modal window.
</Column>
</Row>

#### Full-width content

Certain components, such as a structure list or table, can expand into the
margins of the modal and align flush to the container edges. These components
typically have border dividers or containers extending beyond the text or icon.
Labels or text of any kind should never be in the modal margins.

<Row>
<Column colLg={8}>

![Modal alignment](images/modal-usage-alignment-2.png)

</Column>
</Row>

## Content

### Main elements
Expand Down

1 comment on commit 9e2f7e3

@vercel
Copy link

@vercel vercel bot commented on 9e2f7e3 Dec 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.