@ebay/skin 14.2.0 → 15.0.0-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 (265) hide show
  1. package/.storybook/preview-head.html +343 -72
  2. package/_cdn/skin/v15.0.0-0/skin-default.min.css +6 -0
  3. package/_cdn/skin/v15.0.0-0/skin-full.min.css +6 -0
  4. package/_cdn/skin/v15.0.0-0/skin-headless.min.css +6 -0
  5. package/_cdn/skin/v15.0.0-0/skin-legacy.min.css +6 -0
  6. package/dist/button/button.css +1 -5
  7. package/dist/combobox/combobox.css +13 -3
  8. package/dist/cta-button/cta-button.css +0 -4
  9. package/dist/field/field.css +1 -1
  10. package/dist/filter-menu-button/filter-menu-button.css +1 -1
  11. package/dist/icon/icon.css +403 -351
  12. package/dist/infotip/infotip.css +1 -5
  13. package/dist/legacy-tokens/ds4-light.css +0 -2
  14. package/dist/lightbox-dialog/lightbox-dialog.css +0 -9
  15. package/dist/listbox-button/listbox-button.css +5 -0
  16. package/dist/marketsans/marketsans.css +2 -2
  17. package/dist/menu-button/menu-button.css +13 -22
  18. package/dist/panel-dialog/panel-dialog.css +0 -3
  19. package/dist/program-badge/program-badge.css +403 -351
  20. package/dist/progress-spinner/progress-spinner.css +14 -18
  21. package/dist/progress-stepper/progress-stepper.css +46 -45
  22. package/dist/section-title/section-title.css +23 -87
  23. package/dist/snackbar-dialog/snackbar-dialog.css +9 -11
  24. package/dist/star-rating/star-rating.css +11 -7
  25. package/dist/star-rating-select/star-rating-select.css +9 -7
  26. package/dist/svg/icon/icon-spinner-large.svg +5 -5
  27. package/dist/svg/icon/icon-spinner-small.svg +4 -0
  28. package/dist/svg/icon/icon-spinner.svg +3 -13
  29. package/dist/svg/icon/icon-star-dynamic.svg +11 -9
  30. package/dist/svg/icon/icon-star-empty-large.svg +1 -0
  31. package/dist/svg/icon/icon-star-empty-small.svg +1 -5
  32. package/dist/svg/icon/icon-star-filled-large.svg +1 -0
  33. package/dist/svg/icon/icon-star-filled-small.svg +1 -0
  34. package/dist/svg/icon/icon-star-half-large.svg +1 -0
  35. package/dist/svg/icon/icon-star-half-small.svg +1 -9
  36. package/dist/svg/icon/icon-stepper-attention.svg +1 -0
  37. package/dist/svg/icon/icon-stepper-confirmation.svg +1 -0
  38. package/dist/svg/icon/icon-stepper-current.svg +1 -0
  39. package/dist/svg/icon/icon-stepper-upcoming.svg +5 -0
  40. package/dist/svg/icon/star-rating-large-0-5.svg +1 -0
  41. package/dist/svg/icon/star-rating-large-0.svg +1 -0
  42. package/dist/svg/icon/star-rating-large-1-5.svg +1 -0
  43. package/dist/svg/icon/star-rating-large-1.svg +1 -0
  44. package/dist/svg/icon/star-rating-large-2-5.svg +1 -0
  45. package/dist/svg/icon/star-rating-large-2.svg +1 -0
  46. package/dist/svg/icon/star-rating-large-3-5.svg +1 -0
  47. package/dist/svg/icon/star-rating-large-3.svg +1 -0
  48. package/dist/svg/icon/star-rating-large-4-5.svg +1 -0
  49. package/dist/svg/icon/star-rating-large-4.svg +1 -0
  50. package/dist/svg/icon/star-rating-large-5.svg +1 -0
  51. package/dist/svg/icon/star-rating-small-0-5.svg +1 -0
  52. package/dist/svg/icon/star-rating-small-0.svg +1 -0
  53. package/dist/svg/icon/star-rating-small-1-5.svg +1 -0
  54. package/dist/svg/icon/star-rating-small-1.svg +1 -0
  55. package/dist/svg/icon/star-rating-small-2-5.svg +1 -0
  56. package/dist/svg/icon/star-rating-small-2.svg +1 -0
  57. package/dist/svg/icon/star-rating-small-3-5.svg +1 -0
  58. package/dist/svg/icon/star-rating-small-3.svg +1 -0
  59. package/dist/svg/icon/star-rating-small-4-5.svg +1 -0
  60. package/dist/svg/icon/star-rating-small-4.svg +1 -0
  61. package/dist/svg/icon/star-rating-small-5.svg +1 -0
  62. package/dist/svg/icons.svg +343 -72
  63. package/dist/svg/star-rating.svg +206 -42
  64. package/dist/tokens/evo-dark.css +4 -6
  65. package/dist/tokens/evo-light.css +0 -2
  66. package/dist/tooltip/tooltip.css +1 -5
  67. package/dist/tourtip/tourtip.css +1 -5
  68. package/dist/variables/variables.less +0 -3
  69. package/index.browser.json +1 -3
  70. package/index.css +0 -2
  71. package/index.js +0 -2
  72. package/index.mjs +0 -2
  73. package/package.json +1 -1
  74. package/scripts/generate-images.js +29 -14
  75. package/src/fonts/marketsans/MarketSans-Regular-WebS.css +2 -1
  76. package/src/fonts/marketsans/MarketSans-SemiBold-WebS.css +2 -1
  77. package/src/less/bundles/skin-headless.less +0 -2
  78. package/src/less/button/button.less +1 -7
  79. package/src/less/button/stories/button/borderless.stories.js +8 -0
  80. package/src/less/combobox/combobox.less +4 -4
  81. package/src/less/cta-button/cta-button.less +0 -6
  82. package/src/less/field/field.less +1 -1
  83. package/src/less/filter-menu-button/filter-menu-button.less +1 -1
  84. package/src/less/gh/gh-mixins.less +0 -8
  85. package/src/less/icon/generated/icon.less +403 -351
  86. package/src/less/lightbox-dialog/lightbox-dialog.less +0 -11
  87. package/src/less/marketsans/marketsans.less +2 -2
  88. package/src/less/menu-button/menu-button.less +7 -33
  89. package/src/less/mixins/private/bubble-mixins.less +2 -11
  90. package/src/less/mixins/private/button-mixins.less +0 -1
  91. package/src/less/mixins/private/dialog-mixins.less +0 -3
  92. package/src/less/mixins/private/dropdown-mixins.less +16 -0
  93. package/src/less/panel-dialog/panel-dialog.less +0 -5
  94. package/src/less/progress-spinner/progress-spinner.less +14 -19
  95. package/src/less/progress-spinner/stories/progress-spinner.stories.js +7 -6
  96. package/src/less/progress-stepper/progress-stepper.less +103 -55
  97. package/src/less/progress-stepper/stories/progress-stepper.stories.js +461 -65
  98. package/src/less/section-title/section-title.less +24 -102
  99. package/src/less/section-title/stories/rtl.stories.js +67 -12
  100. package/src/less/section-title/stories/section-title.stories.js +22 -262
  101. package/src/less/snackbar-dialog/snackbar-dialog.less +9 -11
  102. package/src/less/star-rating/star-rating.less +26 -6
  103. package/src/less/star-rating-select/star-rating-select.less +28 -7
  104. package/src/less/variables/variables.less +0 -3
  105. package/src/selectors-api/selectors-api.json +1 -3
  106. package/src/svg/icon/icon-spinner-large.svg +5 -5
  107. package/src/svg/icon/icon-spinner-small.svg +4 -0
  108. package/src/svg/icon/icon-spinner.svg +3 -13
  109. package/src/svg/icon/icon-star-dynamic.svg +11 -9
  110. package/src/svg/icon/icon-star-empty-large.svg +1 -0
  111. package/src/svg/icon/icon-star-empty-small.svg +1 -5
  112. package/src/svg/icon/icon-star-filled-large.svg +1 -0
  113. package/src/svg/icon/icon-star-filled-small.svg +1 -0
  114. package/src/svg/icon/icon-star-half-large.svg +1 -0
  115. package/src/svg/icon/icon-star-half-small.svg +1 -9
  116. package/src/svg/icon/icon-stepper-attention.svg +1 -0
  117. package/src/svg/icon/icon-stepper-confirmation.svg +1 -0
  118. package/src/svg/icon/icon-stepper-current.svg +1 -0
  119. package/src/svg/icon/icon-stepper-upcoming.svg +5 -0
  120. package/src/svg/icon/star-rating-large-0-5.svg +1 -0
  121. package/src/svg/icon/star-rating-large-0.svg +1 -0
  122. package/src/svg/icon/star-rating-large-1-5.svg +1 -0
  123. package/src/svg/icon/star-rating-large-1.svg +1 -0
  124. package/src/svg/icon/star-rating-large-2-5.svg +1 -0
  125. package/src/svg/icon/star-rating-large-2.svg +1 -0
  126. package/src/svg/icon/star-rating-large-3-5.svg +1 -0
  127. package/src/svg/icon/star-rating-large-3.svg +1 -0
  128. package/src/svg/icon/star-rating-large-4-5.svg +1 -0
  129. package/src/svg/icon/star-rating-large-4.svg +1 -0
  130. package/src/svg/icon/star-rating-large-5.svg +1 -0
  131. package/src/svg/icon/star-rating-small-0-5.svg +1 -0
  132. package/src/svg/icon/star-rating-small-0.svg +1 -0
  133. package/src/svg/icon/star-rating-small-1-5.svg +1 -0
  134. package/src/svg/icon/star-rating-small-1.svg +1 -0
  135. package/src/svg/icon/star-rating-small-2-5.svg +1 -0
  136. package/src/svg/icon/star-rating-small-2.svg +1 -0
  137. package/src/svg/icon/star-rating-small-3-5.svg +1 -0
  138. package/src/svg/icon/star-rating-small-3.svg +1 -0
  139. package/src/svg/icon/star-rating-small-4-5.svg +1 -0
  140. package/src/svg/icon/star-rating-small-4.svg +1 -0
  141. package/src/svg/icon/star-rating-small-5.svg +1 -0
  142. package/src/svg/icons.svg +343 -72
  143. package/src/svg/star-rating.svg +206 -42
  144. package/src/tokens/evo-dark.css +4 -6
  145. package/src/tokens/evo-light.css +0 -2
  146. package/svg.svg +343 -72
  147. package/_cdn/skin/v14.2.0/skin-default.min.css +0 -6
  148. package/_cdn/skin/v14.2.0/skin-full.min.css +0 -6
  149. package/_cdn/skin/v14.2.0/skin-headless.min.css +0 -6
  150. package/_cdn/skin/v14.2.0/skin-legacy.min.css +0 -6
  151. package/dist/expand-button/expand-button.css +0 -189
  152. package/dist/icon/aliased.css +0 -45
  153. package/dist/icon/base.css +0 -12
  154. package/dist/icon/content.css +0 -41
  155. package/dist/icon/device.css +0 -45
  156. package/dist/icon/direction.css +0 -105
  157. package/dist/icon/filter.css +0 -65
  158. package/dist/icon/general.css +0 -309
  159. package/dist/icon/interface.css +0 -185
  160. package/dist/icon/internal.css +0 -120
  161. package/dist/icon/large.css +0 -93
  162. package/dist/icon/media.css +0 -45
  163. package/dist/icon/photo.css +0 -69
  164. package/dist/icon/reviews.css +0 -87
  165. package/dist/icon/shipping.css +0 -73
  166. package/dist/icon/social.css +0 -80
  167. package/dist/icon/status.css +0 -87
  168. package/dist/icon/user.css +0 -29
  169. package/dist/svg/aliased.svg +0 -38
  170. package/dist/svg/content.svg +0 -25
  171. package/dist/svg/device.svg +0 -29
  172. package/dist/svg/direction.svg +0 -119
  173. package/dist/svg/filter.svg +0 -43
  174. package/dist/svg/general.svg +0 -476
  175. package/dist/svg/icon/icon-stepper-information.svg +0 -5
  176. package/dist/svg/interface.svg +0 -314
  177. package/dist/svg/internal.svg +0 -162
  178. package/dist/svg/large.svg +0 -125
  179. package/dist/svg/media.svg +0 -29
  180. package/dist/svg/photo.svg +0 -106
  181. package/dist/svg/reviews.svg +0 -113
  182. package/dist/svg/shipping.svg +0 -82
  183. package/dist/svg/social.svg +0 -80
  184. package/dist/svg/status.svg +0 -48
  185. package/dist/svg/user.svg +0 -48
  186. package/dist/window-notice/window-notice.css +0 -39
  187. package/expand-button.browser.json +0 -1
  188. package/expand-button.css +0 -1
  189. package/expand-button.js +0 -1
  190. package/expand-button.mjs +0 -1
  191. package/src/less/expand-button/expand-button.less +0 -181
  192. package/src/less/expand-button/stories/base.stories.js +0 -56
  193. package/src/less/expand-button/stories/cascade.stories.js +0 -54
  194. package/src/less/expand-button/stories/dimensions.stories.js +0 -45
  195. package/src/less/icon/aliased.less +0 -12
  196. package/src/less/icon/base.less +0 -14
  197. package/src/less/icon/content.less +0 -2
  198. package/src/less/icon/device.less +0 -2
  199. package/src/less/icon/direction.less +0 -2
  200. package/src/less/icon/filter.less +0 -2
  201. package/src/less/icon/general.less +0 -2
  202. package/src/less/icon/generated/aliased.less +0 -25
  203. package/src/less/icon/generated/content.less +0 -29
  204. package/src/less/icon/generated/device.less +0 -33
  205. package/src/less/icon/generated/direction.less +0 -93
  206. package/src/less/icon/generated/filter.less +0 -53
  207. package/src/less/icon/generated/general.less +0 -297
  208. package/src/less/icon/generated/interface.less +0 -173
  209. package/src/less/icon/generated/internal.less +0 -93
  210. package/src/less/icon/generated/large.less +0 -81
  211. package/src/less/icon/generated/media.less +0 -33
  212. package/src/less/icon/generated/photo.less +0 -57
  213. package/src/less/icon/generated/program-badges.less +0 -49
  214. package/src/less/icon/generated/reviews.less +0 -69
  215. package/src/less/icon/generated/shipping.less +0 -61
  216. package/src/less/icon/generated/social.less +0 -41
  217. package/src/less/icon/generated/status.less +0 -57
  218. package/src/less/icon/generated/user.less +0 -17
  219. package/src/less/icon/interface.less +0 -2
  220. package/src/less/icon/internal.less +0 -22
  221. package/src/less/icon/large.less +0 -2
  222. package/src/less/icon/media.less +0 -2
  223. package/src/less/icon/photo.less +0 -2
  224. package/src/less/icon/reviews.less +0 -12
  225. package/src/less/icon/shipping.less +0 -2
  226. package/src/less/icon/social.less +0 -41
  227. package/src/less/icon/status.less +0 -28
  228. package/src/less/icon/user.less +0 -2
  229. package/src/less/window-notice/stories/window-notice.stories.js +0 -60
  230. package/src/less/window-notice/window-notice.less +0 -50
  231. package/src/svg/aliased.svg +0 -38
  232. package/src/svg/content.svg +0 -25
  233. package/src/svg/device.svg +0 -29
  234. package/src/svg/direction.svg +0 -119
  235. package/src/svg/filter.svg +0 -43
  236. package/src/svg/general.svg +0 -476
  237. package/src/svg/icon/icon-star-empty.svg +0 -5
  238. package/src/svg/icon/icon-star-full.svg +0 -5
  239. package/src/svg/icon/icon-star-half.svg +0 -9
  240. package/src/svg/icon/icon-stepper-information.svg +0 -5
  241. package/src/svg/icon/star-rating-0-5.svg +0 -9
  242. package/src/svg/icon/star-rating-0.svg +0 -6
  243. package/src/svg/icon/star-rating-1-5.svg +0 -9
  244. package/src/svg/icon/star-rating-1.svg +0 -9
  245. package/src/svg/icon/star-rating-2-5.svg +0 -9
  246. package/src/svg/icon/star-rating-2.svg +0 -9
  247. package/src/svg/icon/star-rating-3-5.svg +0 -9
  248. package/src/svg/icon/star-rating-3.svg +0 -9
  249. package/src/svg/icon/star-rating-4-5.svg +0 -9
  250. package/src/svg/icon/star-rating-4.svg +0 -9
  251. package/src/svg/icon/star-rating-5.svg +0 -5
  252. package/src/svg/interface.svg +0 -314
  253. package/src/svg/internal.svg +0 -162
  254. package/src/svg/large.svg +0 -125
  255. package/src/svg/media.svg +0 -29
  256. package/src/svg/photo.svg +0 -106
  257. package/src/svg/reviews.svg +0 -113
  258. package/src/svg/shipping.svg +0 -82
  259. package/src/svg/social.svg +0 -80
  260. package/src/svg/status.svg +0 -48
  261. package/src/svg/user.svg +0 -48
  262. package/window-notice.browser.json +0 -1
  263. package/window-notice.css +0 -1
  264. package/window-notice.js +0 -1
  265. package/window-notice.mjs +0 -1
@@ -3,7 +3,7 @@
3
3
  @import "../mixins/private/token-mixins.less";
4
4
 
5
5
  .section-title {
6
- align-items: center;
6
+ align-items: baseline;
7
7
  display: flex;
8
8
  margin: 30px 0 10px;
9
9
  }
@@ -31,7 +31,9 @@
31
31
  }
32
32
 
33
33
  .section-title__info {
34
+ bottom: -3px;
34
35
  margin: 0 @spacing-300 0 @spacing-100;
36
+ position: relative;
35
37
  }
36
38
 
37
39
  .section-title__overflow {
@@ -39,33 +41,23 @@
39
41
  }
40
42
 
41
43
  .section-title__cta,
42
- .section-title__info,
43
44
  .section-title__overflow {
44
- align-items: center;
45
+ align-items: baseline;
45
46
  display: flex;
46
- height: 24px;
47
+ height: @spacing-400;
48
+ margin-left: auto;
49
+ margin-right: 0;
47
50
  }
48
51
 
49
52
  .section-title button.icon-btn,
50
53
  .section-title__overflow button.icon-btn {
51
- height: 24px;
52
- width: 24px;
54
+ height: @spacing-400;
55
+ min-width: @spacing-400;
56
+ width: @spacing-400;
53
57
  }
54
58
 
55
59
  .section-title__title-container + button.icon-btn {
56
- margin-left: 12px;
57
- }
58
-
59
- .section-title--giant {
60
- .section-title__title {
61
- .typography-large-2();
62
- }
63
-
64
- > .section-title__cta,
65
- > .section-title__info,
66
- > .section-title__overflow {
67
- height: 32px;
68
- }
60
+ margin-left: @spacing-100;
69
61
  }
70
62
 
71
63
  .section-title--large {
@@ -76,19 +68,7 @@
76
68
  > .section-title__cta,
77
69
  > .section-title__info,
78
70
  > .section-title__overflow {
79
- height: 28px;
80
- }
81
- }
82
-
83
- .section-title--small {
84
- .section-title__title {
85
- .typography-regular-bold();
86
- }
87
-
88
- > .section-title__cta,
89
- > .section-title__info,
90
- > .section-title__overflow {
91
- height: 20px;
71
+ height: @spacing-400;
92
72
  }
93
73
  }
94
74
 
@@ -98,86 +78,28 @@
98
78
  margin-right: @spacing-100;
99
79
  transform: rotate(180deg);
100
80
  }
101
- }
102
-
103
- @media (min-width: 601px) {
104
- .section-title__title {
105
- .typography-large-2();
106
- }
107
-
108
- .section-title__subtitle {
109
- .typography-medium();
110
- }
111
81
 
112
82
  .section-title__cta {
113
- font-size: @font-size-large-2;
114
- margin: 0 @spacing-200;
115
-
116
- > a {
117
- .border-color-token(section-title-separator-color, color-stroke-subtle);
118
- border-left-style: solid;
119
- border-left-width: 2px;
120
- line-height: 1.125rem;
121
- padding-left: @spacing-200;
122
- }
123
- }
124
-
125
- .section-title__cta-text {
126
- display: inline;
127
- }
128
-
129
- .section-title__cta--no-text {
130
- margin: 0;
131
-
132
- > a {
133
- border: 0;
134
- padding: 0;
135
- }
136
-
137
- .section-title__cta-text {
138
- display: none;
139
- }
83
+ margin-left: 0;
84
+ margin-right: auto;
140
85
  }
141
86
 
142
- .section-title__cta,
143
- .section-title__info,
144
87
  .section-title__overflow {
145
- height: 28px;
88
+ margin-left: 0;
89
+ margin-right: auto;
146
90
  }
147
91
 
148
- .section-title--giant {
149
- .section-title__title {
150
- .typography-giant-1();
151
- }
152
-
153
- > .section-title__cta,
154
- > .section-title__info,
155
- > .section-title__overflow {
156
- height: 40px;
157
- }
92
+ .section-title__info {
93
+ margin: 0 @spacing-100 0 @spacing-300;
158
94
  }
95
+ }
159
96
 
160
- .section-title--large {
161
- .section-title__title {
162
- .typography-large-2();
163
- }
164
-
165
- > .section-title__cta,
166
- > .section-title__info,
167
- > .section-title__overflow {
168
- height: 32px;
169
- }
97
+ @media (min-width: 601px) {
98
+ .section-title__title {
99
+ .typography-large-2();
170
100
  }
171
101
 
172
- .section-title--small {
173
- .section-title__title {
174
- .typography-medium-bold();
175
- }
176
-
177
- > .section-title__cta,
178
- > .section-title__info,
179
- > .section-title__overflow {
180
- height: 24px;
181
- }
102
+ .section-title__subtitle {
103
+ .typography-medium();
182
104
  }
183
105
  }
@@ -23,31 +23,86 @@ export const subheading = () => `
23
23
 
24
24
  export const linked = () => `
25
25
  <div dir="rtl">
26
- <div class="section-title">
26
+ <div class="section-title section-title">
27
27
  <div class="section-title__title-container">
28
- <h2 class="section-title__title">
29
- <a href="https://www.ebay.com">Today’s Deals – All With Free Shipping</a>
30
- <svg class="icon icon--arrow-right-extra-small" focusable="false" height="10" width="10" aria-hidden="true">
31
- <use xlink:href="#icon-arrow-right-extra-small"></use>
32
- </svg>
33
- </h2>
28
+ <h2 class="section-title__title">Marketing Type Content Title</h2>
34
29
  </div>
30
+ <a class="section-title__cta" href="https://www.ebay.com">See all</a>
35
31
  </div>
36
32
  </div>
37
33
  `;
38
34
 
39
35
  export const linkedWithSubheading = () => `
36
+ <div dir="rtl">
37
+ <div class="section-title section-title">
38
+ <div class="section-title__title-container">
39
+ <h2 class="section-title__title">Marketing Type Content Title</h2>
40
+ <span class="section-title__subtitle">Recommended for you</span>
41
+ </div>
42
+ <a class="section-title__cta" href="https://www.ebay.com">See all</a>
43
+ </div>
44
+ </div>
45
+ `;
46
+
47
+ export const overflow = () => `
48
+ <div dir="rtl">
49
+ <div class="section-title">
50
+ <div class="section-title__title-container">
51
+ <h2 class="section-title__title">Marketing Type Content Title</h2>
52
+ </div>
53
+ <div class="section-title__overflow">
54
+ <span class="menu-button">
55
+ <button class="menu-button__button icon-btn" type="button" aria-expanded="true" aria-haspopup="true" type="button">
56
+ <svg class="icon icon--overflow" focusable="false" width="24" height="24" aria-hidden="true">
57
+ <use href="#icon-overflow"></use>
58
+ </svg>
59
+ </button>
60
+ <div class="menu-button__menu menu-button__menu--reverse">
61
+ <div class="menu-button__items" role="menu">
62
+ <div class="menu-button__item" role="menuitem"><span>Item 1</span></div>
63
+ <div class="menu-button__item" role="menuitem"><span>Item 2</span></div>
64
+ <div class="menu-button__item" role="menuitem"><span>Item 3</span></div>
65
+ </div>
66
+ </div>
67
+ </span>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ `;
72
+
73
+ export const withFavorite = () => `
40
74
  <div dir="rtl">
41
75
  <div class="section-title">
42
76
  <div class="section-title__title-container">
43
- <h2 class="section-title__title">
44
- <a href="https://www.ebay.com">Today’s Deals – All With Free Shipping</a>
45
- <svg class="icon icon--arrow-right-extra-small" focusable="false" height="10" width="10" aria-hidden="true">
46
- <use xlink:href="#icon-arrow-right-extra-small"></use>
77
+ <h2 class="section-title__title">Marketing Type Content Title</h2>
78
+ <span class="section-title__subtitle">Recommended for you</span>
79
+ </div>
80
+ <div class="section-title__info">
81
+ <button class="icon-btn infotip__host" type="button" aria-expanded="false" aria-label="Help">
82
+ <svg aria-hidden="true" class="icon icon--save-small" focusable="false" width="16" height="14">
83
+ <use href="#icon-save-small"></use>
47
84
  </svg>
48
- </h2>
85
+ </button>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ `;
90
+
91
+ export const withFavoriteAndLink = () => `
92
+ <div dir="rtl">
93
+ <div class="section-title">
94
+ <div class="section-title__title-container">
95
+ <h2 class="section-title__title">Marketing Type Content Title</h2>
49
96
  <span class="section-title__subtitle">Recommended for you</span>
50
97
  </div>
98
+ <div class="section-title__info">
99
+ <button class="icon-btn infotip__host" type="button" aria-expanded="false" aria-label="Help">
100
+ <svg aria-hidden="true" class="icon icon--save-small" focusable="false" width="16" height="14">
101
+ <use href="#icon-save-small"></use>
102
+ </svg>
103
+ </button>
104
+ </div>
105
+ <a class="section-title__cta" href="https://www.ebay.com">See all</a>
51
106
  </div>
52
107
  </div>
53
108
  `;
@@ -18,62 +18,21 @@ export const subheading = () => `
18
18
  `;
19
19
 
20
20
  export const linked = () => `
21
- <div class="section-title">
21
+ <div class="section-title section-title">
22
22
  <div class="section-title__title-container">
23
- <h2 class="section-title__title">
24
- <a href="https://www.ebay.com">Today’s Deals – All With Free Shipping</a>
25
- <svg class="icon icon--arrow-right-extra-small" focusable="false" height="10" width="10" aria-hidden="true">
26
- <use xlink:href="#icon-arrow-right-extra-small"></use>
27
- </svg>
28
- </h2>
23
+ <h2 class="section-title__title">Marketing Type Content Title</h2>
29
24
  </div>
25
+ <a class="section-title__cta" href="https://www.ebay.com">See all</a>
30
26
  </div>
31
27
  `;
32
28
 
33
29
  export const linkedWithSubheading = () => `
34
- <div class="section-title">
35
- <div class="section-title__title-container">
36
- <h2 class="section-title__title">
37
- <a href="https://www.ebay.com">Today’s Deals – All With Free Shipping</a>
38
- <svg class="icon icon--arrow-right-extra-small" focusable="false" height="10" width="10" aria-hidden="true">
39
- <use xlink:href="#icon-arrow-right-extra-small"></use>
40
- </svg>
41
- </h2>
42
- <span class="section-title__subtitle">Recommended for you</span>
43
- </div>
44
- </div>
45
- `;
46
-
47
- export const info = () => `
48
- <div class="section-title">
30
+ <div class="section-title section-title">
49
31
  <div class="section-title__title-container">
50
32
  <h2 class="section-title__title">Marketing Type Content Title</h2>
33
+ <span class="section-title__subtitle">Recommended for you</span>
51
34
  </div>
52
- <div class="section-title__info">
53
- <span class="infotip">
54
- <button class="icon-btn infotip__host" type="button" aria-expanded="true" aria-label="Help">
55
- <svg class="icon icon--information" focusable="false" width="24" height="24" aria-hidden="true">
56
- <use xlink:href="#icon-information"></use>
57
- </svg>
58
- </button>
59
- <div class="infotip__overlay" style="left: -6px; right: auto; top: calc(100%); bottom: auto">
60
- <span class="infotip__pointer infotip__pointer--top-left"></span>
61
- <div class="infotip__mask">
62
- <div class="infotip__cell">
63
- <span class="infotip__content">
64
- <h3 class="infotip__heading">Infotip</h3>
65
- <p>Here's a tip to help you be successful at your task.</p>
66
- </span>
67
- <button class="infotip__close" type="button" aria-label="Dismiss infotip">
68
- <svg class="icon icon--close" focusable="false" height="24" width="24" aria-hidden="true">
69
- <use xlink:href="#icon-close"></use>
70
- </svg>
71
- </button>
72
- </div>
73
- </div>
74
- </div>
75
- </span>
76
- </div>
35
+ <a class="section-title__cta" href="https://www.ebay.com">See all</a>
77
36
  </div>
78
37
  `;
79
38
 
@@ -86,7 +45,7 @@ export const overflow = () => `
86
45
  <span class="menu-button">
87
46
  <button class="menu-button__button icon-btn" type="button" aria-expanded="true" aria-haspopup="true" type="button">
88
47
  <svg class="icon icon--overflow" focusable="false" width="24" height="24" aria-hidden="true">
89
- <use xlink:href="#icon-overflow"></use>
48
+ <use href="#icon-overflow"></use>
90
49
  </svg>
91
50
  </button>
92
51
  <div class="menu-button__menu menu-button__menu--reverse">
@@ -101,234 +60,35 @@ export const overflow = () => `
101
60
  </div>
102
61
  `;
103
62
 
104
- export const giant = () => `
105
- <div class="section-title section-title--giant">
63
+ export const withFavorite = () => `
64
+ <div class="section-title">
106
65
  <div class="section-title__title-container">
107
- <h2 class="section-title__title"><a href="https://www.ebay.com">Marketing Type Content Title</a></h2>
66
+ <h2 class="section-title__title">Marketing Type Content Title</h2>
108
67
  <span class="section-title__subtitle">Recommended for you</span>
109
68
  </div>
110
- <div class="section-title__cta">
111
- <a href="https://www.ebay.com" tabindex="-1" aria-hidden="true">
112
- <span class="section-title__cta-text">See All</span>
113
- <svg aria-hidden="true" class="section-title__cta-icon" focusable="false">
114
- <use xlink:href="#icon-arrow-right-bold"></use>
115
- </svg>
116
- </a>
117
- </div>
118
69
  <div class="section-title__info">
119
- <span class="infotip">
120
- <button class="icon-btn infotip__host" type="button" aria-expanded="false" aria-label="Help">
121
- <svg aria-hidden="true" class="icon icon--information" focusable="false" width="24" height="24">
122
- <use xlink:href="#icon-information"></use>
123
- </svg>
124
- </button>
125
- <div class="infotip__overlay" style="left: -6px; right: auto; top: calc(100%); bottom: auto">
126
- <span class="infotip__pointer infotip__pointer--top-left"></span>
127
- <div class="infotip__mask">
128
- <div class="infotip__cell">
129
- <span class="infotip__content">
130
- <h3 class="infotip__heading">Infotip</h3>
131
- <p>Here's a tip to help you be successful at your task.</p>
132
- </span>
133
- <button class="infotip__close" type="button" aria-label="Dismiss infotip">
134
- <svg class="icon icon--close" focusable="false" height="24" width="24" aria-hidden="true">
135
- <use xlink:href="#icon-close"></use>
136
- </svg>
137
- </button>
138
- </div>
139
- </div>
140
- </div>
141
- </span>
142
- </div>
143
- <div class="section-title__overflow">
144
- <span class="menu-button">
145
- <button class="menu-button__button icon-btn" type="button" aria-expanded="false" aria-haspopup="true" type="button">
146
- <svg class="icon icon--overflow" focusable="false" width="24" height="24" aria-hidden="true">
147
- <use xlink:href="#icon-overflow"></use>
148
- </svg>
149
- </button>
150
- <div class="menu-button__menu menu-button__menu--reverse">
151
- <div class="menu-button__items" role="menu">
152
- <div class="menu-button__item" role="menuitem"><span>Item 1</span></div>
153
- <div class="menu-button__item" role="menuitem"><span>Item 2</span></div>
154
- <div class="menu-button__item" role="menuitem"><span>Item 3</span></div>
155
- </div>
156
- </div>
157
- </span>
158
- </div>
159
- </div>
160
- `;
161
-
162
- export const large = () => `
163
- <div class="section-title section-title--large">
164
- <div class="section-title__title-container">
165
- <h2 class="section-title__title"><a href="https://www.ebay.com">Marketing Type Content Title</a></h2>
166
- <span class="section-title__subtitle">Recommended for you</span>
167
- </div>
168
- <div class="section-title__cta">
169
- <a href="https://www.ebay.com" tabindex="-1" aria-hidden="true">
170
- <span class="section-title__cta-text">See All</span>
171
- <svg aria-hidden="true" class="section-title__cta-icon" focusable="false">
172
- <use xlink:href="#icon-arrow-right-bold"></use>
70
+ <button class="icon-btn" type="button" aria-expanded="false" aria-label="Help">
71
+ <svg aria-hidden="true" class="icon icon--save-small" focusable="false" width="16" height="14">
72
+ <use href="#icon-save-small"></use>
173
73
  </svg>
174
- </a>
175
- </div>
176
- <div class="section-title__info">
177
- <span class="infotip">
178
- <button class="icon-btn infotip__host" type="button" aria-expanded="false" aria-label="Help">
179
- <svg aria-hidden="true" class="icon icon--information" focusable="false" width="24" height="24">
180
- <use xlink:href="#icon-information"></use>
181
- </svg>
182
- </button>
183
- <div class="infotip__overlay" style="left: -6px; right: auto; top: calc(100%); bottom: auto">
184
- <span class="infotip__pointer infotip__pointer--top-left"></span>
185
- <div class="infotip__mask">
186
- <div class="infotip__cell">
187
- <span class="infotip__content">
188
- <h3 class="infotip__heading">Infotip</h3>
189
- <p>Here's a tip to help you be successful at your task.</p>
190
- </span>
191
- <button class="infotip__close" type="button" aria-label="Dismiss infotip">
192
- <svg class="icon icon--close" focusable="false" height="24" width="24" aria-hidden="true">
193
- <use xlink:href="#icon-close"></use>
194
- </svg>
195
- </button>
196
- </div>
197
- </div>
198
- </div>
199
- </span>
200
- </div>
201
- <div class="section-title__overflow">
202
- <span class="menu-button">
203
- <button class="menu-button__button icon-btn" type="button" aria-expanded="false" aria-haspopup="true" type="button">
204
- <svg class="icon icon--overflow" focusable="false" width="24" height="24" aria-hidden="true">
205
- <use xlink:href="#icon-overflow"></use>
206
- </svg>
207
- </button>
208
- <div class="menu-button__menu menu-button__menu--reverse">
209
- <div class="menu-button__items" role="menu">
210
- <div class="menu-button__item" role="menuitem"><span>Item 1</span></div>
211
- <div class="menu-button__item" role="menuitem"><span>Item 2</span></div>
212
- <div class="menu-button__item" role="menuitem"><span>Item 3</span></div>
213
- </div>
214
- </div>
215
- </span>
74
+ </button>
216
75
  </div>
217
76
  </div>
218
77
  `;
219
78
 
220
- export const medium = () => `
221
- <div class="section-title section-title--medium">
79
+ export const withFavoriteAndLink = () => `
80
+ <div class="section-title">
222
81
  <div class="section-title__title-container">
223
- <h2 class="section-title__title"><a href="https://www.ebay.com">Marketing Type Content Title</a></h2>
82
+ <h2 class="section-title__title">Marketing Type Content Title</h2>
224
83
  <span class="section-title__subtitle">Recommended for you</span>
225
84
  </div>
226
- <div class="section-title__cta">
227
- <a href="https://www.ebay.com" tabindex="-1" aria-hidden="true">
228
- <span class="section-title__cta-text">See All</span>
229
- <svg aria-hidden="true" class="section-title__cta-icon" focusable="false">
230
- <use xlink:href="#icon-arrow-right-bold"></use>
231
- </svg>
232
- </a>
233
- </div>
234
85
  <div class="section-title__info">
235
- <span class="infotip">
236
- <button class="icon-btn infotip__host" type="button" aria-expanded="false" aria-label="Help">
237
- <svg aria-hidden="true" class="icon icon--information" focusable="false" width="24" height="24">
238
- <use xlink:href="#icon-information"></use>
239
- </svg>
240
- </button>
241
- <div class="infotip__overlay" style="left: -6px; right: auto; top: calc(100%); bottom: auto">
242
- <span class="infotip__pointer infotip__pointer--top-left"></span>
243
- <div class="infotip__mask">
244
- <div class="infotip__cell">
245
- <span class="infotip__content">
246
- <h3 class="infotip__heading">Infotip</h3>
247
- <p>Here's a tip to help you be successful at your task.</p>
248
- </span>
249
- <button class="infotip__close" type="button" aria-label="Dismiss infotip">
250
- <svg class="icon icon--close" focusable="false" height="24" width="24" aria-hidden="true">
251
- <use xlink:href="#icon-close"></use>
252
- </svg>
253
- </button>
254
- </div>
255
- </div>
256
- </div>
257
- </span>
258
- </div>
259
- <div class="section-title__overflow">
260
- <span class="menu-button">
261
- <button class="menu-button__button icon-btn" type="button" aria-expanded="false" aria-haspopup="true" type="button">
262
- <svg class="icon icon--overflow" focusable="false" width="24" height="24" aria-hidden="true">
263
- <use xlink:href="#icon-overflow"></use>
264
- </svg>
265
- </button>
266
- <div class="menu-button__menu menu-button__menu--reverse">
267
- <div class="menu-button__items" role="menu">
268
- <div class="menu-button__item" role="menuitem"><span>Item 1</span></div>
269
- <div class="menu-button__item" role="menuitem"><span>Item 2</span></div>
270
- <div class="menu-button__item" role="menuitem"><span>Item 3</span></div>
271
- </div>
272
- </div>
273
- </span>
274
- </div>
275
- </div>
276
- `;
277
-
278
- export const small = () => `
279
- <div class="section-title section-title--small">
280
- <div class="section-title__title-container">
281
- <h2 class="section-title__title"><a href="https://www.ebay.com">Marketing Type Content Title</a></h2>
282
- <span class="section-title__subtitle">Recommended for you</span>
283
- </div>
284
- <div class="section-title__cta">
285
- <a href="https://www.ebay.com" tabindex="-1" aria-hidden="true">
286
- <span class="section-title__cta-text">See All</span>
287
- <svg aria-hidden="true" class="section-title__cta-icon" focusable="false">
288
- <use xlink:href="#icon-arrow-right-bold"></use>
86
+ <button class="icon-btn infotip__host" type="button" aria-expanded="false" aria-label="Help">
87
+ <svg aria-hidden="true" class="icon icon--save-small" focusable="false" width="16" height="14">
88
+ <use href="#icon-save-small"></use>
289
89
  </svg>
290
- </a>
291
- </div>
292
- <div class="section-title__info">
293
- <span class="infotip">
294
- <button class="icon-btn infotip__host" type="button" aria-expanded="false" aria-label="Help">
295
- <svg aria-hidden="true" class="icon icon--information" focusable="false" width="24" height="24">
296
- <use xlink:href="#icon-information"></use>
297
- </svg>
298
- </button>
299
- <div class="infotip__overlay" style="left: -6px; right: auto; top: calc(100%); bottom: auto">
300
- <span class="infotip__pointer infotip__pointer--top-left"></span>
301
- <div class="infotip__mask">
302
- <div class="infotip__cell">
303
- <span class="infotip__content">
304
- <h3 class="infotip__heading">Infotip</h3>
305
- <p>Here's a tip to help you be successful at your task.</p>
306
- </span>
307
- <button class="infotip__close" type="button" aria-label="Dismiss infotip">
308
- <svg class="icon icon--close" focusable="false" height="24" width="24" aria-hidden="true">
309
- <use xlink:href="#icon-close"></use>
310
- </svg>
311
- </button>
312
- </div>
313
- </div>
314
- </div>
315
- </span>
316
- </div>
317
- <div class="section-title__overflow">
318
- <span class="menu-button">
319
- <button class="menu-button__button icon-btn" type="button" aria-expanded="false" aria-haspopup="true" type="button">
320
- <svg class="icon icon--overflow" focusable="false" width="24" height="24" aria-hidden="true">
321
- <use xlink:href="#icon-overflow"></use>
322
- </svg>
323
- </button>
324
- <div class="menu-button__menu menu-button__menu--reverse">
325
- <div class="menu-button__items" role="menu">
326
- <div class="menu-button__item" role="menuitem"><span>Item 1</span></div>
327
- <div class="menu-button__item" role="menuitem"><span>Item 2</span></div>
328
- <div class="menu-button__item" role="menuitem"><span>Item 3</span></div>
329
- </div>
330
- </div>
331
- </span>
90
+ </button>
332
91
  </div>
92
+ <a class="section-title__cta" href="https://www.ebay.com">See all</a>
333
93
  </div>
334
94
  `;
@@ -3,17 +3,19 @@
3
3
  @import "../mixins/private/token-mixins.less";
4
4
 
5
5
  .snackbar-dialog {
6
- .background-color-token(snackbar-dialog-background-color, color-background-secondary);
7
- bottom: 0;
6
+ .background-color-token(snackbar-dialog-background-color, color-background-inverse);
7
+ .border-radius-token(snackbar-dialog-border-radius, border-radius-100);
8
+ bottom: 40px;
8
9
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.28);
9
- .color-token(snackbar-dialog-foreground-color, color-foreground-primary);
10
- left: 0;
10
+ .color-token(snackbar-dialog-foreground-color, color-foreground-on-inverse);
11
+ left: @spacing-100;
12
+ margin: auto;
11
13
  max-height: 40vh;
12
- min-width: 320px;
14
+ max-width: 448px;
13
15
  position: fixed;
16
+ right: @spacing-100;
14
17
  // Setting translateY to 0 to fix a bug in safari which does a double transform
15
18
  transform: translateY(0);
16
- width: 100vw;
17
19
  will-change: opacity, transform;
18
20
  z-index: 2;
19
21
  }
@@ -72,11 +74,7 @@
72
74
 
73
75
  @media (min-width: 601px) {
74
76
  .snackbar-dialog {
75
- .border-radius-token(snackbar-dialog-border-radius, border-radius-100);
76
- bottom: 16px;
77
- left: 16px;
78
- max-width: 480px;
79
- width: auto;
77
+ bottom: 20px;
80
78
  }
81
79
  }
82
80