@ebay/skin 15.1.1 → 15.2.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 (63) hide show
  1. package/.percy.yml +1 -1
  2. package/_cdn/skin/v15.2.0/skin-default.min.css +6 -0
  3. package/_cdn/skin/v15.2.0/skin-full.min.css +6 -0
  4. package/_cdn/skin/v15.2.0/skin-headless.min.css +6 -0
  5. package/_cdn/skin/v15.2.0/skin-legacy.min.css +6 -0
  6. package/dist/breadcrumbs/breadcrumbs.css +49 -22
  7. package/dist/cta-button/cta-button.css +13 -1
  8. package/dist/global/global.css +2 -2
  9. package/dist/icon-button/icon-button.css +15 -2
  10. package/dist/link/link.css +7 -7
  11. package/dist/mixins/typography-mixins.less +1 -1
  12. package/dist/pagination/pagination.css +0 -1
  13. package/dist/panel-dialog/panel-dialog.css +4 -0
  14. package/dist/snackbar-dialog/snackbar-dialog.css +5 -0
  15. package/dist/tokens/evo-core.css +1 -1
  16. package/dist/typography/typography.css +1 -1
  17. package/package.json +16 -16
  18. package/src/less/breadcrumbs/breadcrumbs.less +86 -52
  19. package/src/less/breadcrumbs/stories/button-overflow.stories.js +138 -0
  20. package/src/less/breadcrumbs/stories/link-overflow.stories.js +145 -0
  21. package/src/less/cta-button/cta-button.less +12 -2
  22. package/src/less/cta-button/stories/dimensions.stories.js +23 -0
  23. package/src/less/global/global.less +2 -2
  24. package/src/less/icon-button/icon-button.less +18 -3
  25. package/src/less/link/link.less +3 -6
  26. package/src/less/mixins/private/button-mixins.less +1 -0
  27. package/src/less/mixins/public/typography-mixins.less +1 -1
  28. package/src/less/pagination/pagination.less +0 -1
  29. package/src/less/panel-dialog/panel-dialog.less +7 -1
  30. package/src/less/panel-dialog/stories/panel-dialog.stories.js +86 -0
  31. package/src/less/snackbar-dialog/snackbar-dialog.less +7 -0
  32. package/src/tokens/evo-core.css +1 -1
  33. package/.storybook-percy/209.584439d336fd0eefb84a.manager.bundle.js +0 -2
  34. package/.storybook-percy/209.584439d336fd0eefb84a.manager.bundle.js.LICENSE.txt +0 -97
  35. package/.storybook-percy/229.6d094e9f2f362ea5b26e.manager.bundle.js +0 -1
  36. package/.storybook-percy/295.7da06599fa9d266b688b.manager.bundle.js +0 -1
  37. package/.storybook-percy/51.abd9945baf009cbd1bce.manager.bundle.js +0 -2
  38. package/.storybook-percy/51.abd9945baf009cbd1bce.manager.bundle.js.LICENSE.txt +0 -8
  39. package/.storybook-percy/551.1d556f0f1b92b6c7eb00.manager.bundle.js +0 -1
  40. package/.storybook-percy/701.f399e7b2.iframe.bundle.js +0 -2
  41. package/.storybook-percy/701.f399e7b2.iframe.bundle.js.LICENSE.txt +0 -29
  42. package/.storybook-percy/774.e0479623.iframe.bundle.js +0 -2
  43. package/.storybook-percy/774.e0479623.iframe.bundle.js.LICENSE.txt +0 -16
  44. package/.storybook-percy/807.8d205f2e8a202498173e.manager.bundle.js +0 -2
  45. package/.storybook-percy/807.8d205f2e8a202498173e.manager.bundle.js.LICENSE.txt +0 -31
  46. package/.storybook-percy/897.86e8496e5647c51ee7cb.manager.bundle.js +0 -2
  47. package/.storybook-percy/897.86e8496e5647c51ee7cb.manager.bundle.js.LICENSE.txt +0 -12
  48. package/.storybook-percy/935.3db88e4082ddd65d75d0.manager.bundle.js +0 -1
  49. package/.storybook-percy/favicon.ico +0 -0
  50. package/.storybook-percy/iframe.html +0 -423
  51. package/.storybook-percy/index.html +0 -59
  52. package/.storybook-percy/main.266ca197388a4c026123.manager.bundle.js +0 -1
  53. package/.storybook-percy/main.73718cd6.iframe.bundle.js +0 -1
  54. package/.storybook-percy/project.json +0 -1
  55. package/.storybook-percy/runtime~main.1528902b.iframe.bundle.js +0 -1
  56. package/.storybook-percy/runtime~main.79f19946a278ccc26ffb.manager.bundle.js +0 -1
  57. package/_cdn/skin/v15.1.1/skin-default.min.css +0 -6
  58. package/_cdn/skin/v15.1.1/skin-full.min.css +0 -6
  59. package/_cdn/skin/v15.1.1/skin-headless.min.css +0 -6
  60. package/_cdn/skin/v15.1.1/skin-legacy.min.css +0 -6
  61. package/dist/svg/icon/icon-star-empty.svg +0 -5
  62. package/dist/svg/icon/icon-star-full.svg +0 -5
  63. package/dist/svg/icon/icon-star-half.svg +0 -9
@@ -1,18 +1,21 @@
1
- a.nav-link {
1
+ a.nav-link,
2
+ a.standalone-link {
2
3
  color: var(--nav-link-foreground-color, var(--color-foreground-primary));
3
4
  text-decoration: none;
4
5
  }
5
- a.nav-link:visited {
6
+ a.nav-link:visited,
7
+ a.standalone-link:visited {
6
8
  color: var(--nav-link-foreground-color, var(--color-foreground-primary));
7
9
  }
8
- a.nav-link:hover {
10
+ a.nav-link:hover,
11
+ a.standalone-link:hover {
9
12
  color: var(--nav-link-foreground-color-hover, var(--color-foreground-primary));
10
13
  text-decoration: underline;
11
14
  }
12
15
  button.fake-link {
13
16
  background-color: transparent;
14
17
  border: 0;
15
- color: var(--fake-link-foreground-color, var(--color-foreground-accent));
18
+ color: var(--fake-link-foreground-color, var(--color-foreground-primary));
16
19
  font-family: inherit;
17
20
  font-size: inherit;
18
21
  padding: 0;
@@ -21,6 +24,3 @@ button.fake-link {
21
24
  button.fake-link[disabled] {
22
25
  color: var(--fake-link-foreground-disabled-color, var(--color-foreground-disabled));
23
26
  }
24
- button.fake-link:hover:not(:disabled) {
25
- color: var(--color-state-accent-hover);
26
- }
@@ -76,7 +76,7 @@
76
76
 
77
77
  .typography-small() {
78
78
  font-size: @font-size-small;
79
- line-height: 18px;
79
+ line-height: 16px;
80
80
  }
81
81
 
82
82
  .typography-small-bold() {
@@ -21,7 +21,6 @@ ol.pagination__items {
21
21
  height: 44px;
22
22
  list-style-type: none;
23
23
  margin: 0;
24
- overflow: hidden;
25
24
  padding: 0;
26
25
  }
27
26
  ol.pagination__items li:not([hidden]) {
@@ -10,6 +10,8 @@
10
10
  will-change: background-color;
11
11
  z-index: 100000;
12
12
  flex-direction: column;
13
+ /* stylelint-disable-next-line declaration-block-no-duplicate-properties */
14
+ overflow-y: hidden;
13
15
  }
14
16
  .panel-dialog[role="dialog"]:not([hidden]) {
15
17
  display: flex;
@@ -61,6 +63,8 @@
61
63
  flex: 1 1 auto;
62
64
  margin: 16px;
63
65
  position: relative;
66
+ height: 1px;
67
+ overflow-y: auto;
64
68
  }
65
69
  .panel-dialog__main > :first-child {
66
70
  margin-top: 0;
@@ -49,11 +49,16 @@
49
49
  margin-top: 16px;
50
50
  }
51
51
  .snackbar-dialog__actions .fake-link {
52
+ color: var(--snackbar-dialog-foreground-color, var(--color-foreground-on-inverse));
52
53
  text-decoration: none;
53
54
  }
54
55
  .snackbar-dialog__actions .fake-link::first-letter {
55
56
  text-decoration: underline;
56
57
  }
58
+ .snackbar-dialog__actions button.fake-link:hover:not(:disabled) {
59
+ color: var(--snackbar-dialog-foreground-color, var(--color-foreground-on-inverse));
60
+ text-decoration: underline;
61
+ }
57
62
  @media (min-width: 601px) {
58
63
  .snackbar-dialog {
59
64
  bottom: 20px;
@@ -27,7 +27,7 @@
27
27
  --color-magenta-1: #fad8f0;
28
28
  --color-magenta-2: #f5a0d9;
29
29
  --color-magenta-3: #ea5fbc;
30
- --color-magenta-4: #82187c;
30
+ --color-magenta-4: #d11da4;
31
31
  --color-magenta-5: #a60d8a;
32
32
  --color-magenta-6: #82187c;
33
33
  --color-magenta-7: #500750;
@@ -33,7 +33,7 @@
33
33
  }
34
34
  .small-text {
35
35
  font-size: 0.75rem;
36
- line-height: 18px;
36
+ line-height: 16px;
37
37
  }
38
38
  .bold-text {
39
39
  font-weight: 700;
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": "15.1.1",
4
+ "version": "15.2.0",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",
7
7
  "maintainers": [
@@ -59,21 +59,21 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@babel/cli": "^7.18.10",
62
- "@babel/core": "^7.19.6",
63
- "@babel/preset-env": "^7.19.4",
64
- "@commitlint/cli": "^17.1.2",
65
- "@commitlint/config-conventional": "^17.1.0",
62
+ "@babel/core": "^7.20.2",
63
+ "@babel/preset-env": "^7.20.2",
64
+ "@commitlint/cli": "^17.2.0",
65
+ "@commitlint/config-conventional": "^17.2.0",
66
66
  "@ebay/browserslist-config": "^2.4.1",
67
- "@percy/cli": "^1.11.0",
67
+ "@percy/cli": "^1.14.0",
68
68
  "@percy/storybook": "^4.3.4",
69
- "@storybook/builder-webpack5": "^6.5.12",
70
- "@storybook/html": "^6.5.12",
71
- "@storybook/manager-webpack5": "^6.5.12",
72
- "babel-loader": "^8.2.5",
69
+ "@storybook/builder-webpack5": "^6.5.13",
70
+ "@storybook/html": "^6.5.13",
71
+ "@storybook/manager-webpack5": "^6.5.13",
72
+ "babel-loader": "^9.1.0",
73
73
  "browser-sync": "^2.27.10",
74
74
  "btoa": "^1",
75
75
  "cross-env": "^7",
76
- "eslint": "^8.25.0",
76
+ "eslint": "^8.27.0",
77
77
  "eslint-config-ebay": "^1",
78
78
  "eslint-config-prettier": "^8",
79
79
  "eslint-plugin-prettier": "^4",
@@ -82,7 +82,7 @@
82
82
  "gulp-clean-css": "^4",
83
83
  "gulp-less": "^5",
84
84
  "gulp-rename": "^2",
85
- "husky": "^8.0.1",
85
+ "husky": "^8.0.2",
86
86
  "jekyll": "^3.0.0-beta1",
87
87
  "jsdom": "^20.0.1",
88
88
  "less-loader": "^11.1.0",
@@ -121,18 +121,18 @@
121
121
  "postcss-loader": "^7.0.0",
122
122
  "prettier": "^2.7.1",
123
123
  "rimraf": "^3",
124
- "stylelint": "^14.14.0",
124
+ "stylelint": "^14.15.0",
125
125
  "stylelint-config-prettier": "^9",
126
126
  "stylelint-config-standard": "^29",
127
127
  "stylelint-no-unsupported-browser-features": "^6.0.1",
128
128
  "stylelint-order": "^5",
129
129
  "stylelint-prettier": "^2",
130
- "svgo": "^2.7.0",
131
- "webpack": "^5.74.0",
130
+ "svgo": "^3.0.1",
131
+ "webpack": "^5.75.0",
132
132
  "webpack-cli": "^4.10.0",
133
133
  "winston": "^3.8.2",
134
134
  "xmlserializer": "^0.6.1",
135
- "yargs": "^17.6.0"
135
+ "yargs": "^17.6.2"
136
136
  },
137
137
  "keywords": [
138
138
  "eBay",
@@ -2,80 +2,114 @@
2
2
  @import "../mixins/private/token-mixins.less";
3
3
 
4
4
  nav.breadcrumbs {
5
- .color-token(breadcrumbs-item-foreground-color, color-foreground-primary);
5
+ .color-token(breadcrumbs-item-foreground-color, color-foreground-secondary);
6
6
  font-size: @font-size-12;
7
7
  height: fit-content;
8
8
  margin: 8px 0;
9
9
  min-height: 16px;
10
- overflow-x: scroll;
10
+ overflow-x: scroll; // Deprecated in 15.2.0; kept it in to support deprecated implementations; @TODO remove in 16.0.0
11
11
  padding: 8px;
12
- scrollbar-width: none;
12
+ scrollbar-width: none; // Deprecated in 15.2.0; kept it in to support deprecated implementations; @TODO remove in 16.0.0
13
13
  white-space: nowrap;
14
+ }
14
15
 
15
- ul {
16
- display: inline;
17
- margin: 0;
18
- min-width: 100%;
19
- padding: 0;
20
- right: 0;
21
- }
16
+ nav.breadcrumbs > ul {
17
+ display: inline-block;
18
+ margin: 0;
19
+ min-width: 100%;
20
+ padding: 0;
21
+ right: 0;
22
+ }
22
23
 
23
- // On certain pages spacing in each container can vary in size even if content is the same.
24
- // Force content to flex makes it all have the same size
25
- li {
26
- align-items: center;
27
- display: inline-flex;
28
- }
24
+ // On certain pages spacing in each container can vary in size even if content is the same.
25
+ // Force content to flex makes it all have the same size
26
+ nav.breadcrumbs > ul > li {
27
+ align-items: center;
28
+ display: inline-flex;
29
+ vertical-align: middle;
30
+ }
29
31
 
30
- li svg {
31
- margin-left: 7px;
32
- margin-right: 7px;
33
- }
32
+ nav.breadcrumbs > ul > li[hidden] {
33
+ display: none;
34
+ }
34
35
 
35
- a {
36
- text-decoration: none;
37
- }
36
+ nav.breadcrumbs > ul > li svg {
37
+ margin-left: 7px;
38
+ margin-right: 7px;
39
+ }
38
40
 
39
- button {
40
- background: none;
41
- border: none;
42
- font-family: inherit;
43
- font-size: 1em;
44
- margin: 0;
45
- padding: 0;
46
- }
41
+ nav.breadcrumbs > ul > li > a {
42
+ text-decoration: none;
43
+ }
47
44
 
48
- a,
49
- button {
50
- color: inherit;
51
- outline-offset: 5px;
52
-
53
- &:focus,
54
- &:hover {
55
- .color-token(breadcrumbs-item-hover-foreground-color, color-foreground-accent);
56
- text-decoration: underline;
57
- }
58
-
59
- &[aria-current] {
60
- .color-token(breadcrumbs-item-current-foreground-color, color-foreground-secondary);
61
- text-decoration: none;
62
- }
63
- }
45
+ nav.breadcrumbs > ul > li > button {
46
+ background: none;
47
+ border: none;
48
+ font-family: inherit;
49
+ font-size: 1em;
50
+ margin: 0;
51
+ padding: 0;
52
+ }
64
53
 
65
- a:visited {
66
- color: inherit;
54
+ nav.breadcrumbs > ul > li > a,
55
+ nav.breadcrumbs > ul > li > button {
56
+ color: inherit;
57
+ max-width: 168px;
58
+ outline-offset: 5px;
59
+ overflow: hidden;
60
+ text-overflow: ellipsis;
61
+
62
+ &:focus,
63
+ &:hover {
64
+ text-decoration: underline;
67
65
  }
68
66
 
69
- a:focus:not(:focus-visible),
70
- button:focus:not(:focus-visible) {
71
- outline: none;
67
+ &[aria-current] {
68
+ .color-token(breadcrumbs-item-current-foreground-color, color-foreground-primary);
69
+ text-decoration: none;
72
70
  }
73
71
  }
74
72
 
73
+ nav.breadcrumbs > ul > li > a:focus:not(:focus-visible),
74
+ nav.breadcrumbs > ul > li > button:focus:not(:focus-visible) {
75
+ outline: none;
76
+ }
77
+
78
+ // Deprecated in 15.2.0; kept it in to support deprecated implementations; @TODO remove in 16.0.0
75
79
  nav.breadcrumbs::-webkit-scrollbar {
76
80
  display: none;
77
81
  }
78
82
 
83
+ // Introduced modifier in 15.2.0; supports new implementations; @TODO remove in 16.0.0 and remove modifier class from markup
84
+ nav.breadcrumbs.breadcrumb--overflow {
85
+ overflow-x: unset;
86
+ scrollbar-width: unset;
87
+ }
88
+
89
+ nav.breadcrumbs .fake-menu-button__button,
90
+ nav.breadcrumbs .menu-button__button {
91
+ background-color: var(--icon-button-background-color, var(--color-background-secondary));
92
+ height: @spacing-300;
93
+ min-height: @spacing-300;
94
+ min-width: @spacing-300;
95
+ outline-offset: 1px;
96
+ width: @spacing-300;
97
+ }
98
+
99
+ nav.breadcrumbs .fake-menu-button__button svg.icon,
100
+ nav.breadcrumbs .menu-button__button svg.icon {
101
+ .fill-token(breadcrumbs-overflow-foreground-color, color-foreground-secondary);
102
+ }
103
+
104
+ nav.breadcrumbs .fake-menu-button__menu,
105
+ nav.breadcrumbs .menu-button__menu {
106
+ font-size: @font-size-14;
107
+ }
108
+
109
+ nav.breadcrumbs svg.icon--overflow-small {
110
+ transform: rotate(90deg);
111
+ }
112
+
79
113
  @media (min-width: 601px) {
80
114
  nav.breadcrumbs {
81
115
  margin: 16px 0;
@@ -0,0 +1,138 @@
1
+ export default { title: 'Breadcrumbs/Buttons/Overflow' };
2
+
3
+ export const minimum = () => `
4
+ <nav aria-labelledby="breadcrumbs-heading" class="breadcrumbs breadcrumb--overflow" role="navigation">
5
+ <h2 id="breadcrumbs-heading" class="clipped">You are here</h2>
6
+ <ul>
7
+ <li>
8
+ <button>ebay</button>
9
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
10
+ <use href="#icon-breadcrumb"></use>
11
+ </svg>
12
+ </li>
13
+ <li>
14
+ <span class="fake-menu-button">
15
+ <button class="fake-menu-button__button icon-btn" aria-expanded="false" aria-haspopup="true" aria-label="eBay Menu" type="button">
16
+ <svg aria-hidden="true" class="icon icon--overflow-small" focusable="false">
17
+ <use href="#icon-overflow-small"></use>
18
+ </svg>
19
+ </button>
20
+
21
+ <ul class="fake-menu-button__menu">
22
+ <li>
23
+ <a class="fake-menu-button__item" href="https://www.ebay.com/rpp/cell-phone-pda">Cell Phones, Smart Watches &amp; Accessories</a>
24
+ </li>
25
+ <li>
26
+ <a class="fake-menu-button__item" href="https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905">Smart Watch Accessories</a>
27
+ </li>
28
+ <li>
29
+ <a class="fake-menu-button__item" href="#">Smart Watch Bands</a>
30
+ </li>
31
+ </ul>
32
+ </span>
33
+
34
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
35
+ <use href="#icon-breadcrumb"></use>
36
+ </svg>
37
+ </li>
38
+ <li>
39
+ <button aria-current="location">Current Band</button>
40
+ </li>
41
+ </ul>
42
+ </nav>
43
+ `;
44
+
45
+ export const collapsed = () => `
46
+ <nav aria-labelledby="breadcrumbs-heading" class="breadcrumbs breadcrumb--overflow" role="navigation">
47
+ <h2 id="breadcrumbs-heading" class="clipped">You are here</h2>
48
+ <ul>
49
+ <li>
50
+ <button>ebay</button>
51
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
52
+ <use href="#icon-breadcrumb"></use>
53
+ </svg>
54
+ </li>
55
+ <li>
56
+ <span class="fake-menu-button">
57
+ <button class="fake-menu-button__button icon-btn" aria-expanded="false" aria-haspopup="true" aria-label="eBay Menu" type="button">
58
+ <svg aria-hidden="true" class="icon icon--overflow-small" focusable="false">
59
+ <use href="#icon-overflow-small"></use>
60
+ </svg>
61
+ </button>
62
+
63
+ <ul class="fake-menu-button__menu">
64
+ <li>
65
+ <a class="fake-menu-button__item" href="https://www.ebay.com/rpp/cell-phone-pda">Cell Phones, Smart Watches &amp; Accessories</a>
66
+ </li>
67
+ <li>
68
+ <a class="fake-menu-button__item" href="https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905">Smart Watch Accessories</a>
69
+ </li>
70
+ <li>
71
+ <a class="fake-menu-button__item" href="#">Smart Watch Bands</a>
72
+ </li>
73
+ </ul>
74
+ </span>
75
+
76
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
77
+ <use href="#icon-breadcrumb"></use>
78
+ </svg>
79
+ </li>
80
+ <li>
81
+ <button>Smart Watch Band Long Band Text Type 2</button>
82
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
83
+ <use href="#icon-breadcrumb"></use>
84
+ </svg>
85
+ </li>
86
+ <li>
87
+ <button aria-current="location">Current Band</button>
88
+ </li>
89
+ </ul>
90
+ </nav>
91
+ `;
92
+
93
+ export const expanded = () => `
94
+ <nav aria-labelledby="breadcrumbs-heading" class="breadcrumbs breadcrumb--overflow" role="navigation">
95
+ <h2 id="breadcrumbs-heading" class="clipped">You are here</h2>
96
+ <ul>
97
+ <li>
98
+ <button>ebay</button>
99
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
100
+ <use href="#icon-breadcrumb"></use>
101
+ </svg>
102
+ </li>
103
+ <li>
104
+ <span class="fake-menu-button">
105
+ <button class="fake-menu-button__button icon-btn" aria-expanded="true" aria-haspopup="true" aria-label="eBay Menu" type="button">
106
+ <svg aria-hidden="true" class="icon icon--overflow-small" focusable="false">
107
+ <use href="#icon-overflow-small"></use>
108
+ </svg>
109
+ </button>
110
+ <ul class="fake-menu-button__menu">
111
+ <li>
112
+ <a class="fake-menu-button__item" href="https://www.ebay.com/rpp/cell-phone-pda">Cell Phones, Smart Watches &amp; Accessories</a>
113
+ </li>
114
+ <li>
115
+ <a class="fake-menu-button__item" href="https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905">Smart Watch Accessories</a>
116
+ </li>
117
+ <li>
118
+ <a class="fake-menu-button__item" href="#">Smart Watch Bands</a>
119
+ </li>
120
+ </ul>
121
+ </span>
122
+
123
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
124
+ <use href="#icon-breadcrumb"></use>
125
+ </svg>
126
+ </li>
127
+ <li>
128
+ <button>Smart Watch Band Long Band Text Type 2</button>
129
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
130
+ <use href="#icon-breadcrumb"></use>
131
+ </svg>
132
+ </li>
133
+ <li>
134
+ <button aria-current="location">Current Band</button>
135
+ </li>
136
+ </ul>
137
+ </nav>
138
+ `;
@@ -0,0 +1,145 @@
1
+ export default { title: 'Breadcrumbs/Links/Overflow' };
2
+
3
+ export const minimum = () => `
4
+ <nav aria-labelledby="breadcrumbs-heading" class="breadcrumbs breadcrumb--overflow" role="navigation">
5
+ <h2 id="breadcrumbs-heading" class="clipped">You are here</h2>
6
+ <ul>
7
+ <li>
8
+ <a href="https://www.ebay.com/">ebay</a>
9
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
10
+ <use href="#icon-breadcrumb"></use>
11
+ </svg>
12
+ </li>
13
+ <li>
14
+ <span class="fake-menu-button">
15
+ <button class="fake-menu-button__button icon-btn" aria-expanded="false" aria-haspopup="true" aria-label="eBay Menu" type="button">
16
+ <svg aria-hidden="true" class="icon icon--overflow-small" focusable="false">
17
+ <use href="#icon-overflow-small"></use>
18
+ </svg>
19
+ </button>
20
+
21
+ <ul class="fake-menu-button__menu">
22
+
23
+ <div role="menu" class="fake-menu-button__items">
24
+ <div class="fake-menu-button__item" role="menuitem" tabindex="-1">
25
+ <a href="https://www.ebay.com/rpp/cell-phone-pda">Cell Phones, Smart Watches &amp; Accessories</a>
26
+ </div>
27
+ <div class="fake-menu-button__item" role="menuitem" tabindex="-1">
28
+ <a href="https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905">Smart Watch Accessories</a>
29
+ </div>
30
+ <div class="fake-menu-button__item" role="menuitem" tabindex="-1">
31
+ <a href="https://www.ebay.com/b/Smart-Watch-Bands/182068/bn_16565906">Smart Watch Bands</a>
32
+ </div>
33
+ </div>
34
+ </ul>
35
+ </span>
36
+
37
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
38
+ <use href="#icon-breadcrumb"></use>
39
+ </svg>
40
+ </li>
41
+ <li>
42
+ <a aria-current="location">Current Band</a>
43
+ </li>
44
+ </ul>
45
+ </nav>
46
+ `;
47
+
48
+ export const collapsed = () => `
49
+ <nav aria-labelledby="breadcrumbs-heading" class="breadcrumbs breadcrumb--overflow" role="navigation">
50
+ <h2 id="breadcrumbs-heading" class="clipped">You are here</h2>
51
+ <ul>
52
+ <li>
53
+ <a href="https://www.ebay.com/">ebay</a>
54
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
55
+ <use href="#icon-breadcrumb"></use>
56
+ </svg>
57
+ </li>
58
+ <li>
59
+ <span class="fake-menu-button">
60
+ <button class="fake-menu-button__button icon-btn" aria-expanded="false" aria-haspopup="true" aria-label="eBay Menu" type="button">
61
+ <svg aria-hidden="true" class="icon icon--overflow-small" focusable="false">
62
+ <use href="#icon-overflow-small"></use>
63
+ </svg>
64
+ </button>
65
+
66
+ <ul class="fake-menu-button__menu">
67
+
68
+ <div role="menu" class="fake-menu-button__items">
69
+ <div class="fake-menu-button__item" role="menuitem" tabindex="-1">
70
+ <a href="https://www.ebay.com/rpp/cell-phone-pda">Cell Phones, Smart Watches &amp; Accessories</a>
71
+ </div>
72
+ <div class="fake-menu-button__item" role="menuitem" tabindex="-1">
73
+ <a href="https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905">Smart Watch Accessories</a>
74
+ </div>
75
+ <div class="fake-menu-button__item" role="menuitem" tabindex="-1">
76
+ <a href="https://www.ebay.com/b/Smart-Watch-Bands/182068/bn_16565906">Smart Watch Bands</a>
77
+ </div>
78
+ </div>
79
+ </ul>
80
+ </span>
81
+
82
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
83
+ <use href="#icon-breadcrumb"></use>
84
+ </svg>
85
+ </li>
86
+ <li>
87
+ <a href="https://www.ebay.com/b/Smart-Watch-Bands/182068/bn_16565906/Some-Random-Watch-Pand2">Smart Watch Band Long Band Text Type 2</a>
88
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
89
+ <use href="#icon-breadcrumb"></use>
90
+ </svg>
91
+ </li>
92
+ <li>
93
+ <a aria-current="location">Current Band</a>
94
+ </li>
95
+ </ul>
96
+ </nav>
97
+ `;
98
+
99
+ export const expanded = () => `
100
+ <nav aria-labelledby="breadcrumbs-heading" class="breadcrumbs breadcrumb--overflow" role="navigation">
101
+ <h2 id="breadcrumbs-heading" class="clipped">You are here</h2>
102
+ <ul>
103
+ <li>
104
+ <a href="https://www.ebay.com/">ebay</a>
105
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
106
+ <use href="#icon-breadcrumb"></use>
107
+ </svg>
108
+ </li>
109
+ <li>
110
+ <span class="fake-menu-button">
111
+ <button class="fake-menu-button__button icon-btn" aria-expanded="true" aria-haspopup="true" aria-label="eBay Menu" type="button">
112
+ <svg aria-hidden="true" class="icon icon--overflow-small" focusable="false">
113
+ <use href="#icon-overflow-small"></use>
114
+ </svg>
115
+ </button>
116
+
117
+ <ul class="fake-menu-button__menu">
118
+ <li>
119
+ <a class="fake-menu-button__item" href="https://www.ebay.com/rpp/cell-phone-pda">Cell Phones, Smart Watches &amp; Accessories</a>
120
+ </li>
121
+ <li>
122
+ <a class="fake-menu-button__item" href="https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905">Smart Watch Accessories</a>
123
+ </li>
124
+ <li>
125
+ <a class="fake-menu-button__item" href="https://www.ebay.com/b/Smart-Watch-Bands/182068/bn_16565906">Smart Watch Bands</a>
126
+ </li>
127
+ </ul>
128
+ </span>
129
+
130
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
131
+ <use href="#icon-breadcrumb"></use>
132
+ </svg>
133
+ </li>
134
+ <li>
135
+ <a href="https://www.ebay.com/b/Smart-Watch-Bands/182068/bn_16565906/Some-Random-Watch-Pand1">Smart Watch Band Long Band Text Type 2</a>
136
+ <svg class="icon icon--breadcrumb" focusable="false" height="8" width="8" aria-hidden="true">
137
+ <use href="#icon-breadcrumb"></use>
138
+ </svg>
139
+ </li>
140
+ <li>
141
+ <a aria-current="location">Current Band</a>
142
+ </li>
143
+ </ul>
144
+ </nav>
145
+ `;
@@ -58,20 +58,30 @@ span.cta-btn__cell--fixed-height svg.icon {
58
58
  width: 1rem;
59
59
  }
60
60
 
61
+ a.cta-btn--truncated {
62
+ .btn-truncate();
63
+ }
64
+
61
65
  a.cta-btn--large {
62
- border-radius: calc(@button-height-large / 2);
66
+ border-radius: @button-border-radius-large;
67
+ display: inline-flex;
63
68
  font-size: @font-size-16;
64
69
  min-height: @button-height-large;
65
70
  }
66
71
 
72
+ // DEPRECATED remove cta-btn--large-truncated in next major version
67
73
  a.cta-btn--large-truncated {
68
74
  .btn-truncate();
69
-
75
+ border-radius: @button-border-radius-large;
76
+ display: inline-flex;
70
77
  font-size: @font-size-16;
71
78
  height: @button-height-large;
72
79
  }
73
80
 
81
+ // DEPRECATED remove cta-btn--large-fixed-height in next major version
74
82
  a.cta-btn--large-fixed-height {
83
+ border-radius: @button-border-radius-large;
84
+ display: inline-flex;
75
85
  font-size: @font-size-16;
76
86
  height: @button-height-large;
77
87
  }