modal_style examples
The modal_style property in the Path Configuration picks the size of the modal. The sizes of all five are built into the library’s style.css.
Below 720px (45rem) wide, large, page_sheet, and form_sheet look the same. Resize the window to compare them.
largeThe default. A medium-width card on wide screensmediumA sheet about half the screen tallfullCovers the whole screenpage_sheetA larger card than large on wide screensform_sheetA narrow card on wide screens
Path Configuration for this page
{
"rules": [
{
"patterns": [
"/styles/large$"
],
"properties": {
"context": "modal",
"modal_style": "large"
}
},
{
"patterns": [
"/styles/medium$"
],
"properties": {
"context": "modal",
"modal_style": "medium"
}
},
{
"patterns": [
"/styles/full$"
],
"properties": {
"context": "modal",
"modal_style": "full"
}
},
{
"patterns": [
"/styles/page_sheet$"
],
"properties": {
"context": "modal",
"modal_style": "page_sheet"
}
},
{
"patterns": [
"/styles/form_sheet$"
],
"properties": {
"context": "modal",
"modal_style": "form_sheet"
}
}
]
}