@patternfly/patternfly 4.176.2 → 4.176.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.
@@ -35,6 +35,7 @@
35
35
  --pf-c-dropdown__toggle--m-primary--focus--BackgroundColor: var(--pf-global--primary-color--200);
36
36
  --pf-c-dropdown__toggle--m-primary--active--BackgroundColor: var(--pf-global--primary-color--200);
37
37
  --pf-c-dropdown--m-expanded__toggle--m-primary--BackgroundColor: var(--pf-global--primary-color--200);
38
+ --pf-c-dropdown__toggle--m-primary--disabled--Color: var(--pf-global--Color--100);
38
39
  --pf-c-dropdown__toggle--m-secondary--Color: var(--pf-global--primary-color--100);
39
40
  --pf-c-dropdown__toggle--m-secondary--BorderRadius: var(--pf-global--BorderRadius--sm);
40
41
  --pf-c-dropdown__toggle--m-secondary--BackgroundColor: transparent;
@@ -193,6 +194,7 @@
193
194
  border-color: var(--pf-c-dropdown__toggle--before--BorderTopColor) var(--pf-c-dropdown__toggle--before--BorderRightColor) var(--pf-c-dropdown__toggle--before--BorderBottomColor) var(--pf-c-dropdown__toggle--before--BorderLeftColor);
194
195
  }
195
196
  .pf-c-dropdown__toggle.pf-m-disabled, .pf-c-dropdown__toggle:disabled {
197
+ --pf-c-dropdown__toggle--m-primary--Color: var(--pf-c-dropdown__toggle--m-primary--disabled--Color);
196
198
  --pf-c-dropdown__toggle--before--BorderBottomColor: transparent;
197
199
  pointer-events: none;
198
200
  }
@@ -285,14 +287,14 @@
285
287
  .pf-c-dropdown__toggle:not(.pf-m-action):not(.pf-m-secondary):hover::before, .pf-c-dropdown__toggle.pf-m-action .pf-c-dropdown__toggle-button:hover::before {
286
288
  --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown__toggle--hover--before--BorderBottomColor);
287
289
  }
288
- .pf-c-dropdown__toggle:not(.pf-m-action):not(.pf-m-secondary):active::before, .pf-c-dropdown__toggle:not(.pf-m-action):not(.pf-m-secondary).pf-m-active::before, .pf-c-dropdown__toggle.pf-m-action .pf-c-dropdown__toggle-button:active::before {
289
- --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown__toggle--active--before--BorderBottomColor);
290
- border-bottom-width: var(--pf-c-dropdown__toggle--active--before--BorderBottomWidth);
291
- }
292
290
  .pf-c-dropdown__toggle:not(.pf-m-action):not(.pf-m-secondary):focus::before, .pf-c-dropdown__toggle.pf-m-action .pf-c-dropdown__toggle-button:focus::before {
293
291
  --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown__toggle--focus--before--BorderBottomColor);
294
292
  border-bottom-width: var(--pf-c-dropdown__toggle--focus--before--BorderBottomWidth);
295
293
  }
294
+ .pf-c-dropdown__toggle:not(.pf-m-action):not(.pf-m-secondary):active::before, .pf-c-dropdown__toggle:not(.pf-m-action):not(.pf-m-secondary).pf-m-active::before, .pf-c-dropdown__toggle.pf-m-action .pf-c-dropdown__toggle-button:active::before {
295
+ --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown__toggle--active--before--BorderBottomColor);
296
+ border-bottom-width: var(--pf-c-dropdown__toggle--active--before--BorderBottomWidth);
297
+ }
296
298
  .pf-m-expanded > .pf-c-dropdown__toggle:not(.pf-m-action):not(.pf-m-secondary)::before, .pf-m-expanded > .pf-c-dropdown__toggle.pf-m-action .pf-c-dropdown__toggle-button::before {
297
299
  --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown--m-expanded__toggle--before--BorderBottomColor);
298
300
  border-bottom-width: var(--pf-c-dropdown--m-expanded__toggle--before--BorderBottomWidth);
@@ -320,14 +322,13 @@
320
322
  --pf-c-dropdown__toggle--m-plain--Color: var(--pf-c-dropdown__toggle--m-plain--disabled--Color);
321
323
  }
322
324
  .pf-c-dropdown__toggle.pf-m-primary {
323
- border-radius: var(--pf-c-dropdown__toggle--m-primary--BorderRadius);
324
- }
325
- .pf-c-dropdown__toggle.pf-m-primary:not(.pf-m-disabled):not([disabled]) {
326
325
  --pf-c-dropdown__toggle--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
327
326
  --pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--BackgroundColor);
328
327
  --pf-c-dropdown__toggle-button--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
328
+ border-radius: var(--pf-c-dropdown__toggle--m-primary--BorderRadius);
329
329
  }
330
- .pf-c-dropdown__toggle.pf-m-primary::before {
330
+ .pf-c-dropdown__toggle.pf-m-primary::before,
331
+ .pf-c-dropdown__toggle.pf-m-primary .pf-c-dropdown__toggle-button::before {
331
332
  border: 0;
332
333
  }
333
334
  .pf-c-dropdown__toggle.pf-m-primary:hover {
@@ -339,7 +340,7 @@
339
340
  .pf-c-dropdown__toggle.pf-m-primary:active, .pf-c-dropdown__toggle.pf-m-primary.pf-m-active {
340
341
  --pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--active--BackgroundColor);
341
342
  }
342
- .pf-c-dropdown__toggle.pf-m-primary .pf-m-expanded > :not(.pf-m-disabled):not([disabled]) {
343
+ .pf-m-expanded > .pf-c-dropdown__toggle.pf-m-primary {
343
344
  --pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown--m-expanded__toggle--m-primary--BackgroundColor);
344
345
  }
345
346
  .pf-c-dropdown__toggle.pf-m-secondary {
@@ -42,6 +42,7 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
42
42
  --pf-c-dropdown__toggle--m-primary--focus--BackgroundColor: var(--pf-global--primary-color--200);
43
43
  --pf-c-dropdown__toggle--m-primary--active--BackgroundColor: var(--pf-global--primary-color--200);
44
44
  --pf-c-dropdown--m-expanded__toggle--m-primary--BackgroundColor: var(--pf-global--primary-color--200);
45
+ --pf-c-dropdown__toggle--m-primary--disabled--Color: var(--pf-global--Color--100);
45
46
 
46
47
  // Secondary
47
48
  --pf-c-dropdown__toggle--m-secondary--Color: var(--pf-global--primary-color--100);
@@ -249,6 +250,7 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
249
250
 
250
251
  &.pf-m-disabled,
251
252
  &:disabled {
253
+ --pf-c-dropdown__toggle--m-primary--Color: var(--pf-c-dropdown__toggle--m-primary--disabled--Color);
252
254
  --pf-c-dropdown__toggle--before--BorderBottomColor: transparent;
253
255
 
254
256
  pointer-events: none;
@@ -380,22 +382,22 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
380
382
  }
381
383
  }
382
384
 
383
- &:not(.pf-m-action):not(.pf-m-secondary):active,
384
- &:not(.pf-m-action):not(.pf-m-secondary).pf-m-active,
385
- &.pf-m-action .pf-c-dropdown__toggle-button:active {
385
+ &:not(.pf-m-action):not(.pf-m-secondary):focus,
386
+ &.pf-m-action .pf-c-dropdown__toggle-button:focus {
386
387
  &::before {
387
- --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown__toggle--active--before--BorderBottomColor);
388
+ --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown__toggle--focus--before--BorderBottomColor);
388
389
 
389
- border-bottom-width: var(--pf-c-dropdown__toggle--active--before--BorderBottomWidth);
390
+ border-bottom-width: var(--pf-c-dropdown__toggle--focus--before--BorderBottomWidth);
390
391
  }
391
392
  }
392
393
 
393
- &:not(.pf-m-action):not(.pf-m-secondary):focus,
394
- &.pf-m-action .pf-c-dropdown__toggle-button:focus {
394
+ &:not(.pf-m-action):not(.pf-m-secondary):active,
395
+ &:not(.pf-m-action):not(.pf-m-secondary).pf-m-active,
396
+ &.pf-m-action .pf-c-dropdown__toggle-button:active {
395
397
  &::before {
396
- --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown__toggle--focus--before--BorderBottomColor);
398
+ --pf-c-dropdown__toggle--before--BorderBottomColor: var(--pf-c-dropdown__toggle--active--before--BorderBottomColor);
397
399
 
398
- border-bottom-width: var(--pf-c-dropdown__toggle--focus--before--BorderBottomWidth);
400
+ border-bottom-width: var(--pf-c-dropdown__toggle--active--before--BorderBottomWidth);
399
401
  }
400
402
  }
401
403
 
@@ -444,15 +446,14 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
444
446
  }
445
447
 
446
448
  &.pf-m-primary {
447
- &:not(.pf-m-disabled):not([disabled]) {
448
- --pf-c-dropdown__toggle--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
449
- --pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--BackgroundColor);
450
- --pf-c-dropdown__toggle-button--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
451
- }
449
+ --pf-c-dropdown__toggle--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
450
+ --pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--BackgroundColor);
451
+ --pf-c-dropdown__toggle-button--Color: var(--pf-c-dropdown__toggle--m-primary--Color);
452
452
 
453
453
  border-radius: var(--pf-c-dropdown__toggle--m-primary--BorderRadius);
454
454
 
455
- &::before {
455
+ &::before,
456
+ .pf-c-dropdown__toggle-button::before {
456
457
  border: 0;
457
458
  }
458
459
 
@@ -469,7 +470,7 @@ $pf-c-dropdown--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "
469
470
  --pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown__toggle--m-primary--active--BackgroundColor);
470
471
  }
471
472
 
472
- .pf-m-expanded > :not(.pf-m-disabled):not([disabled]) {
473
+ .pf-m-expanded > & {
473
474
  --pf-c-dropdown__toggle--BackgroundColor: var(--pf-c-dropdown--m-expanded__toggle--m-primary--BackgroundColor);
474
475
  }
475
476
  }
@@ -5,371 +5,64 @@ section: components
5
5
 
6
6
  ### Toast
7
7
 
8
- ```html isFullscreen
9
- <div class="pf-c-page" id="alert-toast-example">
10
- <a
11
- class="pf-c-skip-to-content pf-c-button pf-m-primary"
12
- href="#main-content-alert-toast-example"
13
- >Skip to content</a>
14
- <header class="pf-c-page__header">
15
- <div class="pf-c-page__header-brand">
16
- <div class="pf-c-page__header-brand-toggle">
17
- <button
18
- class="pf-c-button pf-m-plain"
19
- type="button"
20
- id="alert-toast-example-nav-toggle"
21
- aria-label="Global navigation"
22
- aria-expanded="true"
23
- aria-controls="alert-toast-example-primary-nav"
24
- >
25
- <i class="fas fa-bars" aria-hidden="true"></i>
26
- </button>
27
- </div>
28
- <a href="#" class="pf-c-page__header-brand-link">
29
- <img
30
- class="pf-c-brand"
31
- src="/assets/images/PF-Masthead-Logo.svg"
32
- alt="PatternFly logo"
33
- />
34
- </a>
35
- </div>
36
-
37
- <div class="pf-c-page__header-tools">
38
- <div class="pf-c-page__header-tools-group">
39
- <div
40
- class="pf-c-page__header-tools-item pf-m-hidden pf-m-visible-on-lg"
41
- >
42
- <button
43
- class="pf-c-button pf-m-plain"
44
- type="button"
45
- aria-label="Settings"
46
- >
47
- <i class="fas fa-cog" aria-hidden="true"></i>
48
- </button>
49
- </div>
50
- <div
51
- class="pf-c-page__header-tools-item pf-m-hidden pf-m-visible-on-lg"
52
- >
53
- <button
54
- class="pf-c-button pf-m-plain"
55
- type="button"
56
- aria-label="Help"
57
- >
58
- <i class="pf-icon pf-icon-help" aria-hidden="true"></i>
59
- </button>
60
- </div>
61
- </div>
62
- <div class="pf-c-page__header-tools-group">
63
- <div class="pf-c-page__header-tools-item pf-m-hidden-on-lg">
64
- <div class="pf-c-dropdown">
65
- <button
66
- class="pf-c-dropdown__toggle pf-m-plain"
67
- id="alert-toast-example-dropdown-kebab-1-button"
68
- aria-expanded="false"
69
- type="button"
70
- aria-label="Actions"
71
- >
72
- <i class="fas fa-ellipsis-v" aria-hidden="true"></i>
73
- </button>
74
- <ul
75
- class="pf-c-dropdown__menu pf-m-align-right"
76
- aria-labelledby="alert-toast-example-dropdown-kebab-1-button"
77
- hidden
78
- >
79
- <li>
80
- <a class="pf-c-dropdown__menu-item" href="#">Link</a>
81
- </li>
82
- <li>
83
- <button class="pf-c-dropdown__menu-item" type="button">Action</button>
84
- </li>
85
- <li>
86
- <a
87
- class="pf-c-dropdown__menu-item pf-m-disabled"
88
- href="#"
89
- aria-disabled="true"
90
- tabindex="-1"
91
- >Disabled link</a>
92
- </li>
93
- <li>
94
- <button
95
- class="pf-c-dropdown__menu-item"
96
- type="button"
97
- disabled
98
- >Disabled action</button>
99
- </li>
100
- <li class="pf-c-divider" role="separator"></li>
101
- <li>
102
- <a class="pf-c-dropdown__menu-item" href="#">Separated link</a>
103
- </li>
104
- </ul>
105
- </div>
106
- </div>
107
- <div
108
- class="pf-c-page__header-tools-item pf-m-hidden pf-m-visible-on-md"
109
- >
110
- <div class="pf-c-dropdown">
111
- <button
112
- class="pf-c-dropdown__toggle pf-m-plain"
113
- id="alert-toast-example-dropdown-kebab-2-button"
114
- aria-expanded="false"
115
- type="button"
116
- >
117
- <span class="pf-c-dropdown__toggle-text">John Smith</span>
118
- <span class="pf-c-dropdown__toggle-icon">
119
- <i class="fas fa-caret-down" aria-hidden="true"></i>
120
- </span>
121
- </button>
122
- <ul
123
- class="pf-c-dropdown__menu"
124
- aria-labelledby="alert-toast-example-dropdown-kebab-2-button"
125
- hidden
126
- >
127
- <li>
128
- <a class="pf-c-dropdown__menu-item" href="#">Link</a>
129
- </li>
130
- <li>
131
- <button class="pf-c-dropdown__menu-item" type="button">Action</button>
132
- </li>
133
- <li>
134
- <a
135
- class="pf-c-dropdown__menu-item pf-m-disabled"
136
- href="#"
137
- aria-disabled="true"
138
- tabindex="-1"
139
- >Disabled link</a>
140
- </li>
141
- <li>
142
- <button
143
- class="pf-c-dropdown__menu-item"
144
- type="button"
145
- disabled
146
- >Disabled action</button>
147
- </li>
148
- <li class="pf-c-divider" role="separator"></li>
149
- <li>
150
- <a class="pf-c-dropdown__menu-item" href="#">Separated link</a>
151
- </li>
152
- </ul>
153
- </div>
154
- </div>
155
- </div>
156
- <img
157
- class="pf-c-avatar"
158
- src="/assets/images/img_avatar.svg"
159
- alt="Avatar image"
160
- />
161
- </div>
162
- </header>
163
- <div class="pf-c-page__sidebar">
164
- <div class="pf-c-page__sidebar-body">
165
- <nav
166
- class="pf-c-nav"
167
- id="alert-toast-example-primary-nav"
168
- aria-label="Global"
169
- >
170
- <ul class="pf-c-nav__list">
171
- <li class="pf-c-nav__item">
172
- <a href="#" class="pf-c-nav__link">System panel</a>
173
- </li>
174
- <li class="pf-c-nav__item">
175
- <a
176
- href="#"
177
- class="pf-c-nav__link pf-m-current"
178
- aria-current="page"
179
- >Policy</a>
180
- </li>
181
- <li class="pf-c-nav__item">
182
- <a href="#" class="pf-c-nav__link">Authentication</a>
183
- </li>
184
- <li class="pf-c-nav__item">
185
- <a href="#" class="pf-c-nav__link">Network services</a>
186
- </li>
187
- <li class="pf-c-nav__item">
188
- <a href="#" class="pf-c-nav__link">Server</a>
189
- </li>
190
- </ul>
191
- </nav>
192
- </div>
193
- </div>
194
- <main
195
- class="pf-c-page__main"
196
- tabindex="-1"
197
- id="main-content-alert-toast-example"
198
- >
199
- <section class="pf-c-page__main-breadcrumb pf-m-limit-width">
200
- <div class="pf-c-page__main-body">
201
- <nav class="pf-c-breadcrumb" aria-label="breadcrumb">
202
- <ol class="pf-c-breadcrumb__list">
203
- <li class="pf-c-breadcrumb__item">
204
- <a href="#" class="pf-c-breadcrumb__link">Section home</a>
205
- </li>
206
- <li class="pf-c-breadcrumb__item">
207
- <span class="pf-c-breadcrumb__item-divider">
208
- <i class="fas fa-angle-right" aria-hidden="true"></i>
209
- </span>
210
-
211
- <a href="#" class="pf-c-breadcrumb__link">Section title</a>
212
- </li>
213
- <li class="pf-c-breadcrumb__item">
214
- <span class="pf-c-breadcrumb__item-divider">
215
- <i class="fas fa-angle-right" aria-hidden="true"></i>
216
- </span>
217
-
218
- <a href="#" class="pf-c-breadcrumb__link">Section title</a>
219
- </li>
220
- <li class="pf-c-breadcrumb__item">
221
- <span class="pf-c-breadcrumb__item-divider">
222
- <i class="fas fa-angle-right" aria-hidden="true"></i>
223
- </span>
224
-
225
- <a
226
- href="#"
227
- class="pf-c-breadcrumb__link pf-m-current"
228
- aria-current="page"
229
- >Section landing</a>
230
- </li>
231
- </ol>
232
- </nav>
233
- </div>
234
- </section>
235
- <section class="pf-c-page__main-section pf-m-limit-width pf-m-light">
236
- <div class="pf-c-page__main-body">
237
- <div class="pf-c-content">
238
- <h1>Main title</h1>
239
- <p>This is a demo of the page component.</p>
240
- </div>
241
- </div>
242
- </section>
243
- <section class="pf-c-page__main-section pf-m-limit-width">
244
- <div class="pf-c-page__main-body">
245
- <div class="pf-l-gallery pf-m-gutter">
246
- <div class="pf-l-gallery__item">
247
- <div class="pf-c-card">
248
- <div class="pf-c-card__body">This is a card</div>
249
- </div>
250
- </div>
251
- <div class="pf-l-gallery__item">
252
- <div class="pf-c-card">
253
- <div class="pf-c-card__body">This is a card</div>
254
- </div>
255
- </div>
256
- <div class="pf-l-gallery__item">
257
- <div class="pf-c-card">
258
- <div class="pf-c-card__body">This is a card</div>
259
- </div>
260
- </div>
261
- <div class="pf-l-gallery__item">
262
- <div class="pf-c-card">
263
- <div class="pf-c-card__body">This is a card</div>
264
- </div>
265
- </div>
266
- <div class="pf-l-gallery__item">
267
- <div class="pf-c-card">
268
- <div class="pf-c-card__body">This is a card</div>
269
- </div>
270
- </div>
271
- <div class="pf-l-gallery__item">
272
- <div class="pf-c-card">
273
- <div class="pf-c-card__body">This is a card</div>
274
- </div>
275
- </div>
276
- <div class="pf-l-gallery__item">
277
- <div class="pf-c-card">
278
- <div class="pf-c-card__body">This is a card</div>
279
- </div>
280
- </div>
281
- <div class="pf-l-gallery__item">
282
- <div class="pf-c-card">
283
- <div class="pf-c-card__body">This is a card</div>
284
- </div>
285
- </div>
286
- <div class="pf-l-gallery__item">
287
- <div class="pf-c-card">
288
- <div class="pf-c-card__body">This is a card</div>
289
- </div>
290
- </div>
291
- <div class="pf-l-gallery__item">
292
- <div class="pf-c-card">
293
- <div class="pf-c-card__body">This is a card</div>
294
- </div>
295
- </div>
296
- </div>
297
- </div>
298
- </section>
299
- </main>
300
- </div>
301
- <ul class="pf-c-alert-group pf-m-toast">
302
- <li class="pf-c-alert-group__item">
303
- <div class="pf-c-alert pf-m-success" aria-label="Success alert">
304
- <div class="pf-c-alert__icon">
305
- <i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
306
- </div>
307
- <p class="pf-c-alert__title">
308
- <span class="pf-screen-reader">Success alert:</span>
8
+ ```hbs isFullscreen
9
+ {{> page-demo-default page-demo-default--id="alert-toast-example"}}
10
+ {{#> alert-group alert-group--modifier="pf-m-toast"}}
11
+ {{#> alert-item}}
12
+ {{#> alert alert--modifier="pf-m-success" alert--attribute='aria-label="Success alert"'}}
13
+ {{#> alert-icon alert-icon--type="check-circle"}}
14
+ {{/alert-icon}}
15
+ {{#> alert-title}}
16
+ {{#> screen-reader}}Success alert:{{/screen-reader}}
309
17
  Newest notification
310
- </p>
311
- <div class="pf-c-alert__action">
312
- <button
313
- class="pf-c-button pf-m-plain"
314
- type="button"
315
- aria-label="Close success alert: Newest notification"
316
- >
18
+ {{/alert-title}}
19
+ {{#> alert-action}}
20
+ {{#> button button--modifier="pf-m-plain" button--attribute='aria-label="Close success alert: Newest notification"'}}
317
21
  <i class="fas fa-times" aria-hidden="true"></i>
318
- </button>
319
- </div>
320
- <div class="pf-c-alert__description">
321
- <p>This is a description of the notification content.</p>
322
- </div>
323
- </div>
324
- </li>
325
- <li class="pf-c-alert-group__item">
326
- <div class="pf-c-alert pf-m-warning" aria-label="Warning alert">
327
- <div class="pf-c-alert__icon">
328
- <i class="fas fa-fw fa-exclamation-triangle" aria-hidden="true"></i>
329
- </div>
330
- <p class="pf-c-alert__title">
331
- <span class="pf-screen-reader">Info alert:</span>
22
+ {{/button}}
23
+ {{/alert-action}}
24
+ {{#> alert-description}}
25
+ This is a description of the notification content.
26
+ {{/alert-description}}
27
+ {{/alert}}
28
+ {{/alert-item}}
29
+ {{#> alert-item}}
30
+ {{#> alert alert--modifier="pf-m-warning" alert--attribute='aria-label="Warning alert"'}}
31
+ {{#> alert-icon alert-icon--type="exclamation-triangle"}}
32
+ {{/alert-icon}}
33
+ {{#> alert-title}}
34
+ {{#> screen-reader}}Info alert:{{/screen-reader}}
332
35
  Second newest notification
333
- </p>
334
- <div class="pf-c-alert__action">
335
- <button
336
- class="pf-c-button pf-m-plain"
337
- type="button"
338
- aria-label="Close warning alert: second newest notification"
339
- >
36
+ {{/alert-title}}
37
+ {{#> alert-action}}
38
+ {{#> button button--modifier="pf-m-plain" button--attribute='aria-label="Close warning alert: second newest notification"'}}
340
39
  <i class="fas fa-times" aria-hidden="true"></i>
341
- </button>
342
- </div>
343
- <div class="pf-c-alert__description">
344
- <p>This is a description of the notification content.</p>
345
- </div>
346
- </div>
347
- </li>
348
- <li class="pf-c-alert-group__item">
349
- <div class="pf-c-alert pf-m-danger" aria-label="Danger alert">
350
- <div class="pf-c-alert__icon">
351
- <i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
352
- </div>
353
- <p class="pf-c-alert__title">
354
- <span class="pf-screen-reader">Last notification</span>
40
+ {{/button}}
41
+ {{/alert-action}}
42
+ {{#> alert-description}}
43
+ This is a description of the notification content.
44
+ {{/alert-description}}
45
+ {{/alert}}
46
+ {{/alert-item}}
47
+ {{#> alert-item}}
48
+ {{#> alert alert--modifier="pf-m-danger" alert--attribute='aria-label="Danger alert"'}}
49
+ {{#> alert-icon alert-icon--type="exclamation-circle"}}
50
+ {{/alert-icon}}
51
+ {{#> alert-title}}
52
+ {{#> screen-reader}}Last notification{{/screen-reader}}
355
53
  Last notification
356
- </p>
357
- <div class="pf-c-alert__action">
358
- <button
359
- class="pf-c-button pf-m-plain"
360
- type="button"
361
- aria-label="Close danger alert: Last notification"
362
- >
54
+ {{/alert-title}}
55
+ {{#> alert-action}}
56
+ {{#> button button--modifier="pf-m-plain" button--attribute='aria-label="Close danger alert: Last notification"'}}
363
57
  <i class="fas fa-times" aria-hidden="true"></i>
364
- </button>
365
- </div>
366
- <div class="pf-c-alert__description">
367
- <p>This is a description of the notification content.</p>
368
- </div>
369
- </div>
370
- </li>
371
- </ul>
372
-
58
+ {{/button}}
59
+ {{/alert-action}}
60
+ {{#> alert-description}}
61
+ This is a description of the notification content.
62
+ {{/alert-description}}
63
+ {{/alert}}
64
+ {{/alert-item}}
65
+ {{/alert-group}}
373
66
  ```
374
67
 
375
68
  ### Inline Alert in Horizontal Form