@aurodesignsystem/auro-dialog 4.2.2 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -4
- package/README.md +35 -35
- package/demo/accessibility.js +3 -19
- package/demo/accessibility.md +22 -107
- package/demo/accessibility.min.js +122 -113
- package/demo/api.md +63 -40
- package/demo/customize.js +0 -2
- package/demo/customize.md +32 -82
- package/demo/customize.min.js +119 -85
- package/demo/design.js +0 -2
- package/demo/design.md +51 -94
- package/demo/design.min.js +119 -85
- package/demo/getting-started.md +61 -71
- package/demo/index.md +42 -42
- package/demo/index.min.js +119 -71
- package/demo/keyboard-behavior.md +15 -15
- package/demo/readme.md +34 -35
- package/demo/readme.min.js +119 -71
- package/demo/voiceover.md +9 -9
- package/demo/why-dialog.md +6 -6
- package/dist/auro-dialog-DwEbkZ4d.js +157 -0
- package/dist/index.d.ts +140 -87
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +8 -8
- package/dist/auro-dialog-FFeXiEB1.js +0 -134
package/demo/api.md
CHANGED
|
@@ -3,54 +3,77 @@
|
|
|
3
3
|
|
|
4
4
|
# auro-dialog
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Presents information that needs people's immediate attention in a window on top of the page.
|
|
7
|
+
|
|
8
|
+
**Key capabilities**
|
|
9
|
+
- **Blocking mode**: Set `modal` to require an explicit action before people can continue.
|
|
10
|
+
- **Sizes**: Set `sm` or `md` to change the dialog's size, and add `lg` to use the large size on mobile.
|
|
11
|
+
- **Edge-to-edge content**: Set `unformatted` to fill the dialog with your own content.
|
|
12
|
+
- **Focus handling**: Focus is always trapped while the dialog is open and returns to where it was when the dialog closes.
|
|
13
|
+
|
|
14
|
+
**Example**
|
|
15
|
+
<pre class="language-html"><code class="language-html"><auro-dialog id="example">
|
|
16
|
+
<span slot="header">Dialog header</span>
|
|
17
|
+
<div slot="content">Dialog content</div>
|
|
18
|
+
<div slot="footer"><auro-button>Close</auro-button></div>
|
|
19
|
+
</auro-dialog></code></pre>
|
|
7
20
|
|
|
8
|
-
### Properties
|
|
9
|
-
|
|
10
|
-
| Properties | Attributes | Modifiers | Type | Default | Description
|
|
11
|
-
| --------------------- | ----------------------- | --------- | ---------------------- | --------- |
|
|
12
|
-
| closeButtonAppearance | close-button-appearance | | `default` \| `inverse` | `default` |
|
|
13
|
-
| isPopoverVisible | open | | boolean | |
|
|
14
|
-
| lg | lg | | boolean | | Sets
|
|
15
|
-
| md | md | | boolean | | Sets
|
|
16
|
-
| modal | modal | | boolean | |
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
21
|
+
### Properties and attributes
|
|
22
|
+
|
|
23
|
+
| Properties | Attributes | Modifiers | Type | Default | Description |
|
|
24
|
+
| --------------------- | ----------------------- | --------- | ---------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
25
|
+
| closeButtonAppearance | close-button-appearance | | `default` \| `inverse` | `default` | Sets the close button's color. Use `inverse` for a light button over dark content, such as a dark image in an unformatted dialog. Has no effect when `modal` is set. |
|
|
26
|
+
| isPopoverVisible | open | | boolean | | Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it. |
|
|
27
|
+
| lg | lg | | boolean | | Sets the large size, which is the default. Add `lg` with `sm` or `md` to use the large size on mobile and the smaller size on desktop. Has no effect on its own. |
|
|
28
|
+
| md | md | | boolean | | Sets the medium size. Add `lg` with `md` to use the large size on mobile and the medium size on desktop. |
|
|
29
|
+
| modal | modal | | boolean | | Requires people to take an explicit action to close the dialog. The close button is hidden, and `Esc` and clicks outside the dialog don't close it, so add a button in the `footer` slot that closes it. Use it only when people must decide or acknowledge something before continuing. |
|
|
30
|
+
| open | | | boolean | | Shows the dialog when set to `true` and hides it when set to `false`. Reads as `true` while the dialog is open. |
|
|
31
|
+
| sm | sm | | boolean | | Sets the small size, the narrowest on desktop and the shortest on mobile. Add `lg` with `sm` to use the large size on mobile and the small size on desktop. |
|
|
32
|
+
| triggerElement | | | HTMLElement | | Sets a fallback element to focus when the dialog closes. Focus returns to the element that was active when the dialog opened, and uses `triggerElement` only when no element was active. |
|
|
33
|
+
| unformatted | unformatted | | boolean | | Removes the built-in header, content, and footer layout so the `content` slot fills the dialog edge to edge. The close button is still shown unless `modal` is set. |
|
|
34
|
+
| onDark | ondark | | boolean | | Deprecated: Use `close-button-appearance="inverse"` instead.<br>Sets the close button to a light color for use on dark backgrounds. |
|
|
22
35
|
|
|
23
36
|
### Methods
|
|
24
37
|
|
|
25
|
-
| Name | Parameters
|
|
26
|
-
| -------- |
|
|
27
|
-
| hide | None
|
|
28
|
-
| register | `name` (string) - The name
|
|
29
|
-
| show | None
|
|
38
|
+
| Name | Parameters | Return | Description |
|
|
39
|
+
| -------- | ------------------------------------------------------------- | ------ | -------------------------------------------------------- |
|
|
40
|
+
| hide | None | void | Closes the dialog. |
|
|
41
|
+
| register | `name` (string) - The tag name to register the element under. | | Registers the element with the browser under a tag name. |
|
|
42
|
+
| show | None | void | Opens the dialog. |
|
|
30
43
|
|
|
31
44
|
### Events
|
|
32
45
|
|
|
33
|
-
| Name | Description
|
|
34
|
-
| ------ |
|
|
35
|
-
| toggle |
|
|
46
|
+
| Name | Description |
|
|
47
|
+
| ------ | ----------------------------- |
|
|
48
|
+
| toggle | Fires when the dialog closes. |
|
|
36
49
|
|
|
37
50
|
### Slots
|
|
38
51
|
|
|
39
|
-
| Name | Description
|
|
40
|
-
| ---------------------- |
|
|
41
|
-
| ariaLabel.dialog.close | Text
|
|
42
|
-
| content |
|
|
43
|
-
| footer |
|
|
44
|
-
| header | Text
|
|
45
|
-
|
|
46
|
-
### CSS
|
|
47
|
-
|
|
48
|
-
| Name | Description
|
|
49
|
-
| -------------- |
|
|
50
|
-
| close-button |
|
|
51
|
-
| dialog |
|
|
52
|
-
| dialog-content |
|
|
53
|
-
| dialog-footer |
|
|
54
|
-
| dialog-header |
|
|
55
|
-
| dialog-overlay |
|
|
52
|
+
| Name | Description |
|
|
53
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
54
|
+
| ariaLabel.dialog.close | Text screen readers read for the close button, for example "Close dialog". Defaults to "Close". Has no effect when `modal` is set, because a modal dialog has no close button. |
|
|
55
|
+
| content | Content for the body of the dialog. |
|
|
56
|
+
| footer | Action buttons for the dialog, such as Close. A `modal` dialog needs a button here, because it has no close button. Isn't shown when `unformatted` is set. |
|
|
57
|
+
| header | Text for the dialog's heading, which also names the dialog for screen readers. Isn't shown when `unformatted` is set. |
|
|
58
|
+
|
|
59
|
+
### CSS shadow parts
|
|
60
|
+
|
|
61
|
+
| Name | Description |
|
|
62
|
+
| -------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
63
|
+
| close-button | The close button in the dialog header. Isn't rendered when `modal` is set. |
|
|
64
|
+
| dialog | The dialog window. |
|
|
65
|
+
| dialog-content | The body region that holds the `content` slot. Isn't rendered when `unformatted` is set. |
|
|
66
|
+
| dialog-footer | The footer region that holds the `footer` slot. Isn't rendered when `unformatted` is set. |
|
|
67
|
+
| dialog-header | The header region, which holds the `header` slot and the close button. Isn't rendered when `unformatted` is set. |
|
|
68
|
+
| dialog-overlay | Deprecated: Use `--ds-auro-dialog-overlay-modal-background-color` or `--ds-auro-dialog-overlay-open-background-color` instead. |
|
|
69
|
+
|
|
70
|
+
### CSS custom properties
|
|
71
|
+
|
|
72
|
+
| Name | Description |
|
|
73
|
+
| ----------------------------------------------- | ------------------------------------------------ |
|
|
74
|
+
| --ds-auro-dialog-container-color | Background color of the dialog window. |
|
|
75
|
+
| --ds-auro-dialog-text-color | Color of the text in the dialog. |
|
|
76
|
+
| --ds-auro-dialog-boxshadow-color | Shadow around the dialog window on desktop. |
|
|
77
|
+
| --ds-auro-dialog-overlay-open-background-color | Color of the backdrop behind a non-modal dialog. |
|
|
78
|
+
| --ds-auro-dialog-overlay-modal-background-color | Color of the backdrop behind a modal dialog. |
|
|
56
79
|
<!-- AURO-GENERATED-CONTENT:END -->
|
package/demo/customize.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { initEditCloseButtonExample } from "../apiExamples/close-button";
|
|
2
1
|
import { initPopoverAndDropdownExample } from "../apiExamples/popover-and-dropdown";
|
|
3
2
|
|
|
4
3
|
import "../src/registered";
|
|
@@ -8,7 +7,6 @@ export function initExamples(initCount) {
|
|
|
8
7
|
initCount = initCount || 0;
|
|
9
8
|
|
|
10
9
|
try {
|
|
11
|
-
initEditCloseButtonExample();
|
|
12
10
|
initPopoverAndDropdownExample();
|
|
13
11
|
} catch (_err) {
|
|
14
12
|
if (initCount <= 20) {
|
package/demo/customize.md
CHANGED
|
@@ -2,91 +2,42 @@
|
|
|
2
2
|
<div class="contentWrapper">
|
|
3
3
|
<nav>
|
|
4
4
|
<auro-nav anchorNavContent=".scrollWrapper">
|
|
5
|
-
<span slot="mobileToggleCollapsed">View
|
|
6
|
-
<span slot="mobileToggleExpanded">View
|
|
7
|
-
<auro-anchorlink fluid href="#cssParts">CSS
|
|
8
|
-
<auro-anchorlink fluid href="#closeButtonPart">Close
|
|
9
|
-
<auro-anchorlink fluid href="#tokens">Design
|
|
10
|
-
<auro-anchorlink fluid href="#customRegistration">Custom
|
|
11
|
-
<auro-anchorlink fluid href="#layeredComponents">Layered
|
|
5
|
+
<span slot="mobileToggleCollapsed">View more</span>
|
|
6
|
+
<span slot="mobileToggleExpanded">View less</span>
|
|
7
|
+
<auro-anchorlink fluid href="#cssParts">CSS shadow parts</auro-anchorlink>
|
|
8
|
+
<auro-anchorlink fluid href="#closeButtonPart">Close button</auro-anchorlink>
|
|
9
|
+
<auro-anchorlink fluid href="#tokens">Design tokens</auro-anchorlink>
|
|
10
|
+
<auro-anchorlink fluid href="#customRegistration">Custom registration</auro-anchorlink>
|
|
11
|
+
<auro-anchorlink fluid href="#layeredComponents">Layered components</auro-anchorlink>
|
|
12
12
|
</auro-nav>
|
|
13
13
|
</nav>
|
|
14
14
|
<div class="mainContent">
|
|
15
15
|
<div class="scrollWrapper">
|
|
16
|
-
<auro-header level="2" id="cssParts">CSS
|
|
17
|
-
<p>The dialog exposes the following <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part" target="_blank">CSS shadow parts</auro-hyperlink> for targeted styling,
|
|
16
|
+
<auro-header level="2" id="cssParts">CSS shadow parts</auro-header>
|
|
17
|
+
<p>The dialog exposes the following <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part" target="_blank">CSS shadow parts</auro-hyperlink> for targeted styling, for example <code>auro-dialog::part(dialog-header)</code>.</p>
|
|
18
18
|
<table>
|
|
19
19
|
<thead>
|
|
20
20
|
<tr><th>Part</th><th>Description</th></tr>
|
|
21
21
|
</thead>
|
|
22
22
|
<tbody>
|
|
23
|
-
<tr><td><code>dialog</code></td><td>
|
|
24
|
-
<tr><td><code>dialog-header</code></td><td>
|
|
25
|
-
<tr><td><code>dialog-content</code></td><td>
|
|
26
|
-
<tr><td><code>dialog-footer</code></td><td>
|
|
27
|
-
<tr><td><code>close-button</code></td><td>
|
|
28
|
-
<tr><td><code>dialog-overlay</code></td><td
|
|
23
|
+
<tr><td><code>dialog</code></td><td>The dialog window.</td></tr>
|
|
24
|
+
<tr><td><code>dialog-header</code></td><td>The header region, which holds the <code>header</code> slot and the close button. Isn't rendered when <code>unformatted</code> is set.</td></tr>
|
|
25
|
+
<tr><td><code>dialog-content</code></td><td>The body region that holds the <code>content</code> slot. Isn't rendered when <code>unformatted</code> is set.</td></tr>
|
|
26
|
+
<tr><td><code>dialog-footer</code></td><td>The footer region that holds the <code>footer</code> slot. Isn't rendered when <code>unformatted</code> is set.</td></tr>
|
|
27
|
+
<tr><td><code>close-button</code></td><td>The close (×) button in the dialog header. Isn't rendered when <code>modal</code> is set.</td></tr>
|
|
28
|
+
<tr><td><code>dialog-overlay</code></td><td>Deprecated: Use <code>--ds-auro-dialog-overlay-modal-background-color</code> or <code>--ds-auro-dialog-overlay-open-background-color</code> instead.</td></tr>
|
|
29
29
|
</tbody>
|
|
30
30
|
</table>
|
|
31
|
-
<auro-header level="2" id="closeButtonPart">Close
|
|
31
|
+
<auro-header level="2" id="closeButtonPart">Close button</auro-header>
|
|
32
32
|
<p>The close button can be repositioned via the <code>close-button</code> part.</p>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
<!-- The below content is automatically added from ./../apiExamples/close-button.html -->
|
|
36
|
-
<div>
|
|
37
|
-
<auro-button id="openEditDialog">Unformatted w/custom close button</auro-button>
|
|
38
|
-
</div>
|
|
39
|
-
<style>
|
|
40
|
-
.example::part(close-button) {
|
|
41
|
-
top: var(--ds-size-400);
|
|
42
|
-
right: var(--ds-size-400);
|
|
43
|
-
}
|
|
44
|
-
</style>
|
|
45
|
-
<auro-dialog id="unformattedCustomMdDialog" unformatted md lg class="example">
|
|
46
|
-
<span slot="content">
|
|
47
|
-
<img style="display: block; width: 100%" src="https://worldairlinenews.files.wordpress.com/2022/05/alaska-737-800-sswl-n538as-22-star-warstko-sfo-mdblr-5.4.22.jpg" alt="alaska airlines pride lights" />
|
|
48
|
-
<div class="unformattedWrapper">
|
|
49
|
-
<h1 id="dialog-header" class="heading-lg">Unformatted w/custom close button</h1>
|
|
50
|
-
Notice the custom location of the close button as well as the custom color.
|
|
51
|
-
</div>
|
|
52
|
-
</span>
|
|
53
|
-
</auro-dialog>
|
|
54
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
55
|
-
</div>
|
|
56
|
-
<auro-accordion alignRight>
|
|
57
|
-
<span slot="trigger">See code</span>
|
|
58
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/close-button.html) -->
|
|
59
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/close-button.html -->
|
|
60
|
-
|
|
61
|
-
<pre class="language-html"><code class="language-html"><div>
|
|
62
|
-
<auro-button id="openEditDialog">Unformatted w/custom close button</auro-button>
|
|
63
|
-
</div>
|
|
64
|
-
<style>
|
|
65
|
-
.example::part(close-button) {
|
|
66
|
-
top: var(--ds-size-400);
|
|
67
|
-
right: var(--ds-size-400);
|
|
68
|
-
}
|
|
69
|
-
</style>
|
|
70
|
-
<auro-dialog id="unformattedCustomMdDialog" unformatted md lg class="example">
|
|
71
|
-
<span slot="content">
|
|
72
|
-
<img style="display: block; width: 100%" src="https://worldairlinenews.files.wordpress.com/2022/05/alaska-737-800-sswl-n538as-22-star-warstko-sfo-mdblr-5.4.22.jpg" alt="alaska airlines pride lights" />
|
|
73
|
-
<div class="unformattedWrapper">
|
|
74
|
-
<h1 id="dialog-header" class="heading-lg">Unformatted w/custom close button</h1>
|
|
75
|
-
Notice the custom location of the close button as well as the custom color.
|
|
76
|
-
</div>
|
|
77
|
-
</span>
|
|
78
|
-
</auro-dialog></code></pre>
|
|
79
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
80
|
-
</auro-accordion>
|
|
81
|
-
<auro-header level="2" id="tokens">Design Tokens</auro-header>
|
|
82
|
-
<p>The component may be restyled by overriding the values of the following component-specific design token(s).</p>
|
|
33
|
+
<auro-header level="2" id="tokens">Design tokens</auro-header>
|
|
34
|
+
<p>Override the following component-specific design tokens to restyle the component.</p>
|
|
83
35
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
84
36
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
85
37
|
|
|
86
38
|
<pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/legacy/auro-classic/SCSSVariables" as vac;
|
|
87
39
|
@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
88
|
-
|
|
89
|
-
:host {
|
|
40
|
+
:host {
|
|
90
41
|
--ds-auro-dialog-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
91
42
|
--ds-auro-dialog-boxshadow-color: var(--ds-elevation-300, #{vac.$ds-elevation-300});
|
|
92
43
|
--ds-auro-dialog-overlay-modal-background-color: var(--ds-advanced-color-shared-scrim, #{v.$ds-advanced-color-shared-scrim});
|
|
@@ -94,17 +45,16 @@
|
|
|
94
45
|
--ds-auro-dialog-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
95
46
|
}</code></pre>
|
|
96
47
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
97
|
-
<auro-header level="2" id="customRegistration">Custom
|
|
48
|
+
<auro-header level="2" id="customRegistration">Custom registration</auro-header>
|
|
98
49
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/customRegistration.md) -->
|
|
99
50
|
<!-- The below content is automatically added from ./../docs/partials/getting-started/customRegistration.md -->
|
|
100
51
|
<p>Every Auro component consists of a JavaScript <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</auro-hyperlink> and a <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define">custom element registration</auro-hyperlink>. The class defines the component's behavior, and the registration maps it to an HTML tag name so it can be used in markup.</p>
|
|
101
52
|
<p>The default import handles both steps automatically, registering the component under its standard <code><auro-dialog></code> tag name.</p>
|
|
102
|
-
<p>
|
|
53
|
+
<p>When two projects on the same page depend on different versions of the component, register the class under a custom tag name to avoid conflicts. Import the component class directly and call its <code>register(name)</code> method with a unique name:</p>
|
|
103
54
|
|
|
104
55
|
<pre class="language-js"><code class="language-js">// Import the class only
|
|
105
56
|
import { AuroDialog } from '@aurodesignsystem/auro-dialog/class';
|
|
106
|
-
|
|
107
|
-
// Register with a custom name
|
|
57
|
+
// Register with a custom name
|
|
108
58
|
AuroDialog.register('custom-dialog');</code></pre>
|
|
109
59
|
|
|
110
60
|
<p>This creates a new custom element <code><custom-dialog></code> that behaves exactly like <code><auro-dialog></code>, allowing both to coexist on the same page without interfering with each other.</p>
|
|
@@ -115,10 +65,10 @@ AuroDialog.register('custom-dialog');</code></pre>
|
|
|
115
65
|
<div slot="footer">
|
|
116
66
|
<auro-button id="closeCustom">Close</auro-button>
|
|
117
67
|
</div>
|
|
118
|
-
</custom-dialog></code></pre>
|
|
68
|
+
</custom-dialog></code></pre>
|
|
119
69
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
120
|
-
<auro-header level="2" id="layeredComponents">Layered
|
|
121
|
-
<p>A common pattern places floating components
|
|
70
|
+
<auro-header level="2" id="layeredComponents">Layered components</auro-header>
|
|
71
|
+
<p>A common pattern places floating components, such as a popover and a dropdown, inside the dialog to create a stack of layered components.</p>
|
|
122
72
|
<div class="exampleWrapper">
|
|
123
73
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/popover-and-dropdown.html) -->
|
|
124
74
|
<!-- The below content is automatically added from ./../apiExamples/popover-and-dropdown.html -->
|
|
@@ -126,7 +76,7 @@ AuroDialog.register('custom-dialog');</code></pre>
|
|
|
126
76
|
<auro-button id="openPopAndDrop">Open dialog with popover</auro-button>
|
|
127
77
|
</div>
|
|
128
78
|
<auro-dialog id="popover-dialog" sm lg>
|
|
129
|
-
<span slot="header">Small
|
|
79
|
+
<span slot="header">Small dialog</span>
|
|
130
80
|
<div slot="content">
|
|
131
81
|
<p>
|
|
132
82
|
When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.
|
|
@@ -163,7 +113,7 @@ AuroDialog.register('custom-dialog');</code></pre>
|
|
|
163
113
|
<div slot="footer">
|
|
164
114
|
<auro-button id="closePopAndDrop">
|
|
165
115
|
I understand
|
|
166
|
-
<auro-icon category="interface" name="check-lg"
|
|
116
|
+
<auro-icon category="interface" name="check-lg" appearance="inverse"></auro-icon>
|
|
167
117
|
</auro-button>
|
|
168
118
|
</div>
|
|
169
119
|
</auro-dialog>
|
|
@@ -176,9 +126,9 @@ AuroDialog.register('custom-dialog');</code></pre>
|
|
|
176
126
|
|
|
177
127
|
<pre class="language-html"><code class="language-html"><div>
|
|
178
128
|
<auro-button id="openPopAndDrop">Open dialog with popover</auro-button>
|
|
179
|
-
</div>
|
|
180
|
-
|
|
181
|
-
<span slot="header">Small
|
|
129
|
+
</div>
|
|
130
|
+
<auro-dialog id="popover-dialog" sm lg>
|
|
131
|
+
<span slot="header">Small dialog</span>
|
|
182
132
|
<div slot="content">
|
|
183
133
|
<p>
|
|
184
134
|
When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.
|
|
@@ -215,10 +165,10 @@ AuroDialog.register('custom-dialog');</code></pre>
|
|
|
215
165
|
<div slot="footer">
|
|
216
166
|
<auro-button id="closePopAndDrop">
|
|
217
167
|
I understand
|
|
218
|
-
<auro-icon category="interface" name="check-lg"
|
|
168
|
+
<auro-icon category="interface" name="check-lg" appearance="inverse"></auro-icon>
|
|
219
169
|
</auro-button>
|
|
220
170
|
</div>
|
|
221
|
-
</auro-dialog></code></pre>
|
|
171
|
+
</auro-dialog></code></pre>
|
|
222
172
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
223
173
|
</auro-accordion>
|
|
224
174
|
</div>
|