Skip to content

Commit e3882a5

Browse files
crisbetommalerba
authored andcommitted
docs(dialog): add doc for align attribute (#15500)
Adds a sentence to the docs about the `align` attribute of the dialog content. We can't document it through doc strings, because it isn't defined in TS. Fixes #15482.
1 parent f503353 commit e3882a5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/lib/dialog/dialog.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ MAT_DIALOG_DEFAULT_OPTIONS in your application's root module.
5252
```
5353

5454
### Sharing data with the Dialog component.
55-
If you want to share data with your dialog, you can use the `data` option to pass information to the dialog component.
55+
If you want to share data with your dialog, you can use the `data`
56+
option to pass information to the dialog component.
5657

5758
```ts
5859
let dialogRef = dialog.open(YourDialog, {
@@ -80,11 +81,11 @@ export class YourDialog {
8081
### Dialog content
8182
Several directives are available to make it easier to structure your dialog content:
8283

83-
| Name | Description |
84-
|-----------------------|---------------------------------------------------------------------------------------------------------------|
84+
| Name | Description |
85+
|------------------------|---------------------------------------------------------------------------------------------------------------|
8586
| `mat-dialog-title` | \[Attr] Dialog title, applied to a heading element (e.g., `<h1>`, `<h2>`) |
86-
| `<mat-dialog-content>` | Primary scrollable content of the dialog |
87-
| `<mat-dialog-actions>` | Container for action buttons at the bottom of the dialog |
87+
| `<mat-dialog-content>` | Primary scrollable content of the dialog. |
88+
| `<mat-dialog-actions>` | Container for action buttons at the bottom of the dialog. Button alignment can be controlled via the `align` attribute which can be set to `end` and `center`. |
8889
| `mat-dialog-close` | \[Attr] Added to a `<button>`, makes the button close the dialog with an optional result from the bound value.|
8990

9091
For example:

0 commit comments

Comments
 (0)