@ebay/skin 17.3.0-next.0 → 17.4.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.
Files changed (143) hide show
  1. package/.changeset/big-cheetahs-peel.md +5 -0
  2. package/.changeset/kind-pens-own.md +5 -0
  3. package/.changeset/loud-carrots-protect.md +5 -0
  4. package/.changeset/metal-cars-promise.md +5 -0
  5. package/.changeset/pre.json +7 -9
  6. package/.changeset/shaggy-ways-pump.md +5 -0
  7. package/.changeset/shaggy-yaks-guess.md +5 -0
  8. package/.github/workflows/jekyll-gh-pages.yml +8 -2
  9. package/.storybook/main.js +1 -1
  10. package/.storybook/manager.js +1 -1
  11. package/CHANGELOG.md +40 -0
  12. package/ICON-CREATION.md +1 -1
  13. package/_cdn/skin/v17.4.0-next.0/skin-default.min.css +76 -0
  14. package/_cdn/skin/v17.4.0-next.0/skin-full.min.css +160 -0
  15. package/_cdn/skin/v17.4.0-next.0/skin-headless.min.css +6 -0
  16. package/dist/icon/icon.css +20 -0
  17. package/dist/icon-button/icon-button.css +113 -0
  18. package/dist/listbox-button/listbox-button.css +23 -4
  19. package/dist/phone-input/phone-input.css +142 -0
  20. package/dist/skeleton/skeleton.css +6 -0
  21. package/dist/svg/icon/icon-bids-24.svg +4 -2
  22. package/dist/svg/icon/icon-bids-64.svg +2 -5
  23. package/dist/svg/icon/icon-bookmark-filled-16.svg +7 -0
  24. package/dist/svg/icon/icon-bookmark-filled-24.svg +7 -0
  25. package/dist/svg/icon/icon-exclude-16.svg +7 -0
  26. package/dist/svg/icon/icon-exclude-24.svg +7 -0
  27. package/dist/svg/icon/icon-fast-and-free-16.svg +4 -2
  28. package/dist/svg/icon/icon-fast-and-free-24.svg +4 -2
  29. package/dist/svg/icon/icon-inspect-64.svg +7 -0
  30. package/dist/svg/icon/icon-on-the-way-16.svg +4 -3
  31. package/dist/svg/icon/icon-on-the-way-24.svg +4 -2
  32. package/dist/svg/icon/icon-wallet-24.svg +4 -2
  33. package/dist/svg/icon/icon-wallet-64.svg +4 -2
  34. package/dist/svg/icons.svg +72 -27
  35. package/dist/tokens/evo-dark.css +14 -9
  36. package/dist/tokens/evo-light.css +13 -3
  37. package/eslint.config.mjs +15 -0
  38. package/index.browser.json +1 -0
  39. package/index.css +1 -0
  40. package/index.js +1 -0
  41. package/index.mjs +1 -0
  42. package/lint.log +10 -0
  43. package/package.json +23 -23
  44. package/phone-input.browser.json +1 -0
  45. package/phone-input.css +1 -0
  46. package/phone-input.js +1 -0
  47. package/phone-input.mjs +1 -0
  48. package/scripts/jekyll-config.js +2 -4
  49. package/src/less/alert-dialog/stories/alert-dialog.stories.js +16 -0
  50. package/src/less/badge/stories/badge.stories.js +4 -0
  51. package/src/less/breadcrumbs/stories/button-cascade.stories.js +29 -0
  52. package/src/less/breadcrumbs/stories/button-overflow.stories.js +48 -0
  53. package/src/less/breadcrumbs/stories/link-cascade.stories.js +29 -0
  54. package/src/less/breadcrumbs/stories/link-overflow.stories.js +51 -0
  55. package/src/less/bundles/skin-headless.less +1 -0
  56. package/src/less/button/stories/button/text-spacing.stories.js +16 -0
  57. package/src/less/button/stories/fake-button/text-spacing.stories.js +13 -0
  58. package/src/less/calendar/stories/calendar.stories.js +210 -0
  59. package/src/less/checkbox/stories/checked.stories.js +20 -0
  60. package/src/less/chips-combobox/stories/chips-combobox.stories.js +58 -0
  61. package/src/less/combobox/stories/combobox.stories.js +21 -0
  62. package/src/less/confirm-dialog/stories/confirm-dialog.stories.js +17 -0
  63. package/src/less/cta-button/stories/cta-button.stories.js +11 -0
  64. package/src/less/date-textbox/stories/date-textbox.stories.js +27 -0
  65. package/src/less/details/stories/details.stories.js +14 -0
  66. package/src/less/drawer-dialog/stories/drawer-dialog.stories.js +27 -0
  67. package/src/less/field/stories/helper-texts-stacked.stories.js +17 -0
  68. package/src/less/filter-button/stories/button.stories.js +8 -0
  69. package/src/less/filter-menu/stories/filter-menu.stories.js +41 -0
  70. package/src/less/filter-menu-button/stories/filter-menu-button.stories.js +238 -0
  71. package/src/less/flag/stories/flag.stories.js +9 -0
  72. package/src/less/floating-label/stories/floating-label.stories.js +102 -0
  73. package/src/less/fullscreen-dialog/stories/fullscreen-dialog.stories.js +27 -0
  74. package/src/less/global/stories/global.stories.js +16 -0
  75. package/src/less/icon/generated/icon.less +20 -0
  76. package/src/less/icon-button/icon-button.less +133 -0
  77. package/src/less/icon-button/stories/buttons.stories.js +241 -0
  78. package/src/less/icon-button/stories/links.stories.js +241 -0
  79. package/src/less/infotip/stories/infotip.stories.js +27 -2
  80. package/src/less/inline-notice/stories/inline.stories.js +13 -0
  81. package/src/less/lightbox-dialog/stories/lightbox-dialog.stories.js +24 -0
  82. package/src/less/link/stories/link.stories.js +9 -3
  83. package/src/less/listbox/stories/listbox.stories.js +37 -0
  84. package/src/less/listbox-button/listbox-button.less +9 -1
  85. package/src/less/listbox-button/stories/base.stories.js +42 -0
  86. package/src/less/menu/stories/misc.stories.js +10 -0
  87. package/src/less/menu-button/stories/base.stories.js +26 -0
  88. package/src/less/page-notice/stories/page-notice.stories.js +22 -0
  89. package/src/less/pagination/stories/overflow.stories.js +49 -0
  90. package/src/less/panel-dialog/stories/panel-dialog.stories.js +45 -0
  91. package/src/less/phone-input/phone-input.less +173 -0
  92. package/src/less/phone-input/stories/phone-input.stories.js +825 -0
  93. package/src/less/progress-bar-expressive/stories/progress-bar-expressive.stories.js +31 -0
  94. package/src/less/progress-stepper/stories/progress-stepper.stories.js +52 -0
  95. package/src/less/radio/stories/checked.stories.js +49 -2
  96. package/src/less/section-notice/stories/icon-16.stories.js +25 -1
  97. package/src/less/section-title/stories/section-title.stories.js +17 -0
  98. package/src/less/segmented-buttons/stories/segmented-buttons.stories.js +10 -0
  99. package/src/less/select/stories/default.stories.js +13 -0
  100. package/src/less/signal/stories/signal.stories.js +6 -0
  101. package/src/less/skeleton/skeleton.less +11 -0
  102. package/src/less/skeleton/stories/composite.stories.js +1 -1
  103. package/src/less/snackbar-dialog/stories/base.stories.js +14 -0
  104. package/src/less/split-button/stories/base.stories.js +30 -0
  105. package/src/less/tabs/stories/tabs/block.stories.js +17 -0
  106. package/src/less/tabs/stories/tabs/inlineBlock.stories.js +17 -0
  107. package/src/less/textbox/stories/textbox.stories.js +6 -0
  108. package/src/less/toast-dialog/stories/toast-dialog.stories.js +23 -0
  109. package/src/less/toggle-button/stories/gallery-layout.stories.js +13 -0
  110. package/src/less/toggle-button/stories/list-layout.stories.js +14 -0
  111. package/src/less/toggle-button/stories/minimal-layout.stories.js +8 -0
  112. package/src/less/tooltip/stories/tooltip.stories.js +19 -0
  113. package/src/less/tourtip/stories/tourtip.stories.js +21 -0
  114. package/src/svg/icon/icon-bids-24.svg +4 -2
  115. package/src/svg/icon/icon-bids-64.svg +2 -5
  116. package/src/svg/icon/icon-bookmark-filled-16.svg +7 -0
  117. package/src/svg/icon/icon-bookmark-filled-24.svg +7 -0
  118. package/src/svg/icon/icon-exclude-16.svg +7 -0
  119. package/src/svg/icon/icon-exclude-24.svg +7 -0
  120. package/src/svg/icon/icon-fast-and-free-16.svg +4 -2
  121. package/src/svg/icon/icon-fast-and-free-24.svg +4 -2
  122. package/src/svg/icon/icon-inspect-64.svg +7 -0
  123. package/src/svg/icon/icon-on-the-way-16.svg +4 -3
  124. package/src/svg/icon/icon-on-the-way-24.svg +4 -2
  125. package/src/svg/icon/icon-wallet-24.svg +4 -2
  126. package/src/svg/icon/icon-wallet-64.svg +4 -2
  127. package/src/svg/icons.svg +72 -27
  128. package/src/tokens/evo-dark.css +14 -9
  129. package/src/tokens/evo-light.css +13 -3
  130. package/svg.svg +72 -27
  131. package/.changeset/clever-trees-trade.md +0 -5
  132. package/.changeset/fresh-suits-fold.md +0 -5
  133. package/.changeset/grumpy-emus-jump.md +0 -5
  134. package/.changeset/loud-zebras-fail.md +0 -5
  135. package/.changeset/strange-forks-flow.md +0 -5
  136. package/.changeset/strong-schools-tap.md +0 -5
  137. package/.changeset/strong-toys-behave.md +0 -5
  138. package/.changeset/tough-cougars-poke.md +0 -5
  139. package/.eslintrc +0 -14
  140. package/_cdn/skin/v17.3.0-next.0/skin-default.min.css +0 -69
  141. package/_cdn/skin/v17.3.0-next.0/skin-full.min.css +0 -151
  142. package/_cdn/skin/v17.3.0-next.0/skin-headless.min.css +0 -6
  143. package/src/less/section-notice/stories/icon-24.stories.js +0 -251
@@ -0,0 +1,241 @@
1
+ export default { title: "Skin/Icon Button/Buttons" };
2
+
3
+ export const base = () => `
4
+ <button class="icon-btn icon-btn--large" type="button" aria-label="Save">
5
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
6
+ <use href="#icon-save-24"></use>
7
+ </svg>
8
+ </button>
9
+ <button class="icon-btn" type="button" aria-label="Save">
10
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
11
+ <use href="#icon-save-20"></use>
12
+ </svg>
13
+ </button>
14
+ <button class="icon-btn icon-btn--small" type="button" aria-label="Save">
15
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
16
+ <use href="#icon-save-16"></use>
17
+ </svg>
18
+ </button>
19
+ `;
20
+
21
+ export const baseSpinner = () => `
22
+ <button class="icon-btn icon-btn--large" type="button" aria-label="Save">
23
+ <span class="progress-spinner progress-spinner--large">
24
+ <svg aria-hidden="true" class="icon icon--spinner-24" height="24" width="24">
25
+ <use href="#icon-spinner-24"></use>
26
+ </svg>
27
+ </span>
28
+ </button>
29
+ <button class="icon-btn" type="button" aria-label="Save">
30
+ <span class="progress-spinner">
31
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
32
+ <use href="#icon-spinner-20"></use>
33
+ </svg>
34
+ </span>
35
+ </button>
36
+ <button class="icon-btn icon-btn--small" type="button" aria-label="Save">
37
+ <span class="progress-spinner progress-spinner--small">
38
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
39
+ <use href="#icon-spinner-20"></use>
40
+ </svg>
41
+ </span>
42
+ </button>
43
+ `;
44
+
45
+ export const baseDisabled = () => `
46
+ <button class="icon-btn icon-btn--large" type="button" aria-label="Save" disabled>
47
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
48
+ <use href="#icon-save-24"></use>
49
+ </svg>
50
+ </button>
51
+ <button class="icon-btn" type="button" aria-label="Save" disabled>
52
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
53
+ <use href="#icon-save-20"></use>
54
+ </svg>
55
+ </button>
56
+ <button class="icon-btn icon-btn--small" type="button" aria-label="Save" disabled>
57
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
58
+ <use href="#icon-save-16"></use>
59
+ </svg>
60
+ </button>
61
+ `;
62
+
63
+ export const primary = () => `
64
+ <button class="icon-btn icon-btn--large icon-btn--primary" type="button" aria-label="Save">
65
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
66
+ <use href="#icon-save-24"></use>
67
+ </svg>
68
+ </button>
69
+ <button class="icon-btn icon-btn--primary" type="button" aria-label="Save">
70
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
71
+ <use href="#icon-save-20"></use>
72
+ </svg>
73
+ </button>
74
+ <button class="icon-btn icon-btn--small icon-btn--primary" type="button" aria-label="Save">
75
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
76
+ <use href="#icon-save-16"></use>
77
+ </svg>
78
+ </button>
79
+ `;
80
+
81
+ export const primarySpinner = () => `
82
+ <button class="icon-btn icon-btn--large icon-btn--primary" type="button" aria-label="Save">
83
+ <span class="progress-spinner progress-spinner--large">
84
+ <svg aria-hidden="true" class="icon icon--spinner-24" height="24" width="24">
85
+ <use href="#icon-spinner-24"></use>
86
+ </svg>
87
+ </span>
88
+ </button>
89
+ <button class="icon-btn icon-btn--primary" type="button" aria-label="Save">
90
+ <span class="progress-spinner">
91
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
92
+ <use href="#icon-spinner-20"></use>
93
+ </svg>
94
+ </span>
95
+ </button>
96
+ <button class="icon-btn icon-btn--small icon-btn--primary" type="button" aria-label="Save">
97
+ <span class="progress-spinner progress-spinner--small">
98
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
99
+ <use href="#icon-spinner-20"></use>
100
+ </svg>
101
+ </span>
102
+ </button>
103
+ `;
104
+
105
+ export const primaryDisabled = () => `
106
+ <button class="icon-btn icon-btn--large icon-btn--primary" type="button" aria-label="Save" disabled>
107
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
108
+ <use href="#icon-save-24"></use>
109
+ </svg>
110
+ </button>
111
+ <button class="icon-btn icon-btn--primary" type="button" aria-label="Save" disabled>
112
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
113
+ <use href="#icon-save-20"></use>
114
+ </svg>
115
+ </button>
116
+ <button class="icon-btn icon-btn--small icon-btn--primary" type="button" aria-label="Save" disabled>
117
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
118
+ <use href="#icon-save-16"></use>
119
+ </svg>
120
+ </button>
121
+ `;
122
+
123
+ export const secondary = () => `
124
+ <button class="icon-btn icon-btn--large icon-btn--secondary" type="button" aria-label="Save">
125
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
126
+ <use href="#icon-save-24"></use>
127
+ </svg>
128
+ </button>
129
+ <button class="icon-btn icon-btn--secondary" type="button" aria-label="Save">
130
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
131
+ <use href="#icon-save-20"></use>
132
+ </svg>
133
+ </button>
134
+ <button class="icon-btn icon-btn--small icon-btn--secondary" type="button" aria-label="Save">
135
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
136
+ <use href="#icon-save-16"></use>
137
+ </svg>
138
+ </button>
139
+ `;
140
+
141
+ export const secondarySpinner = () => `
142
+ <button class="icon-btn icon-btn--large icon-btn--secondary" type="button" aria-label="Save">
143
+ <span class="progress-spinner progress-spinner--large">
144
+ <svg aria-hidden="true" class="icon icon--spinner-24" height="24" width="24">
145
+ <use href="#icon-spinner-24"></use>
146
+ </svg>
147
+ </span>
148
+ </button>
149
+ <button class="icon-btn icon-btn--secondary" type="button" aria-label="Save">
150
+ <span class="progress-spinner">
151
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
152
+ <use href="#icon-spinner-20"></use>
153
+ </svg>
154
+ </span>
155
+ </button>
156
+ <button class="icon-btn icon-btn--small icon-btn--secondary" type="button" aria-label="Save">
157
+ <span class="progress-spinner progress-spinner--small">
158
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
159
+ <use href="#icon-spinner-20"></use>
160
+ </svg>
161
+ </span>
162
+ </button>
163
+ `;
164
+
165
+ export const secondaryDisabled = () => `
166
+ <button class="icon-btn icon-btn--large icon-btn--secondary" type="button" aria-label="Save" disabled>
167
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
168
+ <use href="#icon-save-24"></use>
169
+ </svg>
170
+ </button>
171
+ <button class="icon-btn icon-btn--secondary" type="button" aria-label="Save" disabled>
172
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
173
+ <use href="#icon-save-20"></use>
174
+ </svg>
175
+ </button>
176
+ <button class="icon-btn icon-btn--small icon-btn--secondary" type="button" aria-label="Save" disabled>
177
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
178
+ <use href="#icon-save-16"></use>
179
+ </svg>
180
+ </button>
181
+ `;
182
+
183
+ export const tertiary = () => `
184
+ <button class="icon-btn icon-btn--large icon-btn--tertiary" type="button" aria-label="Save">
185
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
186
+ <use href="#icon-save-24"></use>
187
+ </svg>
188
+ </button>
189
+ <button class="icon-btn icon-btn--tertiary" type="button" aria-label="Save">
190
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
191
+ <use href="#icon-save-20"></use>
192
+ </svg>
193
+ </button>
194
+ <button class="icon-btn icon-btn--small icon-btn--tertiary" type="button" aria-label="Save">
195
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
196
+ <use href="#icon-save-16"></use>
197
+ </svg>
198
+ </button>
199
+ `;
200
+
201
+ export const tertiarySpinner = () => `
202
+ <button class="icon-btn icon-btn--large icon-btn--tertiary" type="button" aria-label="Save">
203
+ <span class="progress-spinner progress-spinner--large">
204
+ <svg aria-hidden="true" class="icon icon--spinner-24" height="24" width="24">
205
+ <use href="#icon-spinner-24"></use>
206
+ </svg>
207
+ </span>
208
+ </button>
209
+ <button class="icon-btn icon-btn--tertiary" type="button" aria-label="Save">
210
+ <span class="progress-spinner">
211
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
212
+ <use href="#icon-spinner-20"></use>
213
+ </svg>
214
+ </span>
215
+ </button>
216
+ <button class="icon-btn icon-btn--small icon-btn--tertiary" type="button" aria-label="Save">
217
+ <span class="progress-spinner progress-spinner--small">
218
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
219
+ <use href="#icon-spinner-20"></use>
220
+ </svg>
221
+ </span>
222
+ </button>
223
+ `;
224
+
225
+ export const tertiaryDisabled = () => `
226
+ <button class="icon-btn icon-btn--large icon-btn--tertiary" type="button" aria-label="Save" disabled>
227
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
228
+ <use href="#icon-save-24"></use>
229
+ </svg>
230
+ </button>
231
+ <button class="icon-btn icon-btn--tertiary" type="button" aria-label="Save" disabled>
232
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
233
+ <use href="#icon-save-20"></use>
234
+ </svg>
235
+ </button>
236
+ <button class="icon-btn icon-btn--small icon-btn--tertiary" type="button" aria-label="Save" disabled>
237
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
238
+ <use href="#icon-save-16"></use>
239
+ </svg>
240
+ </button>
241
+ `;
@@ -0,0 +1,241 @@
1
+ export default { title: "Skin/Icon Button/Links" };
2
+
3
+ export const base = () => `
4
+ <a aria-label="settings" class="icon-link icon-link--large" href="https://www.ebay.com">
5
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
6
+ <use href="#icon-save-24"></use>
7
+ </svg>
8
+ </a>
9
+ <a aria-label="settings" class="icon-link" href="https://www.ebay.com">
10
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
11
+ <use href="#icon-save-20"></use>
12
+ </svg>
13
+ </a>
14
+ <a aria-label="settings" class="icon-link icon-link--small" href="https://www.ebay.com">
15
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
16
+ <use href="#icon-save-16"></use>
17
+ </svg>
18
+ </a>
19
+ `;
20
+
21
+ export const baseSpinner = () => `
22
+ <a aria-label="loading" class="icon-link icon-link--large" href="https://www.ebay.com">
23
+ <span class="progress-spinner progress-spinner--large">
24
+ <svg aria-hidden="true" class="icon icon--spinner-24" height="24" width="24">
25
+ <use href="#icon-spinner-24"></use>
26
+ </svg>
27
+ </span>
28
+ </a>
29
+ <a aria-label="loading" class="icon-link" href="https://www.ebay.com">
30
+ <span class="progress-spinner">
31
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
32
+ <use href="#icon-spinner-20"></use>
33
+ </svg>
34
+ </span>
35
+ </a>
36
+ <a aria-label="loading" class="icon-link icon-link--small" href="https://www.ebay.com">
37
+ <span class="progress-spinner progress-spinner--small">
38
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
39
+ <use href="#icon-spinner-20"></use>
40
+ </svg>
41
+ </span>
42
+ </a>
43
+ `;
44
+
45
+ export const baseDisabled = () => `
46
+ <a aria-label="settings" class="icon-link icon-link--large">
47
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
48
+ <use href="#icon-save-24"></use>
49
+ </svg>
50
+ </a>
51
+ <a aria-label="settings" class="icon-link">
52
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
53
+ <use href="#icon-save-20"></use>
54
+ </svg>
55
+ </a>
56
+ <a aria-label="settings" class="icon-link icon-link--small">
57
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
58
+ <use href="#icon-save-16"></use>
59
+ </svg>
60
+ </a>
61
+ `;
62
+
63
+ export const primary = () => `
64
+ <a aria-label="loading" class="icon-link icon-link--large icon-link--primary" href="https://www.ebay.com">
65
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
66
+ <use href="#icon-save-24"></use>
67
+ </svg>
68
+ </a>
69
+ <a aria-label="loading" class="icon-link icon-link--primary" href="https://www.ebay.com">
70
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
71
+ <use href="#icon-save-20"></use>
72
+ </svg>
73
+ </a>
74
+ <a aria-label="loading" class="icon-link icon-link--small icon-link--primary" href="https://www.ebay.com">
75
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
76
+ <use href="#icon-save-16"></use>
77
+ </svg>
78
+ </a>
79
+ `;
80
+
81
+ export const primarySpinner = () => `
82
+ <a aria-label="loading" class="icon-link icon-link--large icon-link--primary" href="https://www.ebay.com">
83
+ <span class="progress-spinner progress-spinner--large">
84
+ <svg aria-hidden="true" class="icon icon--spinner-24" height="24" width="24">
85
+ <use href="#icon-spinner-24"></use>
86
+ </svg>
87
+ </span>
88
+ </a>
89
+ <a aria-label="loading" class="icon-link icon-link--primary" href="https://www.ebay.com">
90
+ <span class="progress-spinner">
91
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
92
+ <use href="#icon-spinner-20"></use>
93
+ </svg>
94
+ </span>
95
+ </a>
96
+ <a aria-label="loading" class="icon-link icon-link--small icon-link--primary" href="https://www.ebay.com">
97
+ <span class="progress-spinner progress-spinner--small">
98
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
99
+ <use href="#icon-spinner-20"></use>
100
+ </svg>
101
+ </span>
102
+ </a>
103
+ `;
104
+
105
+ export const primaryDisabled = () => `
106
+ <a aria-label="loading" class="icon-link icon-link--large icon-link--primary">
107
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
108
+ <use href="#icon-save-24"></use>
109
+ </svg>
110
+ </a>
111
+ <a aria-label="loading" class="icon-link icon-link--primary">
112
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
113
+ <use href="#icon-save-20"></use>
114
+ </svg>
115
+ </a>
116
+ <a aria-label="loading" class="icon-link icon-link--small icon-link--primary">
117
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
118
+ <use href="#icon-save-16"></use>
119
+ </svg>
120
+ </a>
121
+ `;
122
+
123
+ export const secondary = () => `
124
+ <a aria-label="loading" class="icon-link icon-link--large icon-link--secondary" href="https://www.ebay.com">
125
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
126
+ <use href="#icon-save-24"></use>
127
+ </svg>
128
+ </a>
129
+ <a aria-label="loading" class="icon-link icon-link--secondary" href="https://www.ebay.com">
130
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
131
+ <use href="#icon-save-20"></use>
132
+ </svg>
133
+ </a>
134
+ <a aria-label="loading" class="icon-link icon-link--small icon-link--secondary" href="https://www.ebay.com">
135
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
136
+ <use href="#icon-save-16"></use>
137
+ </svg>
138
+ </a>
139
+ `;
140
+
141
+ export const secondarySpinner = () => `
142
+ <a aria-label="loading" class="icon-link icon-link--large icon-link--secondary" href="https://www.ebay.com">
143
+ <span class="progress-spinner progress-spinner--large">
144
+ <svg aria-hidden="true" class="icon icon--spinner-24" height="24" width="24">
145
+ <use href="#icon-spinner-24"></use>
146
+ </svg>
147
+ </span>
148
+ </a>
149
+ <a aria-label="loading" class="icon-link icon-link--secondary" href="https://www.ebay.com">
150
+ <span class="progress-spinner">
151
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
152
+ <use href="#icon-spinner-20"></use>
153
+ </svg>
154
+ </span>
155
+ </a>
156
+ <a aria-label="loading" class="icon-link icon-link--small icon-link--secondary" href="https://www.ebay.com">
157
+ <span class="progress-spinner progress-spinner--small">
158
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
159
+ <use href="#icon-spinner-20"></use>
160
+ </svg>
161
+ </span>
162
+ </a>
163
+ `;
164
+
165
+ export const secondaryDisabled = () => `
166
+ <a aria-label="loading" class="icon-link icon-link--large icon-link--secondary">
167
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
168
+ <use href="#icon-save-24"></use>
169
+ </svg>
170
+ </a>
171
+ <a aria-label="loading" class="icon-link icon-link--secondary">
172
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
173
+ <use href="#icon-save-20"></use>
174
+ </svg>
175
+ </a>
176
+ <a aria-label="loading" class="icon-link icon-link--small icon-link--secondary">
177
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
178
+ <use href="#icon-save-16"></use>
179
+ </svg>
180
+ </a>
181
+ `;
182
+
183
+ export const tertiary = () => `
184
+ <a aria-label="loading" class="icon-link icon-link--large icon-link--tertiary" href="https://www.ebay.com">
185
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
186
+ <use href="#icon-save-24"></use>
187
+ </svg>
188
+ </a>
189
+ <a aria-label="loading" class="icon-link icon-link--tertiary" href="https://www.ebay.com">
190
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
191
+ <use href="#icon-save-20"></use>
192
+ </svg>
193
+ </a>
194
+ <a aria-label="loading" class="icon-link icon-link--small icon-link--tertiary" href="https://www.ebay.com">
195
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
196
+ <use href="#icon-save-16"></use>
197
+ </svg>
198
+ </a>
199
+ `;
200
+
201
+ export const tertiarySpinner = () => `
202
+ <a aria-label="loading" class="icon-link icon-link--large icon-link--tertiary" href="https://www.ebay.com">
203
+ <span class="progress-spinner progress-spinner--large">
204
+ <svg aria-hidden="true" class="icon icon--spinner-24" height="24" width="24">
205
+ <use href="#icon-spinner-24"></use>
206
+ </svg>
207
+ </span>
208
+ </a>
209
+ <a aria-label="loading" class="icon-link icon-link--tertiary" href="https://www.ebay.com">
210
+ <span class="progress-spinner">
211
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
212
+ <use href="#icon-spinner-20"></use>
213
+ </svg>
214
+ </span>
215
+ </a>
216
+ <a aria-label="loading" class="icon-link icon-link--small icon-link--tertiary" href="https://www.ebay.com">
217
+ <span class="progress-spinner progress-spinner--small">
218
+ <svg aria-hidden="true" class="icon icon--spinner-20" height="24" width="24">
219
+ <use href="#icon-spinner-20"></use>
220
+ </svg>
221
+ </span>
222
+ </a>
223
+ `;
224
+
225
+ export const tertiaryDisabled = () => `
226
+ <a aria-label="loading" class="icon-link icon-link--large icon-link--tertiary">
227
+ <svg class="icon icon--save-24" width="16" height="16" aria-hidden="true">
228
+ <use href="#icon-save-24"></use>
229
+ </svg>
230
+ </a>
231
+ <a aria-label="loading" class="icon-link icon-link--tertiary">
232
+ <svg class="icon icon--save-20" width="16" height="16" aria-hidden="true">
233
+ <use href="#icon-save-20"></use>
234
+ </svg>
235
+ </a>
236
+ <a aria-label="loading" class="icon-link icon-link--small icon-link--tertiary">
237
+ <svg class="icon icon--save-16" width="16" height="16" aria-hidden="true">
238
+ <use href="#icon-save-16"></use>
239
+ </svg>
240
+ </a>
241
+ `;
@@ -40,7 +40,7 @@ export const expanded = () => `
40
40
  <h3 class="infotip__heading">Infotip</h3>
41
41
  <p>Here's a tip to help you be successful at your task.</p>
42
42
  </span>
43
- <button class="icon-btn infotip__close" type="button" aria-label="Dismiss infotip">
43
+ <button class="icon-btn icon-btn--transparent infotip__close" type="button" aria-label="Dismiss infotip">
44
44
  <svg class="icon icon--close-16" height="24" width="24" aria-hidden="true">
45
45
  <use href="#icon-close-16"></use>
46
46
  </svg>
@@ -95,7 +95,7 @@ export const paragraphExpanded = () => `
95
95
  <span class="infotip__heading" role="heading" aria-level=5>Infotip</span>
96
96
  <span>Here's a tip to help you be successful at your task.</span>
97
97
  </span>
98
- <button class="icon-btn infotip__close" type="button" aria-label="Dismiss infotip">
98
+ <button class="icon-btn icon-btn--transparent infotip__close" type="button" aria-label="Dismiss infotip">
99
99
  <svg class="icon icon--close-16" height="24" width="24" aria-hidden="true">
100
100
  <use href="#icon-close-16"></use>
101
101
  </svg>
@@ -131,3 +131,28 @@ export const infotipModal = () => `
131
131
  </div>
132
132
  </div>
133
133
  `;
134
+
135
+ export const textSpacing = () => `
136
+ <span class="infotip demo-a11y-text-spacing">
137
+ <button class="icon-btn icon-btn--transparent infotip__host" type="button" aria-expanded="true" aria-label="Help">
138
+ <svg class="icon icon--information-16" width="16" height="16" aria-hidden="true">
139
+ <use href="#icon-information-16"></use>
140
+ </svg>
141
+ </button>
142
+ <div class="infotip__overlay" style="left: calc(50% - 16px); right: auto; top: calc(100% + 8px); bottom: auto;">
143
+ <span class="infotip__pointer infotip__pointer--top-left"></span>
144
+ <div class="infotip__mask">
145
+ <div class="infotip__cell">
146
+ <span class="infotip__content">
147
+ <h3 class="infotip__heading">Infotip</h3>
148
+ <p>Here's a tip to help you be successful at your task.</p>
149
+ </span>
150
+ <button class="icon-btn icon-btn--transparent infotip__close" type="button" aria-label="Dismiss infotip">
151
+ <svg class="icon icon--close-16" height="24" width="24" aria-hidden="true">
152
+ <use href="#icon-close-16"></use>
153
+ </svg>
154
+ </button>
155
+ </div>
156
+ </div>
157
+ </div>
158
+ </span>`;
@@ -146,3 +146,16 @@ export const longWordInConstrainedWidth = () => `
146
146
  </div>
147
147
  </div>
148
148
  `;
149
+
150
+ export const textSpacing = () => `
151
+ <div class="inline-notice inline-notice--information demo-a11y-text-spacing">
152
+ <span class="inline-notice__header">
153
+ <svg class="icon icon--information-filled-16" role="img">
154
+ <use href="#icon-information-filled-16"></use>
155
+ </svg>
156
+ </span>
157
+ <span class="inline-notice__main">
158
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
159
+ </span>
160
+ </div>
161
+ `;
@@ -492,3 +492,27 @@ export const expressivePrev = () => `
492
492
  </div>
493
493
  </div>
494
494
  `;
495
+
496
+ export const textSpacing = () => `
497
+ <div aria-labelledby="lightbox-dialog-title" aria-modal="true" class="lightbox-dialog demo-a11y-text-spacing" role="dialog">
498
+ <div class="lightbox-dialog__window">
499
+ <button class="lightbox-dialog__handle" aria-label="Expand Dialog" type="button"></button>
500
+ <div class="lightbox-dialog__header">
501
+ <h2 id="lightbox-dialog-title">Dialog Lightbox</h2>
502
+ <button class="icon-btn lightbox-dialog__close" type="button" aria-label="Close Dialog">
503
+ <svg class="icon icon--close-16" aria-hidden="true">
504
+ <use href="#icon-close-16"></use>
505
+ </svg>
506
+ </button>
507
+ </div>
508
+ <div class="lightbox-dialog__main">
509
+ <h3>Heading</h3>
510
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus convallis molestie erat, ut adipiscing risus blandit vel. Vivamus luctus elementum lorem, eu sodales velit sagittis id.</p>
511
+ <p><a href="http://www.ebay.com">www.ebay.com</a></p>
512
+ <h3>Heading</h3>
513
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus convallis molestie erat, ut adipiscing risus blandit vel. Vivamus luctus elementum lorem, eu sodales velit sagittis id.</p>
514
+ <p><a href="http://www.ebay.com">www.ebay.com</a></p>
515
+ </div>
516
+ </div>
517
+ </div>
518
+ `;
@@ -6,14 +6,14 @@ export const base = () => `
6
6
 
7
7
  export const action = () => `
8
8
  <a class="action-link" href="https://www.ebay.com/?r=${Math.floor(
9
- Math.random() * Math.floor(1000)
9
+ Math.random() * Math.floor(1000),
10
10
  )}">See all 17 Reviews</a>
11
11
  `;
12
12
 
13
13
  export const RTL = () => `
14
14
  <div dir="rtl">
15
15
  <a class="action-link" href="https://www.ebay.com/?r=${Math.floor(
16
- Math.random() * Math.floor(1000)
16
+ Math.random() * Math.floor(1000),
17
17
  )}">See all 17 Reviews</a>
18
18
  <div>
19
19
  `;
@@ -23,5 +23,11 @@ export const fake = () =>
23
23
 
24
24
  export const nav = () =>
25
25
  `<a class="nav-link" href="https://www.ebay.com/?r=${Math.floor(
26
- Math.random() * Math.floor(1000)
26
+ Math.random() * Math.floor(1000),
27
27
  )}">Link 1</a></li>`;
28
+
29
+ export const textSpacing = () => `
30
+ <a class="action-link demo-a11y-text-spacing" href="https://www.ebay.com/?r=${Math.floor(
31
+ Math.random() * Math.floor(1000),
32
+ )}">Text Spacing</a>
33
+ `;
@@ -148,3 +148,40 @@ export const subtitleSelected = () => `
148
148
  </div>
149
149
  </span>
150
150
  `;
151
+
152
+ export const textSpacing = () => `
153
+ <span class="listbox demo-a11y-text-spacing">
154
+ <div class="listbox__options" role="listbox" tabindex="0">
155
+ <div class="listbox__option" role="option" aria-selected="true">
156
+ <span class="listbox__value">Option 1</span>
157
+ <span class="listbox__description">
158
+ <span class="clipped">.</span>
159
+ More info about option 1
160
+ </span>
161
+ <svg class="icon icon--tick-16" height="8" width="8">
162
+ <use href="#icon-tick-16"></use>
163
+ </svg>
164
+ </div>
165
+ <div class="listbox__option" role="option" aria-selected="false">
166
+ <span class="listbox__value">Option 2</span>
167
+ <span class="listbox__description">
168
+ <span class="clipped">.</span>
169
+ More info about option 2
170
+ </span>
171
+ <svg class="icon icon--tick-16" height="8" width="8">
172
+ <use href="#icon-tick-16"></use>
173
+ </svg>
174
+ </div>
175
+ <div class="listbox__option" role="option" aria-selected="false">
176
+ <span class="listbox__value">Option 3</span>
177
+ <span class="listbox__description">
178
+ <span class="clipped">.</span>
179
+ More info about option 3
180
+ </span>
181
+ <svg class="icon icon--tick-16" height="8" width="8">
182
+ <use href="#icon-tick-16"></use>
183
+ </svg>
184
+ </div>
185
+ </div>
186
+ </span>
187
+ `;