@ebay/skin 17.2.0 → 17.3.0-next.0
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/.changeset/clever-trees-trade.md +5 -0
- package/.changeset/fresh-suits-fold.md +5 -0
- package/.changeset/grumpy-emus-jump.md +5 -0
- package/.changeset/loud-zebras-fail.md +5 -0
- package/.changeset/pre.json +17 -0
- package/.changeset/strange-forks-flow.md +5 -0
- package/.changeset/strong-schools-tap.md +5 -0
- package/.changeset/strong-toys-behave.md +5 -0
- package/.changeset/tough-cougars-poke.md +5 -0
- package/.github/workflows/jekyll-gh-pages.yml +2 -4
- package/CHANGELOG.md +20 -0
- package/_cdn/skin/v17.3.0-next.0/skin-default.min.css +69 -0
- package/_cdn/skin/v17.3.0-next.0/skin-full.min.css +151 -0
- package/_cdn/skin/v17.3.0-next.0/skin-headless.min.css +6 -0
- package/dist/button/button.css +6 -6
- package/dist/education-notice/education-notice.css +61 -0
- package/dist/listbox-button/listbox-button.css +5 -5
- package/dist/progress-bar-expressive/progress-bar-expressive.css +277 -0
- package/dist/toggle-button-group/toggle-button-group.css +1 -1
- package/education-notice.browser.json +1 -0
- package/education-notice.css +1 -0
- package/education-notice.js +1 -0
- package/education-notice.mjs +1 -0
- package/index.browser.json +2 -0
- package/index.css +2 -0
- package/index.js +2 -0
- package/index.mjs +2 -0
- package/package.json +2 -2
- package/progress-bar-expressive.browser.json +1 -0
- package/progress-bar-expressive.css +1 -0
- package/progress-bar-expressive.js +1 -0
- package/progress-bar-expressive.mjs +1 -0
- package/src/less/bundles/skin-headless.less +2 -0
- package/src/less/button/button.less +3 -0
- package/src/less/carousel/stories/carousel.stories.js +44 -44
- package/src/less/education-notice/education-notice.less +74 -0
- package/src/less/education-notice/stories/base.stories.js +152 -0
- package/src/less/listbox-button/listbox-button.less +3 -2
- package/src/less/progress-bar-expressive/progress-bar-expressive.less +456 -0
- package/src/less/progress-bar-expressive/stories/progress-bar-expressive.stories.js +117 -0
- package/src/less/section-notice/section-notice.less +1 -0
- package/src/less/toggle-button-group/stories/gallery-layout.stories.js +91 -0
- package/src/less/toggle-button-group/toggle-button-group.less +1 -1
- package/_cdn/skin/v17.2.0/skin-default.min.css +0 -69
- package/_cdn/skin/v17.2.0/skin-full.min.css +0 -151
- package/_cdn/skin/v17.2.0/skin-headless.min.css +0 -6
|
@@ -4,8 +4,8 @@ export const continuous = () => `
|
|
|
4
4
|
<div class="carousel">
|
|
5
5
|
<div class="carousel__container">
|
|
6
6
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products">
|
|
7
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
8
|
-
<use href="#icon-chevron-left-
|
|
7
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16">
|
|
8
|
+
<use href="#icon-chevron-left-16"></use>
|
|
9
9
|
</svg>
|
|
10
10
|
</button>
|
|
11
11
|
<div class="carousel__viewport carousel__viewport--mask">
|
|
@@ -21,8 +21,8 @@ export const continuous = () => `
|
|
|
21
21
|
</ul>
|
|
22
22
|
</div>
|
|
23
23
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products">
|
|
24
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
25
|
-
<use href="#icon-chevron-right-
|
|
24
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
25
|
+
<use href="#icon-chevron-right-16"></use>
|
|
26
26
|
</svg>
|
|
27
27
|
</button>
|
|
28
28
|
</div>
|
|
@@ -33,8 +33,8 @@ export const imageTreatment = () => `
|
|
|
33
33
|
<div class="carousel">
|
|
34
34
|
<div class="carousel__container">
|
|
35
35
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products">
|
|
36
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
37
|
-
<use href="#icon-chevron-left-
|
|
36
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16">
|
|
37
|
+
<use href="#icon-chevron-left-16"></use>
|
|
38
38
|
</svg>
|
|
39
39
|
</button>
|
|
40
40
|
<div class="carousel__viewport carousel__viewport--mask">
|
|
@@ -50,8 +50,8 @@ export const imageTreatment = () => `
|
|
|
50
50
|
</ul>
|
|
51
51
|
</div>
|
|
52
52
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products">
|
|
53
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
54
|
-
<use href="#icon-chevron-right-
|
|
53
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
54
|
+
<use href="#icon-chevron-right-16"></use>
|
|
55
55
|
</svg>
|
|
56
56
|
</button>
|
|
57
57
|
</div>
|
|
@@ -62,8 +62,8 @@ export const imageTreatmentLarge = () => `
|
|
|
62
62
|
<div class="carousel">
|
|
63
63
|
<div class="carousel__container">
|
|
64
64
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products">
|
|
65
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
66
|
-
<use href="#icon-chevron-left-
|
|
65
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16">
|
|
66
|
+
<use href="#icon-chevron-left-16"></use>
|
|
67
67
|
</svg>
|
|
68
68
|
</button>
|
|
69
69
|
<div class="carousel__viewport carousel__viewport--mask">
|
|
@@ -79,8 +79,8 @@ export const imageTreatmentLarge = () => `
|
|
|
79
79
|
</ul>
|
|
80
80
|
</div>
|
|
81
81
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products">
|
|
82
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
83
|
-
<use href="#icon-chevron-right-
|
|
82
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
83
|
+
<use href="#icon-chevron-right-16"></use>
|
|
84
84
|
</svg>
|
|
85
85
|
</button>
|
|
86
86
|
</div>
|
|
@@ -94,8 +94,8 @@ export const slides = () => `
|
|
|
94
94
|
<span>Top Products - Slide 1 of 2</span>
|
|
95
95
|
</h4>
|
|
96
96
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products">
|
|
97
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
98
|
-
<use href="#icon-chevron-left-
|
|
97
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16" >
|
|
98
|
+
<use href="#icon-chevron-left-16"></use>
|
|
99
99
|
</svg>
|
|
100
100
|
</button>
|
|
101
101
|
<div class="carousel__viewport">
|
|
@@ -111,8 +111,8 @@ export const slides = () => `
|
|
|
111
111
|
</ul>
|
|
112
112
|
</div>
|
|
113
113
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products">
|
|
114
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
115
|
-
<use href="#icon-chevron-right-
|
|
114
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
115
|
+
<use href="#icon-chevron-right-16"></use>
|
|
116
116
|
</svg>
|
|
117
117
|
</button>
|
|
118
118
|
</div>
|
|
@@ -126,8 +126,8 @@ export const slideshow = () => `
|
|
|
126
126
|
<span>Top Products - Slide 1 of 4</span>
|
|
127
127
|
</h4>
|
|
128
128
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products">
|
|
129
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
130
|
-
<use href="#icon-chevron-left-
|
|
129
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16" >
|
|
130
|
+
<use href="#icon-chevron-left-16"></use>
|
|
131
131
|
</svg>
|
|
132
132
|
</button>
|
|
133
133
|
<div class="carousel__viewport">
|
|
@@ -139,8 +139,8 @@ export const slideshow = () => `
|
|
|
139
139
|
</ul>
|
|
140
140
|
</div>
|
|
141
141
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products">
|
|
142
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
143
|
-
<use href="#icon-chevron-right-
|
|
142
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
143
|
+
<use href="#icon-chevron-right-16"></use>
|
|
144
144
|
</svg>
|
|
145
145
|
</button>
|
|
146
146
|
</div>
|
|
@@ -160,8 +160,8 @@ export const RTL = () => `
|
|
|
160
160
|
<span>Top Products - Slide 1 of 4</span>
|
|
161
161
|
</h4>
|
|
162
162
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products">
|
|
163
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
164
|
-
<use href="#icon-chevron-left-
|
|
163
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16">
|
|
164
|
+
<use href="#icon-chevron-left-16"></use>
|
|
165
165
|
</svg>
|
|
166
166
|
</button>
|
|
167
167
|
<div class="carousel__viewport">
|
|
@@ -173,8 +173,8 @@ export const RTL = () => `
|
|
|
173
173
|
</ul>
|
|
174
174
|
</div>
|
|
175
175
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products">
|
|
176
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
177
|
-
<use href="#icon-chevron-right-
|
|
176
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16" >
|
|
177
|
+
<use href="#icon-chevron-right-16"></use>
|
|
178
178
|
</svg>
|
|
179
179
|
</button>
|
|
180
180
|
</div>
|
|
@@ -191,8 +191,8 @@ export const hiddenScrollbar = () => `
|
|
|
191
191
|
<div class="carousel carousel--hidden-scrollbar">
|
|
192
192
|
<div class="carousel__container">
|
|
193
193
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products">
|
|
194
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
195
|
-
<use href="#icon-chevron-left-
|
|
194
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16">
|
|
195
|
+
<use href="#icon-chevron-left-16"></use>
|
|
196
196
|
</svg>
|
|
197
197
|
</button>
|
|
198
198
|
<div class="carousel__viewport carousel__viewport--mask">
|
|
@@ -208,8 +208,8 @@ export const hiddenScrollbar = () => `
|
|
|
208
208
|
</ul>
|
|
209
209
|
</div>
|
|
210
210
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products">
|
|
211
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
212
|
-
<use href="#icon-chevron-right-
|
|
211
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
212
|
+
<use href="#icon-chevron-right-16"></use>
|
|
213
213
|
</svg>
|
|
214
214
|
</button>
|
|
215
215
|
</div>
|
|
@@ -221,8 +221,8 @@ export const continuousWithPaddlesVisible = () => `
|
|
|
221
221
|
<div class="carousel">
|
|
222
222
|
<div class="carousel__container">
|
|
223
223
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products" style="opacity: 1">
|
|
224
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
225
|
-
<use href="#icon-chevron-left-
|
|
224
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16">
|
|
225
|
+
<use href="#icon-chevron-left-16"></use>
|
|
226
226
|
</svg>
|
|
227
227
|
</button>
|
|
228
228
|
<div class="carousel__viewport carousel__viewport--mask">
|
|
@@ -238,8 +238,8 @@ export const continuousWithPaddlesVisible = () => `
|
|
|
238
238
|
</ul>
|
|
239
239
|
</div>
|
|
240
240
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products" style="opacity: 1">
|
|
241
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
242
|
-
<use href="#icon-chevron-right-
|
|
241
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
242
|
+
<use href="#icon-chevron-right-16"></use>
|
|
243
243
|
</svg>
|
|
244
244
|
</button>
|
|
245
245
|
</div>
|
|
@@ -254,8 +254,8 @@ export const slidesWithPaddlesVisible = () => `
|
|
|
254
254
|
<span>Top Products - Slide 1 of 2</span>
|
|
255
255
|
</h4>
|
|
256
256
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products" style="opacity: 1">
|
|
257
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
258
|
-
<use href="#icon-chevron-left-
|
|
257
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16" >
|
|
258
|
+
<use href="#icon-chevron-left-16"></use>
|
|
259
259
|
</svg>
|
|
260
260
|
</button>
|
|
261
261
|
<div class="carousel__viewport">
|
|
@@ -271,8 +271,8 @@ export const slidesWithPaddlesVisible = () => `
|
|
|
271
271
|
</ul>
|
|
272
272
|
</div>
|
|
273
273
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products" style="opacity: 1">
|
|
274
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
275
|
-
<use href="#icon-chevron-right-
|
|
274
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
275
|
+
<use href="#icon-chevron-right-16"></use>
|
|
276
276
|
</svg>
|
|
277
277
|
</button>
|
|
278
278
|
</div>
|
|
@@ -287,8 +287,8 @@ export const slideshowWithPaddlesVisible = () => `
|
|
|
287
287
|
<span>Top Products - Slide 1 of 4</span>
|
|
288
288
|
</h4>
|
|
289
289
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products" style="opacity: 1">
|
|
290
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
291
|
-
<use href="#icon-chevron-left-
|
|
290
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16" >
|
|
291
|
+
<use href="#icon-chevron-left-16"></use>
|
|
292
292
|
</svg>
|
|
293
293
|
</button>
|
|
294
294
|
<div class="carousel__viewport">
|
|
@@ -300,8 +300,8 @@ export const slideshowWithPaddlesVisible = () => `
|
|
|
300
300
|
</ul>
|
|
301
301
|
</div>
|
|
302
302
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products" style="opacity: 1">
|
|
303
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
304
|
-
<use href="#icon-chevron-right-
|
|
303
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
304
|
+
<use href="#icon-chevron-right-16"></use>
|
|
305
305
|
</svg>
|
|
306
306
|
</button>
|
|
307
307
|
</div>
|
|
@@ -318,8 +318,8 @@ export const hiddenScrollbarWithPaddlesVisible = () => `
|
|
|
318
318
|
<div class="carousel carousel--hidden-scrollbar">
|
|
319
319
|
<div class="carousel__container">
|
|
320
320
|
<button class="carousel__control carousel__control--prev" aria-label="Previous Slide - Top Products" style="opacity: 1">
|
|
321
|
-
<svg aria-hidden="true" class="icon icon--chevron-left-
|
|
322
|
-
<use href="#icon-chevron-left-
|
|
321
|
+
<svg aria-hidden="true" class="icon icon--chevron-left-16">
|
|
322
|
+
<use href="#icon-chevron-left-16"></use>
|
|
323
323
|
</svg>
|
|
324
324
|
</button>
|
|
325
325
|
<div class="carousel__viewport carousel__viewport--mask">
|
|
@@ -335,8 +335,8 @@ export const hiddenScrollbarWithPaddlesVisible = () => `
|
|
|
335
335
|
</ul>
|
|
336
336
|
</div>
|
|
337
337
|
<button class="carousel__control carousel__control--next" aria-label="Next Slide - Top Products" style="opacity: 1">
|
|
338
|
-
<svg aria-hidden="true" class="icon icon--chevron-right-
|
|
339
|
-
<use href="#icon-chevron-right-
|
|
338
|
+
<svg aria-hidden="true" class="icon icon--chevron-right-16">
|
|
339
|
+
<use href="#icon-chevron-right-16"></use>
|
|
340
340
|
</svg>
|
|
341
341
|
</button>
|
|
342
342
|
</div>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@import "../variables/variables.less";
|
|
2
|
+
@import "../mixins/private/token-mixins.less";
|
|
3
|
+
|
|
4
|
+
.education-notice {
|
|
5
|
+
.background-color-token(education-notice-default-background-color, color-background-secondary);
|
|
6
|
+
.border-radius-token(education-notice-border-radius, border-radius-100);
|
|
7
|
+
color: var(--color-foreground-primary);
|
|
8
|
+
font-size: var(--font-size-default);
|
|
9
|
+
padding: var(--spacing-300);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.education-notice--prominent {
|
|
13
|
+
.background-color-token(education-notice-education-background-color, color-background-education);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.education-notice__header {
|
|
17
|
+
align-items: center;
|
|
18
|
+
display: flex;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.education-notice__title {
|
|
22
|
+
flex-grow: 1;
|
|
23
|
+
font-size: var(--font-size-medium);
|
|
24
|
+
font-weight: bold;
|
|
25
|
+
line-height: 1.5em;
|
|
26
|
+
margin: 0;
|
|
27
|
+
margin-inline-start: var(--spacing-150);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.education-notice__main {
|
|
31
|
+
margin-top: var(--spacing-200);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.education-notice__dismiss {
|
|
35
|
+
margin-inline-start: var(--spacing-150);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.education-notice button.icon-btn {
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.education-notice__header .icon--prominent {
|
|
43
|
+
color: var(--color-foreground-accent);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.education-notice__footer a {
|
|
47
|
+
.color-token(education-notice-foreground-color, color-foreground-primary);
|
|
48
|
+
font-size: var(--font-size-default);
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
white-space: nowrap; // force links with text having more than one word to remain on same line
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.education-notice__footer button.fake-link {
|
|
54
|
+
font-size: var(--font-size-default);
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.education-notice__main p {
|
|
59
|
+
font-size: var(--font-size-default);
|
|
60
|
+
margin: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.education-notice__footer {
|
|
64
|
+
margin-top: var(--spacing-200);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.education-notice__header button.fake-link,
|
|
68
|
+
.education-notice__header button.fake-link:hover {
|
|
69
|
+
.color-token(education-notice-foreground-color, color-foreground-primary);
|
|
70
|
+
font-size: var(--font-size-default);
|
|
71
|
+
font-weight: bold;
|
|
72
|
+
height: 24px;
|
|
73
|
+
width: 24px;
|
|
74
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export default { title: "Skin/Education Notice" };
|
|
2
|
+
|
|
3
|
+
export const base = () => `
|
|
4
|
+
<section class="education-notice" role="region" aria-label="Education" aria-roledescription="Notice">
|
|
5
|
+
<div class="education-notice__header">
|
|
6
|
+
<svg class="icon icon--lightbulb-24" height="24" width="24" aria-label="Education">
|
|
7
|
+
<use href="#icon-lightbulb-24"></use>
|
|
8
|
+
</svg>
|
|
9
|
+
<h3 class="education-notice__title">Did you know?</h3>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="education-notice__main">
|
|
12
|
+
<p>You can now split payments on two cards.</p>
|
|
13
|
+
</div>
|
|
14
|
+
</section>
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
export const prominentIcon = () => `
|
|
18
|
+
<section class="education-notice" role="region" aria-label="Education" aria-roledescription="Notice">
|
|
19
|
+
<div class="education-notice__header">
|
|
20
|
+
<svg class="icon icon--lightbulb-24 icon--prominent" height="24" width="24" aria-label="Education">
|
|
21
|
+
<use href="#icon-lightbulb-24"></use>
|
|
22
|
+
</svg>
|
|
23
|
+
<h3 class="education-notice__title">Did you know?</h3>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="education-notice__main">
|
|
26
|
+
<p>You can now split payments on two cards.</p>
|
|
27
|
+
</div>
|
|
28
|
+
</section>
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
export const prominentNotice = () => `
|
|
32
|
+
<section class="education-notice education-notice--prominent" role="region" aria-label="Education" aria-roledescription="Notice">
|
|
33
|
+
<div class="education-notice__header">
|
|
34
|
+
<svg class="icon icon--authenticity-guarantee-24" height="24" width="24" aria-label="Education">
|
|
35
|
+
<use href="#icon-authenticity-guarantee-24"></use>
|
|
36
|
+
</svg>
|
|
37
|
+
<h3 class="education-notice__title">Authenticity Guaranteed</h3>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="education-notice__main">
|
|
40
|
+
<p>Authenticity Guarantee means your item is authentic or your money back.</p>
|
|
41
|
+
</div>
|
|
42
|
+
</section>
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
export const dismissable = () => `
|
|
46
|
+
<section class="education-notice" role="region" aria-label="Education" aria-roledescription="Notice">
|
|
47
|
+
<div class="education-notice__header">
|
|
48
|
+
<svg class="icon icon--lightbulb-24" height="24" width="24" aria-label="Education">
|
|
49
|
+
<use href="#icon-lightbulb-24"></use>
|
|
50
|
+
</svg>
|
|
51
|
+
<h3 class="education-notice__title">Did you know?</h3>
|
|
52
|
+
<button aria-label="Close notice" type="button" class="icon-btn icon-btn--small education-notice__dismiss">
|
|
53
|
+
<svg aria-hidden="true" class="icon icon--close-16" height="16" width="16">
|
|
54
|
+
<use href="#icon-close-16"></use>
|
|
55
|
+
</svg>
|
|
56
|
+
</button>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="education-notice__main">
|
|
59
|
+
<p>You can now split payments on two cards.</p>
|
|
60
|
+
</div>
|
|
61
|
+
</section>
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
export const actionableLink = () => `
|
|
65
|
+
<section class="education-notice" role="region" aria-label="Education" aria-roledescription="Notice">
|
|
66
|
+
<div class="education-notice__header">
|
|
67
|
+
<svg class="icon icon--the-ebay-vault-24" height="24" width="24" aria-label="Education">
|
|
68
|
+
<use href="#icon-the-ebay-vault-24"></use>
|
|
69
|
+
</svg>
|
|
70
|
+
<h3 class="education-notice__title">The Vault</h3>
|
|
71
|
+
<button aria-label="Close notice" type="button" class="icon-btn icon-btn--small education-notice__dismiss">
|
|
72
|
+
<svg aria-hidden="true" class="icon icon--close-16" height="16" width="16">
|
|
73
|
+
<use href="#icon-close-16"></use>
|
|
74
|
+
</svg>
|
|
75
|
+
</button>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="education-notice__main">
|
|
78
|
+
<p>You can now use the Vault to store items like this securely.</p>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="education-notice__footer">
|
|
81
|
+
<a href="https://www.ebay.com">Learn more link</a>
|
|
82
|
+
</div>
|
|
83
|
+
</section>
|
|
84
|
+
`;
|
|
85
|
+
|
|
86
|
+
export const actionableButton = () => `
|
|
87
|
+
<section class="education-notice" role="region" aria-label="Education" aria-roledescription="Notice">
|
|
88
|
+
<div class="education-notice__header">
|
|
89
|
+
<svg class="icon icon--the-ebay-vault-24" height="24" width="24" aria-label="Education">
|
|
90
|
+
<use href="#icon-the-ebay-vault-24"></use>
|
|
91
|
+
</svg>
|
|
92
|
+
<h3 class="education-notice__title">The Vault</h3>
|
|
93
|
+
<button aria-label="Close notice" type="button" class="icon-btn icon-btn--small education-notice__dismiss">
|
|
94
|
+
<svg aria-hidden="true" class="icon icon--close-16" height="16" width="16">
|
|
95
|
+
<use href="#icon-close-16"></use>
|
|
96
|
+
</svg>
|
|
97
|
+
</button>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="education-notice__main">
|
|
100
|
+
<p>You can now use the Vault to store items like this securely.</p>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="education-notice__footer">
|
|
103
|
+
<button class="fake-link">Learn more button</button>
|
|
104
|
+
</div>
|
|
105
|
+
</section>
|
|
106
|
+
`;
|
|
107
|
+
|
|
108
|
+
export const RTL = () => `
|
|
109
|
+
<div dir="rtl">
|
|
110
|
+
<section class="education-notice" role="region" aria-label="Education" aria-roledescription="Notice">
|
|
111
|
+
<div class="education-notice__header">
|
|
112
|
+
<svg class="icon icon--the-ebay-vault-24" height="24" width="24" aria-label="Education">
|
|
113
|
+
<use href="#icon-the-ebay-vault-24"></use>
|
|
114
|
+
</svg>
|
|
115
|
+
<h3 class="education-notice__title">The Vault</h3>
|
|
116
|
+
<button aria-label="Close notice" type="button" class="icon-btn icon-btn--small education-notice__dismiss">
|
|
117
|
+
<svg aria-hidden="true" class="icon icon--close-16" height="16" width="16">
|
|
118
|
+
<use href="#icon-close-16"></use>
|
|
119
|
+
</svg>
|
|
120
|
+
</button>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="education-notice__main">
|
|
123
|
+
<p>You can now use the Vault to store items like this securely.</p>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="education-notice__footer">
|
|
126
|
+
<a href="https://www.ebay.com">Learn more link</a>
|
|
127
|
+
</div>
|
|
128
|
+
</section>
|
|
129
|
+
</div>
|
|
130
|
+
`;
|
|
131
|
+
|
|
132
|
+
export const textSpacing = () => `
|
|
133
|
+
<section class="education-notice demo-a11y-text-spacing" role="region" aria-label="Education" aria-roledescription="Notice">
|
|
134
|
+
<div class="education-notice__header">
|
|
135
|
+
<svg class="icon icon--the-ebay-vault-24" height="24" width="24" aria-label="Education">
|
|
136
|
+
<use href="#icon-the-ebay-vault-24"></use>
|
|
137
|
+
</svg>
|
|
138
|
+
<h3 class="education-notice__title">The Vault</h3>
|
|
139
|
+
<button aria-label="Close notice" type="button" class="icon-btn icon-btn--small education-notice__dismiss">
|
|
140
|
+
<svg aria-hidden="true" class="icon icon--close-16" height="16" width="16">
|
|
141
|
+
<use href="#icon-close-16"></use>
|
|
142
|
+
</svg>
|
|
143
|
+
</button>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="education-notice__main">
|
|
146
|
+
<p>You can now use the Vault to store items like this securely.</p>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="education-notice__footer">
|
|
149
|
+
<button class="fake-link">Learn more button</button>
|
|
150
|
+
</div>
|
|
151
|
+
</section>
|
|
152
|
+
`;
|
|
@@ -42,7 +42,8 @@ button.expand-btn[aria-expanded="true"] ~ div.listbox-button__listbox,
|
|
|
42
42
|
.border-color-token(listbox-button-invalid-border-color, color-stroke-attention);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.listbox-button:not(.listbox-button--error)
|
|
45
|
+
.listbox-button:not(.listbox-button--error)
|
|
46
|
+
button:not([disabled], [aria-disabled="true"]).btn--form {
|
|
46
47
|
.border-color-token(listbox-button-border-color, color-stroke-default);
|
|
47
48
|
|
|
48
49
|
&:hover,
|
|
@@ -78,7 +79,7 @@ button.expand-btn[aria-expanded="true"] ~ div.listbox-button__listbox,
|
|
|
78
79
|
.listbox-button.listbox-button--form button[disabled],
|
|
79
80
|
.listbox-button.listbox-button--form button[aria-disabled="true"] {
|
|
80
81
|
.border-color-token(listbox-button-disabled-border-color, color-background-disabled);
|
|
81
|
-
.color-token(listbox-button-disabled-foreground-color, color-foreground-
|
|
82
|
+
.color-token(listbox-button-disabled-foreground-color, color-foreground-disabled);
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
.listbox-button.listbox-button--form button:focus {
|