@ebay/skin 16.1.0-0 → 16.2.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 (50) hide show
  1. package/.storybook/preview-head.html +18 -0
  2. package/README.md +1 -1
  3. package/_cdn/skin/v16.2.0-0/skin-default.min.css +6 -0
  4. package/_cdn/skin/v16.2.0-0/skin-full.min.css +6 -0
  5. package/_cdn/skin/v16.2.0-0/skin-headless.min.css +6 -0
  6. package/_cdn/skin/v16.2.0-0/skin-legacy.min.css +6 -0
  7. package/avatar.browser.json +1 -0
  8. package/avatar.css +1 -0
  9. package/avatar.js +1 -0
  10. package/avatar.mjs +1 -0
  11. package/dist/avatar/avatar.css +100 -0
  12. package/dist/legacy-tokens/ds4-light.css +14 -0
  13. package/dist/segmented-buttons/segmented-buttons.css +62 -0
  14. package/dist/svg/icon/icon-avatar-signed-out.svg +5 -0
  15. package/dist/svg/icons.svg +18 -0
  16. package/dist/tokens/evo-light.css +14 -0
  17. package/dist/variables/variables.less +1 -0
  18. package/index.browser.json +2 -0
  19. package/index.css +2 -0
  20. package/index.js +2 -0
  21. package/index.mjs +2 -0
  22. package/package.json +1 -1
  23. package/segmented-buttons.browser.json +1 -0
  24. package/segmented-buttons.css +1 -0
  25. package/segmented-buttons.js +1 -0
  26. package/segmented-buttons.mjs +1 -0
  27. package/src/less/avatar/avatar.less +111 -0
  28. package/src/less/avatar/stories/avatar.stories.js +265 -0
  29. package/src/less/bundles/skin-headless.less +2 -0
  30. package/src/less/button/button.less +2 -0
  31. package/src/less/button/stories/button/base.stories.js +2 -2
  32. package/src/less/button/stories/button/cascade.stories.js +2 -2
  33. package/src/less/button/stories/button/dimensions.stories.js +1 -1
  34. package/src/less/button/stories/fake-button/base.stories.js +2 -2
  35. package/src/less/button/stories/fake-button/cascade.stories.js +3 -3
  36. package/src/less/button/stories/fake-button/dimensions.stories.js +1 -1
  37. package/src/less/cta-button/cta-button.less +2 -0
  38. package/src/less/icon-button/stories/alignment.stories.js +2 -2
  39. package/src/less/mixins/private/button-mixins.less +4 -0
  40. package/src/less/segmented-buttons/segmented-buttons.less +69 -0
  41. package/src/less/segmented-buttons/stories/segmented-buttons.stories.js +100 -0
  42. package/src/less/variables/variables.less +1 -0
  43. package/src/svg/icon/icon-avatar-signed-out.svg +5 -0
  44. package/src/svg/icons.svg +18 -0
  45. package/src/tokens/evo-light.css +14 -0
  46. package/svg.svg +18 -0
  47. package/_cdn/skin/v16.1.0-0/skin-default.min.css +0 -6
  48. package/_cdn/skin/v16.1.0-0/skin-full.min.css +0 -6
  49. package/_cdn/skin/v16.1.0-0/skin-headless.min.css +0 -6
  50. package/_cdn/skin/v16.1.0-0/skin-legacy.min.css +0 -6
@@ -0,0 +1,62 @@
1
+ .segmented-buttons {
2
+ border: 1px solid var(--color-stroke-default);
3
+ border-radius: 24px;
4
+ max-width: 720px;
5
+ min-width: 215px;
6
+ padding: 4px;
7
+ }
8
+ .segmented-buttons > ul {
9
+ display: flex;
10
+ list-style: none;
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+ .segmented-buttons > ul > li {
15
+ display: flex;
16
+ flex: 1;
17
+ }
18
+ .segmented-buttons > ul > li:not(:first-child) {
19
+ margin-left: 8px;
20
+ }
21
+ .segmented-buttons__button {
22
+ background-color: transparent;
23
+ border: none;
24
+ border-radius: var(--btn-border-radius, calc(40px / 2));
25
+ font-size: 0.875rem;
26
+ min-height: 40px;
27
+ padding: 8px 16px;
28
+ width: 100%;
29
+ }
30
+ .segmented-buttons__button-cell {
31
+ align-items: center;
32
+ display: flex;
33
+ width: 100%;
34
+ justify-content: center;
35
+ }
36
+ .segmented-buttons__button svg.icon {
37
+ align-self: center;
38
+ }
39
+ .segmented-buttons__button svg.icon:first-child {
40
+ margin-right: 8px;
41
+ }
42
+ .segmented-buttons__button svg.icon:last-child {
43
+ margin-left: 8px;
44
+ }
45
+ .segmented-buttons__button svg.icon:only-child {
46
+ margin: 0;
47
+ }
48
+ .segmented-buttons__button[aria-current] {
49
+ background-color: var(--color-foreground-primary);
50
+ color: var(--color-foreground-on-inverse);
51
+ }
52
+ .segmented-buttons__button:not([aria-current]):active {
53
+ background-color: var(--color-state-primary-active);
54
+ }
55
+ .segmented-buttons__button:not([aria-current]):hover,
56
+ .segmented-buttons__button:not([aria-current]):focus {
57
+ background-color: var(--color-state-primary-hover);
58
+ }
59
+ [dir="rtl"] .segmented-buttons > ul > li:not(:first-child) {
60
+ margin-left: 0;
61
+ margin-right: 8px;
62
+ }
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40">
2
+ <circle cx="20" cy="20" r="20" fill="var(--color-background-secondary, #F7F7F7)"/>
3
+ <circle cx="20" cy="17.5" r="8.333" fill="var(--color-foreground-secondary, #707070)"/>
4
+ <path d="M7.67 35.748c2-4.84 6.767-8.248 12.33-8.248s10.33 3.407 12.33 8.249A19.914 19.914 0 0 1 20 40a19.914 19.914 0 0 1-12.33-4.252Z" fill="var(--color-foreground-secondary, #707070)"/>
5
+ </svg>
@@ -380,6 +380,24 @@
380
380
  d="M11 0a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0V1a1 1 0 0 1 1-1ZM2.293 2.293a1 1 0 0 1 1.414 0l2 2a1 1 0 0 1-1.414 1.414l-2-2a1 1 0 0 1 0-1.414Zm15 1a1 1 0 1 1 1.414 1.414l-2 2a1 1 0 1 1-1.414-1.414l2-2ZM9.916 9.209l-.707.707 2.73 2.73.707-.706-2.73-2.73Zm4.144 4.145-.706.707 7.73 7.73.707-.707-7.73-7.73ZM8.855 7.442a1.5 1.5 0 0 1 2.121 0l12.582 12.582a1.5 1.5 0 0 1 0 2.12l-1.413 1.415a1.5 1.5 0 0 1-2.122 0L7.441 10.977a1.5 1.5 0 0 1 0-2.122l1.414-1.413ZM0 11a1 1 0 0 1 1-1h2a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm6.707 4.293a1 1 0 0 1 0 1.414l-2 2a1 1 0 0 1-1.414-1.414l2-2a1 1 0 0 1 1.414 0Z"
381
381
  />
382
382
  </symbol>
383
+ <symbol viewBox="0 0 40 40" id="icon-avatar-signed-out">
384
+ <circle
385
+ cx="20"
386
+ cy="20"
387
+ r="20"
388
+ fill="var(--color-background-secondary, #F7F7F7)"
389
+ />
390
+ <circle
391
+ cx="20"
392
+ cy="17.5"
393
+ r="8.333"
394
+ fill="var(--color-foreground-secondary, #707070)"
395
+ />
396
+ <path
397
+ d="M7.67 35.748c2-4.84 6.767-8.248 12.33-8.248s10.33 3.407 12.33 8.249A19.914 19.914 0 0 1 20 40a19.914 19.914 0 0 1-12.33-4.252Z"
398
+ fill="var(--color-foreground-secondary, #707070)"
399
+ />
400
+ </symbol>
383
401
  <symbol viewBox="0 0 24 24" id="icon-bag-24">
384
402
  <path
385
403
  d="M17.996 6.775A6 6 0 0 0 6 7v2H4a1 1 0 0 0-.986.836l-2 12A1 1 0 0 0 2 23h20a1 1 0 0 0 .986-1.164l-2-12A1 1 0 0 0 20 9h-2V7l-.004-.225ZM16 11v2l.007.117A1 1 0 0 0 18 13v-2h1.153l1.667 10H3.18l1.667-10H6v2l.007.117A1 1 0 0 0 8 13v-2h8Zm0-2H8V7l.005-.2A4 4 0 0 1 16 7v2Z"
@@ -71,4 +71,18 @@
71
71
  --color-data-viz-tooltip-shadow-secondary: #0000002b;
72
72
  --color-scrim-image: rgba(0, 0, 0, 0.04);
73
73
  --color-scrim-background: rgba(0, 0, 0, 0.32);
74
+ --color-marketing-lime-foreground-4: var(--color-lime-7);
75
+ --color-marketing-lime-background-4: var(--color-lime-4);
76
+ --color-marketing-green-foreground-3: var(--color-green-7);
77
+ --color-marketing-green-background-3: var(--color-green-3);
78
+ --color-marketing-teal-foreground-3: var(--color-teal-7);
79
+ --color-marketing-teal-background-3: var(--color-teal-3);
80
+ --color-marketing-teal-foreground-5: var(--color-neutral-0);
81
+ --color-marketing-teal-background-5: var(--color-teal-5);
82
+ --color-marketing-yellow-foreground-3: var(--color-yellow-7);
83
+ --color-marketing-yellow-background-3: var(--color-yellow-3);
84
+ --color-marketing-orange-foreground-3: var(--color-orange-7);
85
+ --color-marketing-orange-background-3: var(--color-orange-3);
86
+ --color-marketing-magenta-foreground-4: var(--color-neutral-0);
87
+ --color-marketing-magenta-background-4: var(--color-magenta-4);
74
88
  }
@@ -43,6 +43,7 @@
43
43
  @font-size-30: 1.875rem;
44
44
  @font-size-36: 2.25rem;
45
45
  @font-size-46: 2.875rem;
46
+ @font-size-64: 4rem;
46
47
 
47
48
  @spacing-25: @spacing-100 * 0.25;
48
49
  @spacing-50: @spacing-100 * 0.5;
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "dependencies": [
3
3
  "require: ./alert-dialog.js",
4
+ "require: ./avatar.js",
4
5
  "require: ./badge.js",
5
6
  "require: ./breadcrumbs.js",
6
7
  "require: ./button.js",
@@ -43,6 +44,7 @@
43
44
  "require: ./radio.js",
44
45
  "require: ./section-notice.js",
45
46
  "require: ./section-title.js",
47
+ "require: ./segmented-buttons.js",
46
48
  "require: ./select.js",
47
49
  "require: ./signal.js",
48
50
  "require: ./snackbar-dialog.js",
package/index.css CHANGED
@@ -1,4 +1,5 @@
1
1
  @import "./alert-dialog.css";
2
+ @import "./avatar.css";
2
3
  @import "./badge.css";
3
4
  @import "./breadcrumbs.css";
4
5
  @import "./button.css";
@@ -41,6 +42,7 @@
41
42
  @import "./radio.css";
42
43
  @import "./section-notice.css";
43
44
  @import "./section-title.css";
45
+ @import "./segmented-buttons.css";
44
46
  @import "./select.css";
45
47
  @import "./signal.css";
46
48
  @import "./snackbar-dialog.css";
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  require('./alert-dialog.js');
2
+ require('./avatar.js');
2
3
  require('./badge.js');
3
4
  require('./breadcrumbs.js');
4
5
  require('./button.js');
@@ -41,6 +42,7 @@ require('./progress-stepper.js');
41
42
  require('./radio.js');
42
43
  require('./section-notice.js');
43
44
  require('./section-title.js');
45
+ require('./segmented-buttons.js');
44
46
  require('./select.js');
45
47
  require('./signal.js');
46
48
  require('./snackbar-dialog.js');
package/index.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import './alert-dialog.css';
2
+ import './avatar.css';
2
3
  import './badge.css';
3
4
  import './breadcrumbs.css';
4
5
  import './button.css';
@@ -41,6 +42,7 @@ import './progress-stepper.css';
41
42
  import './radio.css';
42
43
  import './section-notice.css';
43
44
  import './section-title.css';
45
+ import './segmented-buttons.css';
44
46
  import './select.css';
45
47
  import './signal.css';
46
48
  import './snackbar-dialog.css';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ebay/skin",
3
3
  "description": "Skin - CSS modules that represent the brand eBay",
4
- "version": "16.1.0-0",
4
+ "version": "16.2.0-0",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",
7
7
  "maintainers": [
@@ -0,0 +1 @@
1
+ { "dependencies": ["require: ./segmented-buttons.js"] }
@@ -0,0 +1 @@
1
+ @import "./dist/segmented-buttons/segmented-buttons.css";
@@ -0,0 +1 @@
1
+ require('./dist/segmented-buttons/segmented-buttons.css');
@@ -0,0 +1 @@
1
+ import './dist/segmented-buttons/segmented-buttons.css';
@@ -0,0 +1,111 @@
1
+ @import "../variables/variables.less";
2
+
3
+ .avatar {
4
+ align-items: center;
5
+ background-color: var(--color-marketing-teal-background-5);
6
+ border-radius: 50%;
7
+ color: var(--color-marketing-teal-foreground-5);
8
+ display: inline-flex;
9
+ font-size: @font-size-large-2;
10
+ font-weight: @font-weight-bold;
11
+ height: 48px;
12
+ justify-content: center;
13
+ line-height: 48px;
14
+ overflow: hidden;
15
+ width: 48px;
16
+ }
17
+ .avatar > svg {
18
+ height: 100%;
19
+ width: 100%;
20
+ }
21
+
22
+ .avatar > img {
23
+ height: 48px;
24
+ object-fit: cover;
25
+ width: 48px;
26
+ }
27
+
28
+ .avatar--teal {
29
+ background-color: var(--color-marketing-teal-background-5);
30
+ color: var(--color-marketing-teal-foreground-5);
31
+ }
32
+
33
+ .avatar--light-teal {
34
+ background-color: var(--color-marketing-teal-background-3);
35
+ color: var(--color-marketing-teal-foreground-3);
36
+ }
37
+
38
+ .avatar--green {
39
+ background-color: var(--color-marketing-green-background-3);
40
+ color: var(--color-marketing-green-foreground-3);
41
+ }
42
+
43
+ .avatar--lime {
44
+ background-color: var(--color-marketing-lime-background-4);
45
+ color: var(--color-marketing-lime-foreground-4);
46
+ }
47
+
48
+ .avatar--yellow {
49
+ background-color: var(--color-marketing-yellow-background-3);
50
+ color: var(--color-marketing-yellow-foreground-3);
51
+ }
52
+
53
+ .avatar--orange {
54
+ background-color: var(--color-marketing-orange-background-3);
55
+ color: var(--color-marketing-orange-foreground-3);
56
+ }
57
+
58
+ .avatar--magenta {
59
+ background-color: var(--color-marketing-magenta-background-4);
60
+ color: var(--color-marketing-magenta-foreground-4);
61
+ }
62
+
63
+ .avatar--32,
64
+ .avatar--32 > img {
65
+ font-size: @font-size-medium;
66
+ height: 32px;
67
+ line-height: 32px;
68
+ width: 32px;
69
+ }
70
+ .avatar--40,
71
+ .avatar--40 > img {
72
+ font-size: @font-size-large-1;
73
+ height: 40px;
74
+ line-height: 40px;
75
+ width: 40px;
76
+ }
77
+ .avatar--48,
78
+ .avatar--48 > img {
79
+ font-size: @font-size-large-2;
80
+ height: 48px;
81
+ line-height: 48px;
82
+ width: 48px;
83
+ }
84
+ .avatar--56,
85
+ .avatar--56 > img {
86
+ font-size: @font-size-giant-1;
87
+ height: 56px;
88
+ line-height: 56px;
89
+ width: 56px;
90
+ }
91
+ .avatar--64,
92
+ .avatar--64 > img {
93
+ font-size: @font-size-giant-2;
94
+ height: 64px;
95
+ line-height: 64px;
96
+ width: 64px;
97
+ }
98
+ .avatar--96,
99
+ .avatar--96 > img {
100
+ font-size: @font-size-giant-3;
101
+ height: 96px;
102
+ line-height: 96px;
103
+ width: 96px;
104
+ }
105
+ .avatar--128,
106
+ .avatar--128 > img {
107
+ font-size: @font-size-64;
108
+ height: 128px;
109
+ line-height: 128px;
110
+ width: 128px;
111
+ }
@@ -0,0 +1,265 @@
1
+ export default { title: "Avatar" };
2
+
3
+ export const base = () => /* HTML */ ` <div class="avatar">E</div> `;
4
+
5
+ export const variations = () => /* HTML */ `
6
+ <div class="avatar avatar--teal" role="img" aria-label="Signed-in as Zed">
7
+ Z
8
+ </div>
9
+ <div
10
+ class="avatar avatar--light-teal"
11
+ role="img"
12
+ aria-label="Signed-in as Awesome Jack"
13
+ >
14
+ A
15
+ </div>
16
+ <div class="avatar avatar--green" aria-label="Signed-in as Bob">B</div>
17
+ <div class="avatar avatar--lime" aria-label="Signed-in as Carol12345">
18
+ C
19
+ </div>
20
+ <div class="avatar avatar--yellow" aria-label="Signed-in as DogLover">
21
+ D
22
+ </div>
23
+ <div class="avatar avatar--orange" aria-label="Signed-in as FooBar">F</div>
24
+ <div class="avatar avatar--magenta" aria-label="Signed-in as Goolio">G</div>
25
+ `;
26
+
27
+ export const withImage = () => /* HTML */ `
28
+ <div class="avatar" role="img" aria-label="Signed-in as Doggy">
29
+ <img
30
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
31
+ alt="profile pic"
32
+ />
33
+ </div>
34
+ <div class="avatar avatar--128" role="img" aria-label="Signed-in as Doggy">
35
+ <img
36
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
37
+ alt="profile pic"
38
+ />
39
+ </div>
40
+ `;
41
+
42
+ export const signedOut = () => /* HTML */ `
43
+ <div class="avatar" role="img" aria-label="Signed-Out">
44
+ <svg class="icon" focusable="false" aria-hidden="true">
45
+ <use href="#icon-avatar-signed-out"></use>
46
+ </svg>
47
+ </div>
48
+ `;
49
+
50
+ export const sizes = () => /* HTML */ `
51
+ <div>
52
+ <div
53
+ class="avatar avatar--32"
54
+ role="img"
55
+ aria-label="Signed-in as Harry Potter"
56
+ >
57
+ H
58
+ </div>
59
+ <div
60
+ class="avatar avatar--40"
61
+ role="img"
62
+ aria-label="Signed-in as Igquana"
63
+ >
64
+ I
65
+ </div>
66
+ <div
67
+ class="avatar avatar--48"
68
+ role="img"
69
+ aria-label="Signed-in as Josh123"
70
+ >
71
+ J
72
+ </div>
73
+ <div
74
+ class="avatar avatar--56"
75
+ role="img"
76
+ aria-label="Signed-in as KoolGuy"
77
+ >
78
+ K
79
+ </div>
80
+ <div class="avatar avatar--64" role="img" aria-label="Signed-in as Leo">
81
+ L
82
+ </div>
83
+ <div class="avatar avatar--96" role="img" aria-label="Signed-in as Me">
84
+ M
85
+ </div>
86
+ <div
87
+ class="avatar avatar--128"
88
+ role="img"
89
+ aria-label="Signed-in as Noir"
90
+ >
91
+ N
92
+ </div>
93
+ </div>
94
+ `;
95
+
96
+ export const sizesProfilePic = () => /* HTML */ `
97
+ <div>
98
+ <div
99
+ class="avatar avatar--32"
100
+ role="img"
101
+ aria-label="Signed-in as Doggy"
102
+ >
103
+ <img
104
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
105
+ alt="profile pic"
106
+ />
107
+ </div>
108
+ <div
109
+ class="avatar avatar--40"
110
+ role="img"
111
+ aria-label="Signed-in as Doggy"
112
+ >
113
+ <img
114
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
115
+ alt="profile pic"
116
+ />
117
+ </div>
118
+ <div
119
+ class="avatar avatar--48"
120
+ role="img"
121
+ aria-label="Signed-in as Doggy"
122
+ >
123
+ <img
124
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
125
+ alt="profile pic"
126
+ />
127
+ </div>
128
+ <div
129
+ class="avatar avatar--56"
130
+ role="img"
131
+ aria-label="Signed-in as Doggy"
132
+ >
133
+ <img
134
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
135
+ alt="profile pic"
136
+ />
137
+ </div>
138
+ <div
139
+ class="avatar avatar--64"
140
+ role="img"
141
+ aria-label="Signed-in as Doggy"
142
+ >
143
+ <img
144
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
145
+ alt="profile pic"
146
+ />
147
+ </div>
148
+ <div
149
+ class="avatar avatar--96"
150
+ role="img"
151
+ aria-label="Signed-in as Doggy"
152
+ >
153
+ <img
154
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
155
+ alt="profile pic"
156
+ />
157
+ </div>
158
+ <div
159
+ class="avatar avatar--128"
160
+ role="img"
161
+ aria-label="Signed-in as Doggy"
162
+ >
163
+ <img
164
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
165
+ alt="profile pic"
166
+ />
167
+ </div>
168
+ </div>
169
+ `;
170
+
171
+ export const sizesIcon = () => /* HTML */ `
172
+ <div>
173
+ <div class="avatar avatar--32" role="img" aria-label="Signed-Out">
174
+ <svg class="icon" focusable="false" aria-hidden="true">
175
+ <use href="#icon-avatar-signed-out"></use>
176
+ </svg>
177
+ </div>
178
+ <div class="avatar avatar--40" role="img" aria-label="Signed-Out">
179
+ <svg class="icon" focusable="false" aria-hidden="true">
180
+ <use href="#icon-avatar-signed-out"></use>
181
+ </svg>
182
+ </div>
183
+ <div class="avatar avatar--48" role="img" aria-label="Signed-Out">
184
+ <svg class="icon" focusable="false" aria-hidden="true">
185
+ <use href="#icon-avatar-signed-out"></use>
186
+ </svg>
187
+ </div>
188
+ <div class="avatar avatar--56" role="img" aria-label="Signed-Out">
189
+ <svg class="icon" focusable="false" aria-hidden="true">
190
+ <use href="#icon-avatar-signed-out"></use>
191
+ </svg>
192
+ </div>
193
+ <div class="avatar avatar--64" role="img" aria-label="Signed-Out">
194
+ <svg class="icon" focusable="false" aria-hidden="true">
195
+ <use href="#icon-avatar-signed-out"></use>
196
+ </svg>
197
+ </div>
198
+ <div class="avatar avatar--96" role="img" aria-label="Signed-Out">
199
+ <svg class="icon" focusable="false" aria-hidden="true">
200
+ <use href="#icon-avatar-signed-out"></use>
201
+ </svg>
202
+ </div>
203
+ <div class="avatar avatar--128" role="img" aria-label="Signed-Out">
204
+ <svg class="icon" focusable="false" aria-hidden="true">
205
+ <use href="#icon-avatar-signed-out"></use>
206
+ </svg>
207
+ </div>
208
+ </div>
209
+ `;
210
+
211
+ export const combinations = () => /* HTML */ `
212
+ <div style="display: grid; grid-gap: 10px">
213
+ <div
214
+ class="avatar avatar--32"
215
+ role="img"
216
+ aria-label="Signed-in as Omega"
217
+ >
218
+ O
219
+ </div>
220
+ <div class="avatar avatar--40" role="img" aria-label="Signed-out">
221
+ <svg class="icon" focusable="false" aria-hidden="true">
222
+ <use href="#icon-avatar-signed-out"></use>
223
+ </svg>
224
+ </div>
225
+ <div
226
+ class="avatar avatar--48 avatar--green"
227
+ role="img"
228
+ aria-label="Signed-in as Queen"
229
+ >
230
+ Q
231
+ </div>
232
+ <div
233
+ class="avatar avatar--56"
234
+ role="img"
235
+ aria-label="Signed-in as Doggy"
236
+ >
237
+ <img
238
+ src="https://ir.ebaystatic.com/cr/v/c01/skin/docs/dog_profile.png"
239
+ alt="profile pic"
240
+ />
241
+ </div>
242
+ <div
243
+ class="avatar avatar--64"
244
+ role="img"
245
+ aria-label="Signed-in as Ryan"
246
+ >
247
+ R
248
+ </div>
249
+ <div
250
+ class="avatar avatar--96 avatar--magenta"
251
+ role="img"
252
+ aria-label="Signed-in as Sam"
253
+ >
254
+ S
255
+ </div>
256
+ <div
257
+ class="avatar avatar--128"
258
+ role="img"
259
+ aria-label="Signed-in as Turner"
260
+ >
261
+ T
262
+ </div>
263
+ <div></div>
264
+ </div>
265
+ `;
@@ -3,6 +3,7 @@
3
3
  @import "../global/global.less";
4
4
  @import "../utility/utility.less";
5
5
  @import "../alert-dialog/alert-dialog.less";
6
+ @import "../avatar/avatar.less";
6
7
  @import "../badge/badge.less";
7
8
  @import "../breadcrumbs/breadcrumbs.less";
8
9
  @import "../button/button.less";
@@ -44,6 +45,7 @@
44
45
  @import "../radio/radio.less";
45
46
  @import "../section-notice/section-notice.less";
46
47
  @import "../section-title/section-title.less";
48
+ @import "../segmented-buttons/segmented-buttons.less";
47
49
  @import "../select/select.less";
48
50
  @import "../snackbar-dialog/snackbar-dialog.less";
49
51
  @import "../split-button/split-button.less";
@@ -64,6 +64,8 @@ a.fake-btn--fluid {
64
64
  .btn__cell,
65
65
  .fake-btn__cell {
66
66
  .btn-cell-base();
67
+ .btn-cell-fixed-height();
68
+ .btn-cell-truncated();
67
69
 
68
70
  justify-content: center;
69
71
  }
@@ -10,7 +10,7 @@ export const formSlim = () =>
10
10
  export const iconAndText = () => `
11
11
  <button type="button" class="btn">
12
12
  <span class="btn__cell">
13
- <svg class="icon icon--settings-24" width="16" height="16"><use href="#icon-settings-24"></use></svg>
13
+ <svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
14
14
  <span>Button</span>
15
15
  </span>
16
16
  </button>
@@ -19,7 +19,7 @@ export const iconAndText = () => `
19
19
  export const disabled = () => `
20
20
  <button type="button" class="btn" disabled>
21
21
  <span class="btn__cell">
22
- <svg class="icon icon--settings-24" width="16" height="16"><use href="#icon-settings-24"></use></svg>
22
+ <svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
23
23
  <span>Button</span>
24
24
  </span>
25
25
  </button>
@@ -3,7 +3,7 @@ export default { title: "Button/Cascade" };
3
3
  export const color = () => `
4
4
  <button type="button" class="btn" style="color: red;">
5
5
  <span class="btn__cell">
6
- <svg class="icon icon--settings-24" width="16" height="16"><use href="#icon-settings-24"></use></svg>
6
+ <svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
7
7
  <span>Button</span>
8
8
  </span>
9
9
  </button>
@@ -13,7 +13,7 @@ export const fontSize = () => `
13
13
  <div style="font-size: 200%;">
14
14
  <button type="button" class="btn">
15
15
  <span class="btn__cell">
16
- <svg class="icon icon--settings-24" width="16" height="16"><use href="#icon-settings-24"></use></svg>
16
+ <svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
17
17
  <span>Button</span>
18
18
  </span>
19
19
  </button>
@@ -3,7 +3,7 @@ export default { title: "Button/Dimensions" };
3
3
  export const large = () => `
4
4
  <button type="button" class="btn btn--large">
5
5
  <span class="btn__cell">
6
- <svg class="icon icon--settings-24" width="16" height="16"><use href="#icon-settings-24"></use></svg>
6
+ <svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
7
7
  <span>Button</span>
8
8
  </span>
9
9
  </button>
@@ -6,7 +6,7 @@ export const textOnly = () =>
6
6
  export const iconAndText = () => `
7
7
  <a class="fake-btn" href="http://www.ebay.com">
8
8
  <span class="fake-btn__cell">
9
- <svg class="icon icon--settings-24" width="16" height="16"><use href="#icon-settings-24"></use></svg>
9
+ <svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
10
10
  <span>Fake Button</span>
11
11
  </span>
12
12
  </a>
@@ -15,7 +15,7 @@ export const iconAndText = () => `
15
15
  export const disabled = () => `
16
16
  <a class="fake-btn">
17
17
  <span class="fake-btn__cell">
18
- <svg class="icon icon--settings-24" width="16" height="16"><use href="#icon-settings-24"></use></svg>
18
+ <svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
19
19
  <span>Fake Button</span>
20
20
  </span>
21
21
  </a>