@ebay/skin 14.2.1 → 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 (259) 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/icon/icon.css +403 -351
  11. package/dist/infotip/infotip.css +0 -5
  12. package/dist/legacy-tokens/ds4-light.css +0 -2
  13. package/dist/lightbox-dialog/lightbox-dialog.css +0 -9
  14. package/dist/listbox-button/listbox-button.css +5 -0
  15. package/dist/menu-button/menu-button.css +13 -22
  16. package/dist/panel-dialog/panel-dialog.css +0 -3
  17. package/dist/program-badge/program-badge.css +403 -351
  18. package/dist/progress-spinner/progress-spinner.css +14 -18
  19. package/dist/progress-stepper/progress-stepper.css +46 -45
  20. package/dist/section-title/section-title.css +23 -87
  21. package/dist/snackbar-dialog/snackbar-dialog.css +9 -11
  22. package/dist/star-rating/star-rating.css +11 -7
  23. package/dist/star-rating-select/star-rating-select.css +9 -7
  24. package/dist/svg/icon/icon-spinner-large.svg +5 -5
  25. package/dist/svg/icon/icon-spinner-small.svg +4 -0
  26. package/dist/svg/icon/icon-spinner.svg +3 -13
  27. package/dist/svg/icon/icon-star-dynamic.svg +11 -9
  28. package/dist/svg/icon/icon-star-empty-large.svg +1 -0
  29. package/dist/svg/icon/icon-star-empty-small.svg +1 -5
  30. package/dist/svg/icon/icon-star-filled-large.svg +1 -0
  31. package/dist/svg/icon/icon-star-filled-small.svg +1 -0
  32. package/dist/svg/icon/icon-star-half-large.svg +1 -0
  33. package/dist/svg/icon/icon-star-half-small.svg +1 -9
  34. package/dist/svg/icon/icon-stepper-attention.svg +1 -0
  35. package/dist/svg/icon/icon-stepper-confirmation.svg +1 -0
  36. package/dist/svg/icon/icon-stepper-current.svg +1 -0
  37. package/dist/svg/icon/icon-stepper-upcoming.svg +5 -0
  38. package/dist/svg/icon/star-rating-large-0-5.svg +1 -0
  39. package/dist/svg/icon/star-rating-large-0.svg +1 -0
  40. package/dist/svg/icon/star-rating-large-1-5.svg +1 -0
  41. package/dist/svg/icon/star-rating-large-1.svg +1 -0
  42. package/dist/svg/icon/star-rating-large-2-5.svg +1 -0
  43. package/dist/svg/icon/star-rating-large-2.svg +1 -0
  44. package/dist/svg/icon/star-rating-large-3-5.svg +1 -0
  45. package/dist/svg/icon/star-rating-large-3.svg +1 -0
  46. package/dist/svg/icon/star-rating-large-4-5.svg +1 -0
  47. package/dist/svg/icon/star-rating-large-4.svg +1 -0
  48. package/dist/svg/icon/star-rating-large-5.svg +1 -0
  49. package/dist/svg/icon/star-rating-small-0-5.svg +1 -0
  50. package/dist/svg/icon/star-rating-small-0.svg +1 -0
  51. package/dist/svg/icon/star-rating-small-1-5.svg +1 -0
  52. package/dist/svg/icon/star-rating-small-1.svg +1 -0
  53. package/dist/svg/icon/star-rating-small-2-5.svg +1 -0
  54. package/dist/svg/icon/star-rating-small-2.svg +1 -0
  55. package/dist/svg/icon/star-rating-small-3-5.svg +1 -0
  56. package/dist/svg/icon/star-rating-small-3.svg +1 -0
  57. package/dist/svg/icon/star-rating-small-4-5.svg +1 -0
  58. package/dist/svg/icon/star-rating-small-4.svg +1 -0
  59. package/dist/svg/icon/star-rating-small-5.svg +1 -0
  60. package/dist/svg/icons.svg +343 -72
  61. package/dist/svg/star-rating.svg +206 -42
  62. package/dist/tokens/evo-dark.css +4 -6
  63. package/dist/tokens/evo-light.css +0 -2
  64. package/dist/tooltip/tooltip.css +0 -5
  65. package/dist/tourtip/tourtip.css +0 -5
  66. package/dist/variables/variables.less +0 -3
  67. package/index.browser.json +1 -3
  68. package/index.css +0 -2
  69. package/index.js +0 -2
  70. package/index.mjs +0 -2
  71. package/package.json +1 -1
  72. package/scripts/generate-images.js +29 -14
  73. package/src/less/bundles/skin-headless.less +0 -2
  74. package/src/less/button/button.less +1 -7
  75. package/src/less/button/stories/button/borderless.stories.js +8 -0
  76. package/src/less/combobox/combobox.less +4 -4
  77. package/src/less/cta-button/cta-button.less +0 -6
  78. package/src/less/field/field.less +1 -1
  79. package/src/less/gh/gh-mixins.less +0 -8
  80. package/src/less/icon/generated/icon.less +403 -351
  81. package/src/less/lightbox-dialog/lightbox-dialog.less +0 -11
  82. package/src/less/menu-button/menu-button.less +7 -33
  83. package/src/less/mixins/private/bubble-mixins.less +0 -11
  84. package/src/less/mixins/private/button-mixins.less +0 -1
  85. package/src/less/mixins/private/dialog-mixins.less +0 -3
  86. package/src/less/mixins/private/dropdown-mixins.less +16 -0
  87. package/src/less/panel-dialog/panel-dialog.less +0 -5
  88. package/src/less/progress-spinner/progress-spinner.less +14 -19
  89. package/src/less/progress-spinner/stories/progress-spinner.stories.js +7 -6
  90. package/src/less/progress-stepper/progress-stepper.less +103 -55
  91. package/src/less/progress-stepper/stories/progress-stepper.stories.js +461 -65
  92. package/src/less/section-title/section-title.less +24 -102
  93. package/src/less/section-title/stories/rtl.stories.js +67 -12
  94. package/src/less/section-title/stories/section-title.stories.js +22 -262
  95. package/src/less/snackbar-dialog/snackbar-dialog.less +9 -11
  96. package/src/less/star-rating/star-rating.less +26 -6
  97. package/src/less/star-rating-select/star-rating-select.less +28 -7
  98. package/src/less/variables/variables.less +0 -3
  99. package/src/selectors-api/selectors-api.json +1 -3
  100. package/src/svg/icon/icon-spinner-large.svg +5 -5
  101. package/src/svg/icon/icon-spinner-small.svg +4 -0
  102. package/src/svg/icon/icon-spinner.svg +3 -13
  103. package/src/svg/icon/icon-star-dynamic.svg +11 -9
  104. package/src/svg/icon/icon-star-empty-large.svg +1 -0
  105. package/src/svg/icon/icon-star-empty-small.svg +1 -5
  106. package/src/svg/icon/icon-star-filled-large.svg +1 -0
  107. package/src/svg/icon/icon-star-filled-small.svg +1 -0
  108. package/src/svg/icon/icon-star-half-large.svg +1 -0
  109. package/src/svg/icon/icon-star-half-small.svg +1 -9
  110. package/src/svg/icon/icon-stepper-attention.svg +1 -0
  111. package/src/svg/icon/icon-stepper-confirmation.svg +1 -0
  112. package/src/svg/icon/icon-stepper-current.svg +1 -0
  113. package/src/svg/icon/icon-stepper-upcoming.svg +5 -0
  114. package/src/svg/icon/star-rating-large-0-5.svg +1 -0
  115. package/src/svg/icon/star-rating-large-0.svg +1 -0
  116. package/src/svg/icon/star-rating-large-1-5.svg +1 -0
  117. package/src/svg/icon/star-rating-large-1.svg +1 -0
  118. package/src/svg/icon/star-rating-large-2-5.svg +1 -0
  119. package/src/svg/icon/star-rating-large-2.svg +1 -0
  120. package/src/svg/icon/star-rating-large-3-5.svg +1 -0
  121. package/src/svg/icon/star-rating-large-3.svg +1 -0
  122. package/src/svg/icon/star-rating-large-4-5.svg +1 -0
  123. package/src/svg/icon/star-rating-large-4.svg +1 -0
  124. package/src/svg/icon/star-rating-large-5.svg +1 -0
  125. package/src/svg/icon/star-rating-small-0-5.svg +1 -0
  126. package/src/svg/icon/star-rating-small-0.svg +1 -0
  127. package/src/svg/icon/star-rating-small-1-5.svg +1 -0
  128. package/src/svg/icon/star-rating-small-1.svg +1 -0
  129. package/src/svg/icon/star-rating-small-2-5.svg +1 -0
  130. package/src/svg/icon/star-rating-small-2.svg +1 -0
  131. package/src/svg/icon/star-rating-small-3-5.svg +1 -0
  132. package/src/svg/icon/star-rating-small-3.svg +1 -0
  133. package/src/svg/icon/star-rating-small-4-5.svg +1 -0
  134. package/src/svg/icon/star-rating-small-4.svg +1 -0
  135. package/src/svg/icon/star-rating-small-5.svg +1 -0
  136. package/src/svg/icons.svg +343 -72
  137. package/src/svg/star-rating.svg +206 -42
  138. package/src/tokens/evo-dark.css +4 -6
  139. package/src/tokens/evo-light.css +0 -2
  140. package/svg.svg +343 -72
  141. package/_cdn/skin/v14.2.1/skin-default.min.css +0 -6
  142. package/_cdn/skin/v14.2.1/skin-full.min.css +0 -6
  143. package/_cdn/skin/v14.2.1/skin-headless.min.css +0 -6
  144. package/_cdn/skin/v14.2.1/skin-legacy.min.css +0 -6
  145. package/dist/expand-button/expand-button.css +0 -189
  146. package/dist/icon/aliased.css +0 -45
  147. package/dist/icon/base.css +0 -12
  148. package/dist/icon/content.css +0 -41
  149. package/dist/icon/device.css +0 -45
  150. package/dist/icon/direction.css +0 -105
  151. package/dist/icon/filter.css +0 -65
  152. package/dist/icon/general.css +0 -309
  153. package/dist/icon/interface.css +0 -185
  154. package/dist/icon/internal.css +0 -120
  155. package/dist/icon/large.css +0 -93
  156. package/dist/icon/media.css +0 -45
  157. package/dist/icon/photo.css +0 -69
  158. package/dist/icon/reviews.css +0 -87
  159. package/dist/icon/shipping.css +0 -73
  160. package/dist/icon/social.css +0 -80
  161. package/dist/icon/status.css +0 -87
  162. package/dist/icon/user.css +0 -29
  163. package/dist/svg/aliased.svg +0 -38
  164. package/dist/svg/content.svg +0 -25
  165. package/dist/svg/device.svg +0 -29
  166. package/dist/svg/direction.svg +0 -119
  167. package/dist/svg/filter.svg +0 -43
  168. package/dist/svg/general.svg +0 -476
  169. package/dist/svg/icon/icon-stepper-information.svg +0 -5
  170. package/dist/svg/interface.svg +0 -314
  171. package/dist/svg/internal.svg +0 -162
  172. package/dist/svg/large.svg +0 -125
  173. package/dist/svg/media.svg +0 -29
  174. package/dist/svg/photo.svg +0 -106
  175. package/dist/svg/reviews.svg +0 -113
  176. package/dist/svg/shipping.svg +0 -82
  177. package/dist/svg/social.svg +0 -80
  178. package/dist/svg/status.svg +0 -48
  179. package/dist/svg/user.svg +0 -48
  180. package/dist/window-notice/window-notice.css +0 -39
  181. package/expand-button.browser.json +0 -1
  182. package/expand-button.css +0 -1
  183. package/expand-button.js +0 -1
  184. package/expand-button.mjs +0 -1
  185. package/src/less/expand-button/expand-button.less +0 -181
  186. package/src/less/expand-button/stories/base.stories.js +0 -56
  187. package/src/less/expand-button/stories/cascade.stories.js +0 -54
  188. package/src/less/expand-button/stories/dimensions.stories.js +0 -45
  189. package/src/less/icon/aliased.less +0 -12
  190. package/src/less/icon/base.less +0 -14
  191. package/src/less/icon/content.less +0 -2
  192. package/src/less/icon/device.less +0 -2
  193. package/src/less/icon/direction.less +0 -2
  194. package/src/less/icon/filter.less +0 -2
  195. package/src/less/icon/general.less +0 -2
  196. package/src/less/icon/generated/aliased.less +0 -25
  197. package/src/less/icon/generated/content.less +0 -29
  198. package/src/less/icon/generated/device.less +0 -33
  199. package/src/less/icon/generated/direction.less +0 -93
  200. package/src/less/icon/generated/filter.less +0 -53
  201. package/src/less/icon/generated/general.less +0 -297
  202. package/src/less/icon/generated/interface.less +0 -173
  203. package/src/less/icon/generated/internal.less +0 -93
  204. package/src/less/icon/generated/large.less +0 -81
  205. package/src/less/icon/generated/media.less +0 -33
  206. package/src/less/icon/generated/photo.less +0 -57
  207. package/src/less/icon/generated/program-badges.less +0 -49
  208. package/src/less/icon/generated/reviews.less +0 -69
  209. package/src/less/icon/generated/shipping.less +0 -61
  210. package/src/less/icon/generated/social.less +0 -41
  211. package/src/less/icon/generated/status.less +0 -57
  212. package/src/less/icon/generated/user.less +0 -17
  213. package/src/less/icon/interface.less +0 -2
  214. package/src/less/icon/internal.less +0 -22
  215. package/src/less/icon/large.less +0 -2
  216. package/src/less/icon/media.less +0 -2
  217. package/src/less/icon/photo.less +0 -2
  218. package/src/less/icon/reviews.less +0 -12
  219. package/src/less/icon/shipping.less +0 -2
  220. package/src/less/icon/social.less +0 -41
  221. package/src/less/icon/status.less +0 -28
  222. package/src/less/icon/user.less +0 -2
  223. package/src/less/window-notice/stories/window-notice.stories.js +0 -60
  224. package/src/less/window-notice/window-notice.less +0 -50
  225. package/src/svg/aliased.svg +0 -38
  226. package/src/svg/content.svg +0 -25
  227. package/src/svg/device.svg +0 -29
  228. package/src/svg/direction.svg +0 -119
  229. package/src/svg/filter.svg +0 -43
  230. package/src/svg/general.svg +0 -476
  231. package/src/svg/icon/icon-star-empty.svg +0 -5
  232. package/src/svg/icon/icon-star-full.svg +0 -5
  233. package/src/svg/icon/icon-star-half.svg +0 -9
  234. package/src/svg/icon/icon-stepper-information.svg +0 -5
  235. package/src/svg/icon/star-rating-0-5.svg +0 -9
  236. package/src/svg/icon/star-rating-0.svg +0 -6
  237. package/src/svg/icon/star-rating-1-5.svg +0 -9
  238. package/src/svg/icon/star-rating-1.svg +0 -9
  239. package/src/svg/icon/star-rating-2-5.svg +0 -9
  240. package/src/svg/icon/star-rating-2.svg +0 -9
  241. package/src/svg/icon/star-rating-3-5.svg +0 -9
  242. package/src/svg/icon/star-rating-3.svg +0 -9
  243. package/src/svg/icon/star-rating-4-5.svg +0 -9
  244. package/src/svg/icon/star-rating-4.svg +0 -9
  245. package/src/svg/icon/star-rating-5.svg +0 -5
  246. package/src/svg/interface.svg +0 -314
  247. package/src/svg/internal.svg +0 -162
  248. package/src/svg/large.svg +0 -125
  249. package/src/svg/media.svg +0 -29
  250. package/src/svg/photo.svg +0 -106
  251. package/src/svg/reviews.svg +0 -113
  252. package/src/svg/shipping.svg +0 -82
  253. package/src/svg/social.svg +0 -80
  254. package/src/svg/status.svg +0 -48
  255. package/src/svg/user.svg +0 -48
  256. package/window-notice.browser.json +0 -1
  257. package/window-notice.css +0 -1
  258. package/window-notice.js +0 -1
  259. 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