OTTODesign System

Components

Focused dialog

The focused dialog maximizes the users' focus on a task. It is used within dialog siteframe.

Configurator

LiveFocused dialog: header buttons, action bar, background and app mode

Wohin dürfen wir deine Bestellung liefern?

ZurückWeiter
HTML
<div class="oc-background-color-frame" style="width:100%;max-width:600px;margin:0 auto;padding-top:16px"><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen" style="--content-background-color:initial"><p class="oc-copy-100">Wohin dürfen wir deine Bestellung liefern?</p><div slot="actions" style="display:flex;flex-direction:row;gap:8px"><oc-button-v1 variant="secondary" style="flex:1">Zurück</oc-button-v1><oc-button-v1 variant="primary" style="flex:1">Weiter</oc-button-v1></div></oc-focused-dialog-v1></div>

Usage

Anatomy

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

LiveAnatomy
HTML
<div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><div slot="actions" style="display:flex;gap:8px"><oc-button-v1 variant="secondary" style="flex:1">Zurück</oc-button-v1><oc-button-v1 variant="primary" style="flex:1">Weiter</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div>

Variants

Action bar

The action bar is optional for the focused dialog. You can customize its content freely. It is most common to put buttons in the action bar. You can use one button or multiple buttons. If you use multiple buttons, you can arrange them side by side or vertically.

The action bar only becomes sticky when the content is larger than the viewport. When there is less content than the viewport, the action bar appears below the content.

No action bar

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

Side by side

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

Stacked

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

WeiterZurück
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

LiveNo action bar, action bar arranged side by side and action bar arranged vertical
HTML
<div class="group"><p class="demo-label">No action bar</p><div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div><div class="group"><p class="demo-label">Side by side</p><div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><div slot="actions" style="display:flex;gap:8px"><oc-button-v1 variant="secondary" style="flex:1">Zurück</oc-button-v1><oc-button-v1 variant="primary" style="flex:1">Weiter</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div><div class="group"><p class="demo-label">Stacked</p><div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><div slot="actions" style="display:flex;flex-direction:column;gap:8px"><oc-button-v1 variant="primary">Weiter</oc-button-v1><oc-button-v1 variant="secondary">Zurück</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div></div>

Little content

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

WeiterZurück
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

Much content

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

Du bist nicht zu Hause? Dann gibt der Paketdienst deine Sendung bei einem Nachbarn ab oder hinterlegt sie in der nächsten Filiale.

Große Artikel liefern wir per Spedition. Den Termin stimmen wir vorher telefonisch mit dir ab.

Du kannst deine Lieferadresse bis zum Versand jederzeit in deinem Kundenkonto ändern.

Möchtest du lieber an eine Packstation liefern lassen? Wähle dazu im nächsten Schritt eine andere Adresse.

WeiterZurück
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

LiveLittle content and much content
HTML
<div class="group"><p class="demo-label">Little content</p><div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><div slot="actions" style="display:flex;flex-direction:column;gap:8px"><oc-button-v1 variant="primary">Weiter</oc-button-v1><oc-button-v1 variant="secondary">Zurück</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div><div class="group"><p class="demo-label">Much content</p><div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><p class="oc-copy-100 oc-mt-100">Du bist nicht zu Hause? Dann gibt der Paketdienst deine Sendung bei einem Nachbarn ab oder hinterlegt sie in der nächsten Filiale.</p><p class="oc-copy-100 oc-mt-100">Große Artikel liefern wir per Spedition. Den Termin stimmen wir vorher telefonisch mit dir ab.</p><p class="oc-copy-100 oc-mt-100">Du kannst deine Lieferadresse bis zum Versand jederzeit in deinem Kundenkonto ändern.</p><p class="oc-copy-100 oc-mt-100">Möchtest du lieber an eine Packstation liefern lassen? Wähle dazu im nächsten Schritt eine andere Adresse.</p><div slot="actions" style="display:flex;flex-direction:column;gap:8px"><oc-button-v1 variant="primary">Weiter</oc-button-v1><oc-button-v1 variant="secondary">Zurück</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div></div>

Background color

Change the background color of the content to make it look like canvas or frame. Keep in mind that it might look fragmented especially on larger breakpoints.

Canvas background

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

WeiterZurück
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

Frame background

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

WeiterZurück
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

LiveFrame and canvas background
HTML
<div class="group"><p class="demo-label">Canvas background</p><div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><div slot="actions" style="display:flex;flex-direction:column;gap:8px"><oc-button-v1 variant="primary">Weiter</oc-button-v1><oc-button-v1 variant="secondary">Zurück</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div><div class="group"><p class="demo-label">Frame background</p><div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen" style="--content-background-color:var(--oc-semantic-color-background-frame)"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><div slot="actions" style="display:flex;flex-direction:column;gap:8px"><oc-button-v1 variant="primary">Weiter</oc-button-v1><oc-button-v1 variant="secondary">Zurück</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div></div>

Behavior

Interaction

Use the back button, whenever a process is visualized using several consecutive focused dialogs.
It leads back to the previous focused dialog using browser-back. On the first focused dialog within a process, no back button is shown.

The close button is always visible to give users an exit option. It leads back to the last page before the focused dialog process started.

The logo always provides an interactive way back to the storefront.

Usually, the main actions are placed inside the action bar. Place primary actions, such as "Weiter," on the right or bottom of the action bar. Place secondary actions, such as "Zurück", on the left or top. You can also place actions within the content if you have no need for sticky actions.

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

123
  1. Logo: jumps to the storefront
  2. Back: previous focused dialog (browser back)
  3. Close: leaves the focused dialog process
LiveInteraction
HTML
<div class="anatomy" style="display:block;margin:0 auto;max-width:360px"><div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Schritt 2" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><div slot="actions" style="display:flex;gap:8px"><oc-button-v1 variant="secondary" style="flex:1">Zurück</oc-button-v1><oc-button-v1 variant="primary" style="flex:1">Weiter</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div><span class="anatomy-pin" style="left:20%;top:6%">1</span><span class="anatomy-pin" style="left:4%;top:19.5%">2</span><span class="anatomy-pin" style="left:96%;top:19.5%">3</span></div><ol class="anatomy-key" style="justify-content:center"><li data-n="1">Logo: jumps to the storefront</li><li data-n="2">Back: previous focused dialog (browser back)</li><li data-n="3">Close: leaves the focused dialog process</li></ol>

Fitting

By default, the content uses fill-parent for its width.

The content uses fit-content for its height. If the content in the focused dialog is not large enough to fill the height of the viewport, space will be added between the action bar and the footer.

Width fill-parent, content height fit-content; space is added below the action bar

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

LiveFit-content height and added space below action bar
HTML
<p class="demo-label" style="text-align:center">Width fill-parent, content height fit-content; space is added below the action bar</p><div class="oc-background-color-frame" style="width:100%;max-width:360px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><div slot="actions" style="display:flex;gap:8px"><oc-button-v1 variant="secondary" style="flex:1">Zurück</oc-button-v1><oc-button-v1 variant="primary" style="flex:1">Weiter</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div>

Placement

Only use the focused dialog as fill-parent within a dialog siteframe.

Responsiveness

Due to the dialog siteframe, the focused dialog has a maximum width of 600px.

That ensures that the frame background is also visible on breakpoint L.
On breakpoint S the headline is left-aligned. From breakpoint M onwards, all headlines are centered.

On larger breakpoints you can also use the grid system to center the layout by only using the middle columns.

fill-parent up to 600px; from breakpoint M logo and headline are centred (narrow the window to see the left-aligned S layout)

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

LiveHeadline alignment and maximum width
HTML
<p class="demo-label" style="text-align:center">fill-parent up to 600px; from breakpoint M logo and headline are centred (narrow the window to see the left-aligned S layout)</p><div class="oc-background-color-frame" style="width:100%;max-width:600px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;justify-content:center"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p><div slot="actions" style="display:flex;gap:8px"><oc-button-v1 variant="secondary" style="flex:1">Zurück</oc-button-v1><oc-button-v1 variant="primary" style="flex:1">Weiter</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div>

Breakpoint M and up: content centred on the middle grid columns

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

LiveCenter-content
HTML
<p class="demo-label" style="text-align:center">Breakpoint M and up: content centred on the middle grid columns</p><div class="oc-background-color-frame" style="width:100%;max-width:600px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;justify-content:center"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Lieferadresse" headline-level="2" show-back-button close-url="#fokus-dialog-geschlossen"><div style="max-width:22rem;margin:0 auto"><p class="oc-copy-100">Wir liefern deine Bestellung an diese Adresse:</p><p class="oc-copy-100 oc-mt-100"><b>Lena Schmidt</b><br>Werner-Otto-Straße 1–7<br>22179 Hamburg</p></div><div slot="actions" style="display:flex;gap:8px;max-width:22rem;margin:0 auto"><oc-button-v1 variant="secondary" style="flex:1">Zurück</oc-button-v1><oc-button-v1 variant="primary" style="flex:1">Weiter</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div></div>

When a focused dialog is used inside the app, the dialog siteframe header and footer are hidden.
The back button is also automatically hidden, as it would otherwise be redundant with the native back button.

However, if the native top bar is hidden, the back button becomes visible again.

Responsiveness app
Focused dialog inside app with and without native bars

Focused dialog vs. sheet

The focused dialogue removes the header and minimizes the footer, taking the user out of the initial context and starting a new phase of their journey. In contrast, the sheet is a small breakout that keeps you within your current context.

Best practices

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

DoUse back buttons for consecutive focused dialogs.

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

CautionBack buttons are not necessary on the first focused dialog in a process.

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

DoAlways show the close button.

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

Don'tHide the close button.

Wir liefern deine Bestellung an diese Adresse:

Lena Schmidt
Werner-Otto-Straße 1–7
22179 Hamburg

ZurückWeiter
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

Don'tCall it focussed dialogue 🇬🇧

Accessibility

Implementation

Live demo

Schritt 2 von 3

Zahle bequem innerhalb von 30 Tagen nach Lieferung.Du wirst nach der Bestellung zu PayPal weitergeleitet.Visa und MastercardAb 9,90 € im Monat, flexibel anpassbar.
Gesamtsumme729,98 €
ZurückWeiter zur Übersicht
Cookie-EinstellungenAGBDatenschutzImpressumInformation zur BarrierefreiheitProduktsicherheitsrückrufe

Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten

LiveReal OTTO components, rendered by the OTTO component runtime
HTML
<div class="oc-background-color-frame" style="width:100%;max-width:600px;margin:0 auto;border-radius:8px;overflow:hidden;"><div style="padding:16px;display:flex;justify-content:center"><oc-logo-v1 logo="otto" oc-aria-label="OTTO"></oc-logo-v1></div><oc-focused-dialog-v1 headline="Wie möchtest du bezahlen?" headline-level="1" close-url="#fokus-dialog-geschlossen"><div class="demo-stack" style="gap:16px"><p class="oc-copy-75 oc-text-color-secondary">Schritt 2 von 3</p><oc-form-group-v1 orientation="vertical" gap="var(--oc-base-dimension-16)" oc-aria-label="Zahlungsart"><oc-radio-button-v2><input type="radio" name="fd-pay" checked aria-label="oc-auto"><label slot="label">Rechnung</label><span slot="hint">Zahle bequem innerhalb von 30 Tagen nach Lieferung.</span></oc-radio-button-v2><oc-radio-button-v2><input type="radio" name="fd-pay" aria-label="oc-auto"><label slot="label">PayPal</label><span slot="hint">Du wirst nach der Bestellung zu PayPal weitergeleitet.</span></oc-radio-button-v2><oc-radio-button-v2><input type="radio" name="fd-pay" aria-label="oc-auto"><label slot="label">Kreditkarte</label><span slot="hint">Visa und Mastercard</span></oc-radio-button-v2><oc-radio-button-v2><input type="radio" name="fd-pay" aria-label="oc-auto"><label slot="label">Ratenzahlung</label><span slot="hint">Ab 9,90 € im Monat, flexibel anpassbar.</span></oc-radio-button-v2></oc-form-group-v1><oc-divider-v1></oc-divider-v1><div class="demo-row" style="justify-content:space-between"><span class="oc-copy-100">Gesamtsumme</span><span class="oc-headline-100">729,98 €</span></div></div><div slot="actions" style="display:flex;gap:8px"><oc-button-v1 variant="secondary" style="flex:1">Zurück</oc-button-v1><oc-button-v1 variant="primary" style="flex:1">Weiter zur Übersicht</oc-button-v1></div></oc-focused-dialog-v1><div class="demo-stack" style="gap:12px;padding:16px 16px 24px;align-items:center;text-align:center"><div class="demo-row" style="gap:4px 12px;justify-content:center"><oc-link-v2 variant="secondary" size="75" as-button>Cookie-Einstellungen</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>AGB</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Datenschutz</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Impressum</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Information zur Barrierefreiheit</oc-link-v2><oc-link-v2 variant="secondary" size="75" as-button>Produktsicherheitsrückrufe</oc-link-v2></div><p class="oc-copy-50 oc-text-color-secondary">Preisangaben inkl. gesetzl. MwSt. und zzgl. Service- und Versandkosten</p></div></div>

Code

Version Tag Status API
v1 <oc-focused-dialog-v1> Stable FocusedDialogV1

API

API: <oc-focused-dialog-v1> (FocusedDialogV1)

The Focused dialog component is a customizable dialog box designed for focused user interactions. It allows you to set a headline, define navigation URLs for closing and previous actions, and include custom content and buttons. The appearance of the dialog can be tailored with options for background color and padding.

Attributes / properties
Attribute Type Default Required Description
headline string "" no Sets the title of the dialog.
headline-level 1 | 2 | 3 | 4 | 5 | 6 undefined no If set, renders the headline content inside a heading tag with the specified level. This has no effect if an external markup is used as headline.

The heading level has no visual effect but provides semantic structure for screen readers. If not set, renders a div instead of a heading tag.
in-app boolean false no Changes the sticky behavior of the dialog's title.
show-back-button boolean false no If set to true, a back button is displayed in the dialog header. This button navigates according to history.back().
close-url string undefined no Sets the URL to navigate to when the dialog is closed. The GET parameter oc-focused-dialog-v1-close-url overrides this URL. Refer to the Advanced URL handling documentation for more information.
prev-url string undefined no Deprecated: The back button should use history.back() instead of navigating to a specific URL to keep user expectations intact. Use the showBackButton prop to enable the back button.

Sets the URL of the previous button. The GET parameter oc-focused-dialog-v1-prev-url overrides this URL. Refer to the Advanced URL handling documentation for more information.
Slots
Slot Required Description
headline yes Overrides the headline set via the headline attribute. Use this slot to pass in a headline with custom markup.
Example:
<div slot='headline'><code>My headline</code></div>
default yes Sets the main content of the dialog.
actions yes Holds the button components to provide interactions to the user.
Example:
<oc-button-v1 slot='actions'>Bestätigen</oc-button-v1>
Events
Event Detail type Description
oc-focused-dialog-close CustomEvent<{ destination: string; }> Closing a focused-dialog via oc-icon-button triggers the oc-focused-dialog-close event.
oc-property-change OcFocusedDialogV1Events["oc-property-change"] Whenever a property value changes, this event triggers. Use this event to track all property changes within the component.

Refer to the Events documentation for more information.
oc-mount { component: string; } Fired when the component is mounted to the DOM. The event is fired when the onMount hook of the component is called by the runtime.
oc-unmount { component: string; } Fired when the component is unmounted from the DOM. The event is fired when the function returned by the onMount hook of the component is called by the runtime.
CSS custom properties
Custom property Default Description
--component-background-color --oc-semantic-color-frame-background Sets a custom background color for the component through a CSS variable. Note: The preferred way of using colors is via Design Tokens instead of hex values.
--content-background-color white Sets a custom background color for the content area through a CSS variable. Note: The preferred way of using colors is via Design Tokens instead of hex values.
--content-padding 16px Sets padding for the content area.

Examples

Listed below are the most common variations of the focused dialog component as well as specific component variations for different use cases.

Custom headline style

Variation that uses custom markup within the headline slot to display a headline with custom styling.

headline with custom markup
HTML
<oc-focused-dialog-v1 close-url="/close.html">
<code slot='headline'>headline with custom markup</code>
<oc-placeholder-v1></oc-placeholder-v1>
</oc-focused-dialog-v1>
Default

The default configuration uses a placeholder in the default slot, two oc-button components in the actions slot and the headline attribute.

Abbrechen OK, weiter
HTML
<oc-focused-dialog-v1 close-url="/close.html" headline="Lieferung verzögert">
<div slot="actions">
        <oc-button-v1 variant="secondary" data-oc-focused-dialog-v1.prev-url href="cancel">Abbrechen</oc-button-v1>
        <oc-button-v1 data-oc-focused-dialog-v1.add-close-url href="next-dialog.html">OK, weiter</oc-button-v1>
        <style>
            /* example styles for buttons in actions slot */
            [slot="actions"] {
                display: flex;
                flex-wrap: wrap-reverse;
                gap: 8px;
                > oc-button-v1 {
                    flex: 1;
                    min-width: fit-content;
                }
            }
        </style>
<oc-placeholder-v1></oc-placeholder-v1>
</oc-focused-dialog-v1>
Automatic Close URL

The default configuration uses a placeholder in the default slot, two oc-button components in the actions slot and the headline attribute.

Abbrechen OK, weiter
HTML
<oc-focused-dialog-v1 close-url="/close.html" headline="Lieferung verzögert">
<div slot="actions">
        <oc-button-v1 variant="secondary" data-oc-focused-dialog-v1.close-url href="cancel">Abbrechen</oc-button-v1>
        <oc-button-v1 data-oc-focused-dialog-v1.add-close-url href="next-dialog.html">OK, weiter</oc-button-v1>
        <style>
            /* example styles for buttons in actions slot */
            [slot="actions"] {
                display: flex;
                flex-wrap: wrap-reverse;
                gap: 8px;
                > oc-button-v1 {
                    flex: 1;
                    min-width: fit-content;
                }
            }
        </style>
<oc-placeholder-v1></oc-placeholder-v1>
</oc-focused-dialog-v1>