@patternfly/react-core 5.0.0-alpha.22 → 5.0.0-alpha.24
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 +12 -0
- package/components/Card/Card.d.ts +1 -1
- package/components/Card/Card.d.ts.map +1 -1
- package/components/Card/Card.js +1 -1
- package/components/Card/Card.js.map +1 -1
- package/components/Chip/Chip.d.ts.map +1 -1
- package/components/Chip/Chip.js +7 -4
- package/components/Chip/Chip.js.map +1 -1
- package/components/Label/Label.d.ts.map +1 -1
- package/components/Label/Label.js +2 -1
- package/components/Label/Label.js.map +1 -1
- package/dist/esm/components/Card/Card.d.ts +1 -1
- package/dist/esm/components/Card/Card.d.ts.map +1 -1
- package/dist/esm/components/Card/Card.js +1 -1
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
- package/dist/esm/components/Chip/Chip.js +7 -4
- package/dist/esm/components/Chip/Chip.js.map +1 -1
- package/dist/esm/components/Label/Label.d.ts.map +1 -1
- package/dist/esm/components/Label/Label.js +2 -1
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/js/components/Card/Card.d.ts +1 -1
- package/dist/js/components/Card/Card.d.ts.map +1 -1
- package/dist/js/components/Card/Card.js +1 -1
- package/dist/js/components/Card/Card.js.map +1 -1
- package/dist/js/components/Chip/Chip.d.ts.map +1 -1
- package/dist/js/components/Chip/Chip.js +7 -4
- package/dist/js/components/Chip/Chip.js.map +1 -1
- package/dist/js/components/Label/Label.d.ts.map +1 -1
- package/dist/js/components/Label/Label.js +2 -1
- package/dist/js/components/Label/Label.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +2 -2
- package/src/components/Card/Card.tsx +2 -2
- package/src/components/Card/examples/CardLegacySelectable.tsx +1 -1
- package/src/components/Card/examples/CardSelectable.tsx +1 -1
- package/src/components/Card/examples/CardSelectableA11yHighlight.tsx +1 -1
- package/src/components/Chip/Chip.tsx +19 -13
- package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +149 -109
- package/src/components/ChipGroup/__tests__/__snapshots__/ChipGroup.test.tsx.snap +136 -104
- package/src/components/Label/Label.tsx +14 -10
- package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +75 -63
- package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +68 -52
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +68 -52
- package/src/demos/PrimaryDetail.md +1 -1
|
@@ -27,36 +27,44 @@ exports[`ChipGroup chip group default 1`] = `
|
|
|
27
27
|
data-ouia-safe="true"
|
|
28
28
|
>
|
|
29
29
|
<span
|
|
30
|
-
class="pf-c-
|
|
31
|
-
id="pf-random-id-1"
|
|
30
|
+
class="pf-c-chip__content"
|
|
32
31
|
>
|
|
33
|
-
|
|
32
|
+
<span
|
|
33
|
+
class="pf-c-chip__text"
|
|
34
|
+
id="pf-random-id-1"
|
|
35
|
+
>
|
|
36
|
+
1.1
|
|
37
|
+
</span>
|
|
34
38
|
</span>
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
aria-label="close"
|
|
38
|
-
aria-labelledby="remove_pf-random-id-1 pf-random-id-1"
|
|
39
|
-
class="pf-c-button pf-m-plain"
|
|
40
|
-
data-ouia-component-id="close"
|
|
41
|
-
data-ouia-component-type="PF4/Button"
|
|
42
|
-
data-ouia-safe="true"
|
|
43
|
-
id="remove_pf-random-id-1"
|
|
44
|
-
type="button"
|
|
39
|
+
<span
|
|
40
|
+
class="pf-c-chip__actions"
|
|
45
41
|
>
|
|
46
|
-
<
|
|
47
|
-
aria-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
<button
|
|
43
|
+
aria-disabled="false"
|
|
44
|
+
aria-label="close"
|
|
45
|
+
aria-labelledby="remove_pf-random-id-1 pf-random-id-1"
|
|
46
|
+
class="pf-c-button pf-m-plain"
|
|
47
|
+
data-ouia-component-id="close"
|
|
48
|
+
data-ouia-component-type="PF4/Button"
|
|
49
|
+
data-ouia-safe="true"
|
|
50
|
+
id="remove_pf-random-id-1"
|
|
51
|
+
type="button"
|
|
54
52
|
>
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
<svg
|
|
54
|
+
aria-hidden="true"
|
|
55
|
+
fill="currentColor"
|
|
56
|
+
height="1em"
|
|
57
|
+
role="img"
|
|
58
|
+
style="vertical-align: -0.125em;"
|
|
59
|
+
viewBox="0 0 352 512"
|
|
60
|
+
width="1em"
|
|
61
|
+
>
|
|
62
|
+
<path
|
|
63
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
64
|
+
/>
|
|
65
|
+
</svg>
|
|
66
|
+
</button>
|
|
67
|
+
</span>
|
|
60
68
|
</div>
|
|
61
69
|
</li>
|
|
62
70
|
</ul>
|
|
@@ -98,36 +106,44 @@ exports[`ChipGroup chip group with category 1`] = `
|
|
|
98
106
|
data-ouia-safe="true"
|
|
99
107
|
>
|
|
100
108
|
<span
|
|
101
|
-
class="pf-c-
|
|
102
|
-
id="pf-random-id-3"
|
|
109
|
+
class="pf-c-chip__content"
|
|
103
110
|
>
|
|
104
|
-
|
|
111
|
+
<span
|
|
112
|
+
class="pf-c-chip__text"
|
|
113
|
+
id="pf-random-id-3"
|
|
114
|
+
>
|
|
115
|
+
1.1
|
|
116
|
+
</span>
|
|
105
117
|
</span>
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
aria-label="close"
|
|
109
|
-
aria-labelledby="remove_pf-random-id-3 pf-random-id-3"
|
|
110
|
-
class="pf-c-button pf-m-plain"
|
|
111
|
-
data-ouia-component-id="close"
|
|
112
|
-
data-ouia-component-type="PF4/Button"
|
|
113
|
-
data-ouia-safe="true"
|
|
114
|
-
id="remove_pf-random-id-3"
|
|
115
|
-
type="button"
|
|
118
|
+
<span
|
|
119
|
+
class="pf-c-chip__actions"
|
|
116
120
|
>
|
|
117
|
-
<
|
|
118
|
-
aria-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
<button
|
|
122
|
+
aria-disabled="false"
|
|
123
|
+
aria-label="close"
|
|
124
|
+
aria-labelledby="remove_pf-random-id-3 pf-random-id-3"
|
|
125
|
+
class="pf-c-button pf-m-plain"
|
|
126
|
+
data-ouia-component-id="close"
|
|
127
|
+
data-ouia-component-type="PF4/Button"
|
|
128
|
+
data-ouia-safe="true"
|
|
129
|
+
id="remove_pf-random-id-3"
|
|
130
|
+
type="button"
|
|
125
131
|
>
|
|
126
|
-
<
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
<svg
|
|
133
|
+
aria-hidden="true"
|
|
134
|
+
fill="currentColor"
|
|
135
|
+
height="1em"
|
|
136
|
+
role="img"
|
|
137
|
+
style="vertical-align: -0.125em;"
|
|
138
|
+
viewBox="0 0 352 512"
|
|
139
|
+
width="1em"
|
|
140
|
+
>
|
|
141
|
+
<path
|
|
142
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
143
|
+
/>
|
|
144
|
+
</svg>
|
|
145
|
+
</button>
|
|
146
|
+
</span>
|
|
131
147
|
</div>
|
|
132
148
|
</li>
|
|
133
149
|
</ul>
|
|
@@ -169,36 +185,44 @@ exports[`ChipGroup chip group with category and tooltip 1`] = `
|
|
|
169
185
|
data-ouia-safe="true"
|
|
170
186
|
>
|
|
171
187
|
<span
|
|
172
|
-
class="pf-c-
|
|
173
|
-
id="pf-random-id-13"
|
|
188
|
+
class="pf-c-chip__content"
|
|
174
189
|
>
|
|
175
|
-
|
|
190
|
+
<span
|
|
191
|
+
class="pf-c-chip__text"
|
|
192
|
+
id="pf-random-id-13"
|
|
193
|
+
>
|
|
194
|
+
1.1
|
|
195
|
+
</span>
|
|
176
196
|
</span>
|
|
177
|
-
<
|
|
178
|
-
|
|
179
|
-
aria-label="close"
|
|
180
|
-
aria-labelledby="remove_pf-random-id-13 pf-random-id-13"
|
|
181
|
-
class="pf-c-button pf-m-plain"
|
|
182
|
-
data-ouia-component-id="close"
|
|
183
|
-
data-ouia-component-type="PF4/Button"
|
|
184
|
-
data-ouia-safe="true"
|
|
185
|
-
id="remove_pf-random-id-13"
|
|
186
|
-
type="button"
|
|
197
|
+
<span
|
|
198
|
+
class="pf-c-chip__actions"
|
|
187
199
|
>
|
|
188
|
-
<
|
|
189
|
-
aria-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
200
|
+
<button
|
|
201
|
+
aria-disabled="false"
|
|
202
|
+
aria-label="close"
|
|
203
|
+
aria-labelledby="remove_pf-random-id-13 pf-random-id-13"
|
|
204
|
+
class="pf-c-button pf-m-plain"
|
|
205
|
+
data-ouia-component-id="close"
|
|
206
|
+
data-ouia-component-type="PF4/Button"
|
|
207
|
+
data-ouia-safe="true"
|
|
208
|
+
id="remove_pf-random-id-13"
|
|
209
|
+
type="button"
|
|
196
210
|
>
|
|
197
|
-
<
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
211
|
+
<svg
|
|
212
|
+
aria-hidden="true"
|
|
213
|
+
fill="currentColor"
|
|
214
|
+
height="1em"
|
|
215
|
+
role="img"
|
|
216
|
+
style="vertical-align: -0.125em;"
|
|
217
|
+
viewBox="0 0 352 512"
|
|
218
|
+
width="1em"
|
|
219
|
+
>
|
|
220
|
+
<path
|
|
221
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
222
|
+
/>
|
|
223
|
+
</svg>
|
|
224
|
+
</button>
|
|
225
|
+
</span>
|
|
202
226
|
</div>
|
|
203
227
|
</li>
|
|
204
228
|
</ul>
|
|
@@ -240,36 +264,44 @@ exports[`ChipGroup chip group with closable category 1`] = `
|
|
|
240
264
|
data-ouia-safe="true"
|
|
241
265
|
>
|
|
242
266
|
<span
|
|
243
|
-
class="pf-c-
|
|
244
|
-
id="pf-random-id-5"
|
|
267
|
+
class="pf-c-chip__content"
|
|
245
268
|
>
|
|
246
|
-
|
|
269
|
+
<span
|
|
270
|
+
class="pf-c-chip__text"
|
|
271
|
+
id="pf-random-id-5"
|
|
272
|
+
>
|
|
273
|
+
1.1
|
|
274
|
+
</span>
|
|
247
275
|
</span>
|
|
248
|
-
<
|
|
249
|
-
|
|
250
|
-
aria-label="close"
|
|
251
|
-
aria-labelledby="remove_pf-random-id-5 pf-random-id-5"
|
|
252
|
-
class="pf-c-button pf-m-plain"
|
|
253
|
-
data-ouia-component-id="close"
|
|
254
|
-
data-ouia-component-type="PF4/Button"
|
|
255
|
-
data-ouia-safe="true"
|
|
256
|
-
id="remove_pf-random-id-5"
|
|
257
|
-
type="button"
|
|
276
|
+
<span
|
|
277
|
+
class="pf-c-chip__actions"
|
|
258
278
|
>
|
|
259
|
-
<
|
|
260
|
-
aria-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
279
|
+
<button
|
|
280
|
+
aria-disabled="false"
|
|
281
|
+
aria-label="close"
|
|
282
|
+
aria-labelledby="remove_pf-random-id-5 pf-random-id-5"
|
|
283
|
+
class="pf-c-button pf-m-plain"
|
|
284
|
+
data-ouia-component-id="close"
|
|
285
|
+
data-ouia-component-type="PF4/Button"
|
|
286
|
+
data-ouia-safe="true"
|
|
287
|
+
id="remove_pf-random-id-5"
|
|
288
|
+
type="button"
|
|
267
289
|
>
|
|
268
|
-
<
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
290
|
+
<svg
|
|
291
|
+
aria-hidden="true"
|
|
292
|
+
fill="currentColor"
|
|
293
|
+
height="1em"
|
|
294
|
+
role="img"
|
|
295
|
+
style="vertical-align: -0.125em;"
|
|
296
|
+
viewBox="0 0 352 512"
|
|
297
|
+
width="1em"
|
|
298
|
+
>
|
|
299
|
+
<path
|
|
300
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
301
|
+
/>
|
|
302
|
+
</svg>
|
|
303
|
+
</button>
|
|
304
|
+
</span>
|
|
273
305
|
</div>
|
|
274
306
|
</li>
|
|
275
307
|
</ul>
|
|
@@ -182,19 +182,23 @@ export const Label: React.FunctionComponent<LabelProps> = ({
|
|
|
182
182
|
|
|
183
183
|
const LabelComponent = (isOverflowLabel ? 'button' : 'span') as any;
|
|
184
184
|
|
|
185
|
-
const
|
|
186
|
-
closeBtn
|
|
187
|
-
) : (
|
|
185
|
+
const defaultButton = (
|
|
188
186
|
<Button
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
187
|
+
type="button"
|
|
188
|
+
variant="plain"
|
|
189
|
+
onClick={onClose}
|
|
190
|
+
aria-label={closeBtnAriaLabel || `Close ${children}`}
|
|
191
|
+
{...closeBtnProps}
|
|
192
|
+
>
|
|
193
|
+
<TimesIcon />
|
|
196
194
|
</Button>
|
|
197
195
|
);
|
|
196
|
+
|
|
197
|
+
const button = (
|
|
198
|
+
<span className={css(styles.labelActions)}>
|
|
199
|
+
{closeBtn || defaultButton}
|
|
200
|
+
</span>
|
|
201
|
+
);
|
|
198
202
|
const textRef = React.createRef<any>();
|
|
199
203
|
// ref to apply tooltip when rendered is used
|
|
200
204
|
const componentRef = React.useRef();
|
|
@@ -10,29 +10,33 @@ exports[`Label editable label 1`] = `
|
|
|
10
10
|
>
|
|
11
11
|
Something
|
|
12
12
|
</button>
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
aria-label="Close Something"
|
|
16
|
-
class="pf-c-button pf-m-plain"
|
|
17
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-3"
|
|
18
|
-
data-ouia-component-type="PF4/Button"
|
|
19
|
-
data-ouia-safe="true"
|
|
20
|
-
type="button"
|
|
13
|
+
<span
|
|
14
|
+
class="pf-c-label__actions"
|
|
21
15
|
>
|
|
22
|
-
<
|
|
23
|
-
aria-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
<button
|
|
17
|
+
aria-disabled="false"
|
|
18
|
+
aria-label="Close Something"
|
|
19
|
+
class="pf-c-button pf-m-plain"
|
|
20
|
+
data-ouia-component-id="OUIA-Generated-Button-plain-3"
|
|
21
|
+
data-ouia-component-type="PF4/Button"
|
|
22
|
+
data-ouia-safe="true"
|
|
23
|
+
type="button"
|
|
30
24
|
>
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
<svg
|
|
26
|
+
aria-hidden="true"
|
|
27
|
+
fill="currentColor"
|
|
28
|
+
height="1em"
|
|
29
|
+
role="img"
|
|
30
|
+
style="vertical-align: -0.125em;"
|
|
31
|
+
viewBox="0 0 352 512"
|
|
32
|
+
width="1em"
|
|
33
|
+
>
|
|
34
|
+
<path
|
|
35
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
36
|
+
/>
|
|
37
|
+
</svg>
|
|
38
|
+
</button>
|
|
39
|
+
</span>
|
|
36
40
|
</span>
|
|
37
41
|
</DocumentFragment>
|
|
38
42
|
`;
|
|
@@ -120,29 +124,33 @@ exports[`Label label with close button 1`] = `
|
|
|
120
124
|
>
|
|
121
125
|
Something
|
|
122
126
|
</span>
|
|
123
|
-
<
|
|
124
|
-
|
|
125
|
-
aria-label="Close Something"
|
|
126
|
-
class="pf-c-button pf-m-plain"
|
|
127
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-1"
|
|
128
|
-
data-ouia-component-type="PF4/Button"
|
|
129
|
-
data-ouia-safe="true"
|
|
130
|
-
type="button"
|
|
127
|
+
<span
|
|
128
|
+
class="pf-c-label__actions"
|
|
131
129
|
>
|
|
132
|
-
<
|
|
133
|
-
aria-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
130
|
+
<button
|
|
131
|
+
aria-disabled="false"
|
|
132
|
+
aria-label="Close Something"
|
|
133
|
+
class="pf-c-button pf-m-plain"
|
|
134
|
+
data-ouia-component-id="OUIA-Generated-Button-plain-1"
|
|
135
|
+
data-ouia-component-type="PF4/Button"
|
|
136
|
+
data-ouia-safe="true"
|
|
137
|
+
type="button"
|
|
140
138
|
>
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
<svg
|
|
140
|
+
aria-hidden="true"
|
|
141
|
+
fill="currentColor"
|
|
142
|
+
height="1em"
|
|
143
|
+
role="img"
|
|
144
|
+
style="vertical-align: -0.125em;"
|
|
145
|
+
viewBox="0 0 352 512"
|
|
146
|
+
width="1em"
|
|
147
|
+
>
|
|
148
|
+
<path
|
|
149
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
150
|
+
/>
|
|
151
|
+
</svg>
|
|
152
|
+
</button>
|
|
153
|
+
</span>
|
|
146
154
|
</span>
|
|
147
155
|
</DocumentFragment>
|
|
148
156
|
`;
|
|
@@ -157,29 +165,33 @@ exports[`Label label with close button and outline variant 1`] = `
|
|
|
157
165
|
>
|
|
158
166
|
Something
|
|
159
167
|
</span>
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
aria-label="Close Something"
|
|
163
|
-
class="pf-c-button pf-m-plain"
|
|
164
|
-
data-ouia-component-id="OUIA-Generated-Button-plain-2"
|
|
165
|
-
data-ouia-component-type="PF4/Button"
|
|
166
|
-
data-ouia-safe="true"
|
|
167
|
-
type="button"
|
|
168
|
+
<span
|
|
169
|
+
class="pf-c-label__actions"
|
|
168
170
|
>
|
|
169
|
-
<
|
|
170
|
-
aria-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
<button
|
|
172
|
+
aria-disabled="false"
|
|
173
|
+
aria-label="Close Something"
|
|
174
|
+
class="pf-c-button pf-m-plain"
|
|
175
|
+
data-ouia-component-id="OUIA-Generated-Button-plain-2"
|
|
176
|
+
data-ouia-component-type="PF4/Button"
|
|
177
|
+
data-ouia-safe="true"
|
|
178
|
+
type="button"
|
|
177
179
|
>
|
|
178
|
-
<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
<svg
|
|
181
|
+
aria-hidden="true"
|
|
182
|
+
fill="currentColor"
|
|
183
|
+
height="1em"
|
|
184
|
+
role="img"
|
|
185
|
+
style="vertical-align: -0.125em;"
|
|
186
|
+
viewBox="0 0 352 512"
|
|
187
|
+
width="1em"
|
|
188
|
+
>
|
|
189
|
+
<path
|
|
190
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
191
|
+
/>
|
|
192
|
+
</svg>
|
|
193
|
+
</button>
|
|
194
|
+
</span>
|
|
183
195
|
</span>
|
|
184
196
|
</DocumentFragment>
|
|
185
197
|
`;
|
|
@@ -1861,36 +1861,44 @@ exports[`typeahead multi select renders selected successfully 1`] = `
|
|
|
1861
1861
|
data-ouia-safe="true"
|
|
1862
1862
|
>
|
|
1863
1863
|
<span
|
|
1864
|
-
class="pf-c-
|
|
1865
|
-
id="pf-random-id-25"
|
|
1864
|
+
class="pf-c-chip__content"
|
|
1866
1865
|
>
|
|
1867
|
-
|
|
1866
|
+
<span
|
|
1867
|
+
class="pf-c-chip__text"
|
|
1868
|
+
id="pf-random-id-25"
|
|
1869
|
+
>
|
|
1870
|
+
Mr
|
|
1871
|
+
</span>
|
|
1868
1872
|
</span>
|
|
1869
|
-
<
|
|
1870
|
-
|
|
1871
|
-
aria-label="Remove"
|
|
1872
|
-
aria-labelledby="remove_pf-random-id-25 pf-random-id-25"
|
|
1873
|
-
class="pf-c-button pf-m-plain"
|
|
1874
|
-
data-ouia-component-id="Remove"
|
|
1875
|
-
data-ouia-component-type="PF4/Button"
|
|
1876
|
-
data-ouia-safe="true"
|
|
1877
|
-
id="remove_pf-random-id-25"
|
|
1878
|
-
type="button"
|
|
1873
|
+
<span
|
|
1874
|
+
class="pf-c-chip__actions"
|
|
1879
1875
|
>
|
|
1880
|
-
<
|
|
1881
|
-
aria-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1876
|
+
<button
|
|
1877
|
+
aria-disabled="false"
|
|
1878
|
+
aria-label="Remove"
|
|
1879
|
+
aria-labelledby="remove_pf-random-id-25 pf-random-id-25"
|
|
1880
|
+
class="pf-c-button pf-m-plain"
|
|
1881
|
+
data-ouia-component-id="Remove"
|
|
1882
|
+
data-ouia-component-type="PF4/Button"
|
|
1883
|
+
data-ouia-safe="true"
|
|
1884
|
+
id="remove_pf-random-id-25"
|
|
1885
|
+
type="button"
|
|
1888
1886
|
>
|
|
1889
|
-
<
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1887
|
+
<svg
|
|
1888
|
+
aria-hidden="true"
|
|
1889
|
+
fill="currentColor"
|
|
1890
|
+
height="1em"
|
|
1891
|
+
role="img"
|
|
1892
|
+
style="vertical-align: -0.125em;"
|
|
1893
|
+
viewBox="0 0 352 512"
|
|
1894
|
+
width="1em"
|
|
1895
|
+
>
|
|
1896
|
+
<path
|
|
1897
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
1898
|
+
/>
|
|
1899
|
+
</svg>
|
|
1900
|
+
</button>
|
|
1901
|
+
</span>
|
|
1894
1902
|
</div>
|
|
1895
1903
|
</li>
|
|
1896
1904
|
<li
|
|
@@ -1903,36 +1911,44 @@ exports[`typeahead multi select renders selected successfully 1`] = `
|
|
|
1903
1911
|
data-ouia-safe="true"
|
|
1904
1912
|
>
|
|
1905
1913
|
<span
|
|
1906
|
-
class="pf-c-
|
|
1907
|
-
id="pf-random-id-26"
|
|
1914
|
+
class="pf-c-chip__content"
|
|
1908
1915
|
>
|
|
1909
|
-
|
|
1916
|
+
<span
|
|
1917
|
+
class="pf-c-chip__text"
|
|
1918
|
+
id="pf-random-id-26"
|
|
1919
|
+
>
|
|
1920
|
+
Mrs
|
|
1921
|
+
</span>
|
|
1910
1922
|
</span>
|
|
1911
|
-
<
|
|
1912
|
-
|
|
1913
|
-
aria-label="Remove"
|
|
1914
|
-
aria-labelledby="remove_pf-random-id-26 pf-random-id-26"
|
|
1915
|
-
class="pf-c-button pf-m-plain"
|
|
1916
|
-
data-ouia-component-id="Remove"
|
|
1917
|
-
data-ouia-component-type="PF4/Button"
|
|
1918
|
-
data-ouia-safe="true"
|
|
1919
|
-
id="remove_pf-random-id-26"
|
|
1920
|
-
type="button"
|
|
1923
|
+
<span
|
|
1924
|
+
class="pf-c-chip__actions"
|
|
1921
1925
|
>
|
|
1922
|
-
<
|
|
1923
|
-
aria-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1926
|
+
<button
|
|
1927
|
+
aria-disabled="false"
|
|
1928
|
+
aria-label="Remove"
|
|
1929
|
+
aria-labelledby="remove_pf-random-id-26 pf-random-id-26"
|
|
1930
|
+
class="pf-c-button pf-m-plain"
|
|
1931
|
+
data-ouia-component-id="Remove"
|
|
1932
|
+
data-ouia-component-type="PF4/Button"
|
|
1933
|
+
data-ouia-safe="true"
|
|
1934
|
+
id="remove_pf-random-id-26"
|
|
1935
|
+
type="button"
|
|
1930
1936
|
>
|
|
1931
|
-
<
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1937
|
+
<svg
|
|
1938
|
+
aria-hidden="true"
|
|
1939
|
+
fill="currentColor"
|
|
1940
|
+
height="1em"
|
|
1941
|
+
role="img"
|
|
1942
|
+
style="vertical-align: -0.125em;"
|
|
1943
|
+
viewBox="0 0 352 512"
|
|
1944
|
+
width="1em"
|
|
1945
|
+
>
|
|
1946
|
+
<path
|
|
1947
|
+
d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
|
|
1948
|
+
/>
|
|
1949
|
+
</svg>
|
|
1950
|
+
</button>
|
|
1951
|
+
</span>
|
|
1936
1952
|
</div>
|
|
1937
1953
|
</li>
|
|
1938
1954
|
</ul>
|