diff --git a/modules/bookmarks/templates/bookmark-dialogs.phtml b/modules/bookmarks/templates/bookmark-dialogs.phtml index e1a06cb..a941db2 100644 --- a/modules/bookmarks/templates/bookmark-dialogs.phtml +++ b/modules/bookmarks/templates/bookmark-dialogs.phtml @@ -51,7 +51,7 @@ $iconLabels = [ data-url-preview-label="" aria-labelledby="app-bookmark-dialog-title" > -
+

@@ -101,7 +101,7 @@ $iconLabels = [ data-msg-name-required="" aria-labelledby="app-bookmark-group-dialog-title" > -
+

diff --git a/modules/bookmarks/web/css/components/app-bookmark-form.css b/modules/bookmarks/web/css/components/app-bookmark-form.css index cbcefd3..cd8c481 100644 --- a/modules/bookmarks/web/css/components/app-bookmark-form.css +++ b/modules/bookmarks/web/css/components/app-bookmark-form.css @@ -3,11 +3,6 @@ * Styles for bookmark and bookmark-group dialogs. */ @layer components { - dialog[data-app-bookmark-dialog] > article.app-bookmark-dialog, - dialog[data-app-bookmark-group-dialog] > article.app-bookmark-dialog { - max-width: 24rem; - } - dialog[data-app-bookmark-dialog] > article.app-bookmark-dialog > header, dialog[data-app-bookmark-group-dialog] > article.app-bookmark-dialog > header { position: relative; diff --git a/templates/partials/app-confirm-dialog.phtml b/templates/partials/app-confirm-dialog.phtml index efeb1fb..0e96dda 100644 --- a/templates/partials/app-confirm-dialog.phtml +++ b/templates/partials/app-confirm-dialog.phtml @@ -7,7 +7,7 @@ aria-labelledby="app-confirm-dialog-title" aria-describedby="app-confirm-dialog-message" > -
+

diff --git a/templates/partials/app-session-warning-dialog.phtml b/templates/partials/app-session-warning-dialog.phtml index fff247c..b573813 100644 --- a/templates/partials/app-session-warning-dialog.phtml +++ b/templates/partials/app-session-warning-dialog.phtml @@ -5,7 +5,7 @@ aria-describedby="app-session-warning-message" aria-live="assertive" > -
+

diff --git a/web/css/components/app-confirm-dialog.css b/web/css/components/app-confirm-dialog.css index 8302bf2..081e2b2 100644 --- a/web/css/components/app-confirm-dialog.css +++ b/web/css/components/app-confirm-dialog.css @@ -1,9 +1,5 @@ @layer components { /* Confirm dialog — modal overlay for destructive action confirmation with danger/warning variants. */ - dialog[data-app-confirm-dialog] > article.app-confirm-dialog { - max-width: 32rem; - } - dialog[data-app-confirm-dialog] > article.app-confirm-dialog > header { position: relative; padding-inline-end: 2rem; diff --git a/web/css/components/app-dialog.css b/web/css/components/app-dialog.css index 574ace1..1d730e6 100644 --- a/web/css/components/app-dialog.css +++ b/web/css/components/app-dialog.css @@ -5,6 +5,18 @@ * Variant-specific styles live in their own component files (app-confirm-dialog.css, etc.). */ @layer components { + /* ── Size tiers ──────────────────────────────────────────────────────── + * Fixed-width tiers so every dialog of the same purpose feels consistent. + * Apply one of these classes to the
inside . + * sm (24rem) — simple prompts, confirmations, alerts + * md (32rem) — form dialogs with 1-3 fields, pickers + * lg (40rem) — complex forms, multi-section dialogs + * min() ensures graceful shrink on narrow viewports. + * ──────────────────────────────────────────────────────────────────── */ + dialog > article.app-dialog-sm { width: min(24rem, calc(100vw - 2rem)); } + dialog > article.app-dialog-md { width: min(32rem, calc(100vw - 2rem)); } + dialog > article.app-dialog-lg { width: min(40rem, calc(100vw - 2rem)); } + /* ── Footer layout ───────────────────────────────────────────────────── */ dialog > article > footer, dialog > article form > footer {