@ebay/skin 14.0.4 → 14.1.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.
- package/.storybook/preview-head.html +374 -55
- package/_cdn/skin/v14.1.0-0/skin-default.min.css +6 -0
- package/_cdn/skin/v14.1.0-0/skin-full.min.css +6 -0
- package/_cdn/skin/v14.1.0-0/skin-headless.min.css +6 -0
- package/_cdn/skin/v14.1.0-0/skin-legacy.min.css +6 -0
- package/dist/drawer-dialog/drawer-dialog.css +2 -2
- package/dist/floating-label/floating-label.css +7 -8
- package/dist/fullscreen-dialog/fullscreen-dialog.css +17 -20
- package/dist/icon/direction.css +4 -0
- package/dist/icon/general.css +102 -2
- package/dist/icon/icon.css +169 -13
- package/dist/icon/interface.css +34 -2
- package/dist/icon/internal.css +4 -0
- package/dist/icon/large.css +6 -2
- package/dist/icon/photo.css +15 -3
- package/dist/icon/shipping.css +2 -2
- package/dist/icon/user.css +2 -2
- package/dist/lightbox-dialog/lightbox-dialog.css +8 -11
- package/dist/link/link.css +1 -1
- package/dist/page-notice/page-notice.css +35 -14
- package/dist/panel-dialog/panel-dialog.css +8 -21
- package/dist/progress-stepper/progress-stepper.css +21 -6
- package/dist/select/select.css +10 -10
- package/dist/svg/direction.svg +5 -0
- package/dist/svg/general.svg +181 -8
- package/dist/svg/icons.svg +374 -55
- package/dist/svg/interface.svg +75 -10
- package/dist/svg/internal.svg +160 -77
- package/dist/svg/large.svg +14 -2
- package/dist/svg/photo.svg +104 -35
- package/dist/svg/shipping.svg +79 -48
- package/dist/svg/social.svg +2 -13
- package/dist/svg/user.svg +45 -25
- package/dist/textbox/textbox.css +4 -4
- package/package.json +1 -1
- package/src/less/floating-label/floating-label.less +8 -12
- package/src/less/floating-label/stories/floating-label.stories.js +41 -0
- package/src/less/fullscreen-dialog/fullscreen-dialog.less +14 -14
- package/src/less/fullscreen-dialog/stories/fullscreen-dialog.stories.js +33 -11
- package/src/less/gh/gh-mixins.less +51 -55
- package/src/less/icon/generated/direction.less +4 -0
- package/src/less/icon/generated/general.less +102 -2
- package/src/less/icon/generated/interface.less +34 -2
- package/src/less/icon/generated/internal.less +4 -0
- package/src/less/icon/generated/large.less +6 -2
- package/src/less/icon/generated/photo.less +15 -3
- package/src/less/icon/generated/shipping.less +2 -2
- package/src/less/icon/generated/user.less +2 -2
- package/src/less/lightbox-dialog/lightbox-dialog.less +7 -13
- package/src/less/lightbox-dialog/stories/lightbox-dialog.stories.js +38 -10
- package/src/less/link/link.less +1 -1
- package/src/less/mixins/private/dialog-mixins.less +13 -10
- package/src/less/page-notice/page-notice.less +42 -14
- package/src/less/page-notice/stories/page-notice.stories.js +43 -0
- package/src/less/panel-dialog/panel-dialog.less +8 -18
- package/src/less/panel-dialog/stories/panel-dialog.stories.js +32 -10
- package/src/less/progress-stepper/progress-stepper.less +24 -6
- package/src/less/progress-stepper/stories/progress-stepper.stories.js +108 -17
- package/src/less/select/select.less +11 -11
- package/src/less/textbox/textbox.less +5 -5
- package/src/svg/direction.svg +5 -0
- package/src/svg/general.svg +181 -8
- package/src/svg/icons.svg +374 -55
- package/src/svg/interface.svg +75 -10
- package/src/svg/internal.svg +160 -77
- package/src/svg/large.svg +14 -2
- package/src/svg/photo.svg +104 -35
- package/src/svg/shipping.svg +79 -48
- package/src/svg/social.svg +2 -13
- package/src/svg/user.svg +45 -25
- package/svg.svg +374 -55
- package/_cdn/skin/v14.0.4/skin-default.min.css +0 -6
- package/_cdn/skin/v14.0.4/skin-full.min.css +0 -6
- package/_cdn/skin/v14.0.4/skin-headless.min.css +0 -6
- package/_cdn/skin/v14.0.4/skin-legacy.min.css +0 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import "../public/utility-mixins.less";
|
|
2
2
|
|
|
3
|
+
// Deprecated, remove the gutter sizes next major
|
|
3
4
|
@dialog-small-gutter-size: 16px;
|
|
4
5
|
@dialog-large-gutter-size: 24px;
|
|
5
6
|
@dialog-scrim-color-hide: rgba(17, 24, 32, 0);
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
display: flex;
|
|
53
54
|
// Fix for Safari not honoring min-height
|
|
54
55
|
flex-shrink: 0;
|
|
55
|
-
margin: @
|
|
56
|
+
margin: @spacing-200 @spacing-200 0;
|
|
56
57
|
position: relative;
|
|
57
58
|
|
|
58
59
|
h1,
|
|
@@ -63,18 +64,18 @@
|
|
|
63
64
|
h6 {
|
|
64
65
|
align-self: center;
|
|
65
66
|
flex: 1 1 auto;
|
|
66
|
-
margin: 0
|
|
67
|
+
margin: 0;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
& > :last-child:not(:only-child) {
|
|
70
|
-
margin-left:
|
|
71
|
+
margin-left: @spacing-200;
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.dialog-body-content() {
|
|
75
76
|
box-sizing: border-box;
|
|
76
77
|
flex: 1 1 auto;
|
|
77
|
-
margin: @
|
|
78
|
+
margin: @spacing-200;
|
|
78
79
|
position: relative;
|
|
79
80
|
|
|
80
81
|
& > :first-child {
|
|
@@ -90,29 +91,31 @@
|
|
|
90
91
|
display: flex;
|
|
91
92
|
flex-direction: column;
|
|
92
93
|
justify-content: center;
|
|
93
|
-
padding:
|
|
94
|
+
padding: @spacing-200;
|
|
94
95
|
position: relative;
|
|
95
96
|
|
|
96
97
|
& > :not(:first-child) {
|
|
97
|
-
margin-top:
|
|
98
|
+
margin-top: @spacing-200;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
|
|
102
|
+
// Unused, small and large are the same now
|
|
101
103
|
.dialog-header-content-large() {
|
|
102
|
-
margin:
|
|
104
|
+
margin: @spacing-200 @spacing-200 0;
|
|
103
105
|
}
|
|
104
106
|
|
|
107
|
+
// Unused, small and large are the same now
|
|
105
108
|
.dialog-body-content-large() {
|
|
106
|
-
margin:
|
|
109
|
+
margin: @spacing-200;
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
.dialog-footer-content-large() {
|
|
110
113
|
flex-direction: row;
|
|
111
114
|
justify-content: flex-end;
|
|
112
|
-
padding: @
|
|
115
|
+
padding: 0 @spacing-200 @spacing-200;
|
|
113
116
|
|
|
114
117
|
& > :not(:first-child) {
|
|
115
|
-
margin-left: @
|
|
118
|
+
margin-left: @spacing-100;
|
|
116
119
|
margin-top: initial;
|
|
117
120
|
}
|
|
118
121
|
}
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
div[role="region"].page-notice,
|
|
16
16
|
section.page-notice {
|
|
17
|
-
display:
|
|
17
|
+
display: grid;
|
|
18
|
+
// provide explicit structure up front, create loose markup model
|
|
19
|
+
grid-template-columns: 40px auto auto auto;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
span[role="region"].page-notice {
|
|
21
|
-
display:
|
|
23
|
+
display: grid;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.page-notice__title {
|
|
@@ -38,6 +40,15 @@ span[role="region"].page-notice {
|
|
|
38
40
|
font-weight: bold;
|
|
39
41
|
}
|
|
40
42
|
|
|
43
|
+
// force links with text having more than one word to remain on same line
|
|
44
|
+
.page-notice__cta a {
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.page-notice__dismiss {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
41
52
|
.page-notice a:hover {
|
|
42
53
|
.color-token(page-notice-color, color-foreground-on-inverse);
|
|
43
54
|
}
|
|
@@ -84,24 +95,20 @@ span[role="region"].page-notice {
|
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
.page-notice__header {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
justify-content: center;
|
|
98
|
+
grid-column: 1;
|
|
99
|
+
grid-row: 1;
|
|
90
100
|
padding-right: @spacing-200;
|
|
91
101
|
}
|
|
92
102
|
|
|
93
|
-
.page-notice__main
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
justify-content: center;
|
|
103
|
+
.page-notice__main {
|
|
104
|
+
grid-column: 2;
|
|
105
|
+
grid-row: 1;
|
|
106
|
+
padding-right: @spacing-200;
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
.page-notice__footer {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
padding-left: @spacing-200;
|
|
104
|
-
width: auto;
|
|
110
|
+
grid-column: 4;
|
|
111
|
+
grid-row: 1;
|
|
105
112
|
}
|
|
106
113
|
|
|
107
114
|
/* support legacy 6.5 notice with heading + paragaphs */
|
|
@@ -110,6 +117,14 @@ span[role="region"].page-notice {
|
|
|
110
117
|
margin: @spacing-50 0 0;
|
|
111
118
|
}
|
|
112
119
|
|
|
120
|
+
p.page-notice__cta {
|
|
121
|
+
grid-column: 2;
|
|
122
|
+
grid-row: 2;
|
|
123
|
+
justify-self: start;
|
|
124
|
+
margin-right: @spacing-200;
|
|
125
|
+
margin-top: @spacing-200;
|
|
126
|
+
}
|
|
127
|
+
|
|
113
128
|
@media (min-width: 601px) {
|
|
114
129
|
section.page-notice,
|
|
115
130
|
div[role="region"].page-notice {
|
|
@@ -117,7 +132,20 @@ span[role="region"].page-notice {
|
|
|
117
132
|
margin: @spacing-200 0;
|
|
118
133
|
}
|
|
119
134
|
|
|
135
|
+
.page-notice__title {
|
|
136
|
+
margin-top: 4px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
p.page-notice__cta {
|
|
140
|
+
grid-column: 4;
|
|
141
|
+
grid-row: 1;
|
|
142
|
+
justify-self: end;
|
|
143
|
+
margin-top: 0;
|
|
144
|
+
padding-right: @spacing-200;
|
|
145
|
+
}
|
|
146
|
+
|
|
120
147
|
.page-notice__footer {
|
|
148
|
+
justify-self: end;
|
|
121
149
|
margin-top: 0;
|
|
122
150
|
}
|
|
123
151
|
}
|
|
@@ -126,6 +126,49 @@ export const informationWithLink = () => `
|
|
|
126
126
|
</section>
|
|
127
127
|
`;
|
|
128
128
|
|
|
129
|
+
export const dismissableWithTitle = () => `
|
|
130
|
+
<section class="page-notice page-notice--information" role="region" aria-label="Information">
|
|
131
|
+
<div class="page-notice__header">
|
|
132
|
+
<svg class="icon icon--information-filled" focusable="false" height="24" width="24" role="img" aria-label="Information">
|
|
133
|
+
<use xlink:href="#icon-information-filled"></use>
|
|
134
|
+
</svg>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="page-notice__main">
|
|
137
|
+
<h3 class="page-notice__title">Notice Title</h3>
|
|
138
|
+
<p>Opt into eBay payments before Jan 12th to pay no selling fees.</p>
|
|
139
|
+
</div>
|
|
140
|
+
<p class="page-notice__cta"><a href="https://www.ebay.com">Opt in</a></p>
|
|
141
|
+
<div class="page-notice__footer">
|
|
142
|
+
<button aria-label="Dismiss notification" class="fake-link page-notice__dismiss">
|
|
143
|
+
<svg aria-hidden="true" class="icon icon--close-small" focusable="false" height="10" width="10">
|
|
144
|
+
<use xlink:href="#icon-close"></use>
|
|
145
|
+
</svg>
|
|
146
|
+
</a>
|
|
147
|
+
</div>
|
|
148
|
+
</section>
|
|
149
|
+
`;
|
|
150
|
+
|
|
151
|
+
export const dismissableWithoutTitle = () => `
|
|
152
|
+
<section class="page-notice page-notice--information" role="region" aria-label="Information">
|
|
153
|
+
<div class="page-notice__header">
|
|
154
|
+
<svg class="icon icon--information-filled" focusable="false" height="24" width="24" role="img" aria-label="Information">
|
|
155
|
+
<use xlink:href="#icon-information-filled"></use>
|
|
156
|
+
</svg>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="page-notice__main">
|
|
159
|
+
<h3 class="page-notice__title">Opt into eBay payments before Jan 12th to pay no selling fees.</h3>
|
|
160
|
+
</div>
|
|
161
|
+
<p class="page-notice__cta"><a href="https://www.ebay.com">Opt in</a></p>
|
|
162
|
+
<div class="page-notice__footer">
|
|
163
|
+
<button aria-label="Dismiss notification" class="fake-link page-notice__dismiss">
|
|
164
|
+
<svg aria-hidden="true" class="icon icon--close-small" focusable="false" height="10" width="10">
|
|
165
|
+
<use xlink:href="#icon-close"></use>
|
|
166
|
+
</svg>
|
|
167
|
+
</a>
|
|
168
|
+
</div>
|
|
169
|
+
</section>
|
|
170
|
+
`;
|
|
171
|
+
|
|
129
172
|
export const formErrors = () => `
|
|
130
173
|
<section class="page-notice page-notice--attention" role="region" aria-label="Attention">
|
|
131
174
|
<div class="page-notice__header">
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
border-right: 1px solid rgba(153, 153, 153, 0.18);
|
|
15
15
|
-webkit-overflow-scrolling: touch;
|
|
16
16
|
overflow-y: auto;
|
|
17
|
-
width:
|
|
17
|
+
width: 100%;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.panel-dialog__window--end {
|
|
@@ -35,18 +35,20 @@
|
|
|
35
35
|
.dialog-body-content();
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
// deprecated & undocumented, but still used by teams
|
|
39
38
|
.panel-dialog__footer {
|
|
40
39
|
.dialog-footer-content();
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
// inherits from .icon-btn
|
|
44
|
-
|
|
43
|
+
// Might need to see to add a small icon btn
|
|
44
|
+
button.icon-btn.panel-dialog__close {
|
|
45
45
|
align-self: center;
|
|
46
46
|
border: 0;
|
|
47
|
-
|
|
47
|
+
height: 32px;
|
|
48
|
+
min-width: 32px;
|
|
48
49
|
padding: 0;
|
|
49
50
|
position: relative;
|
|
51
|
+
width: 32px;
|
|
50
52
|
z-index: 1;
|
|
51
53
|
}
|
|
52
54
|
|
|
@@ -56,6 +58,7 @@ button.panel-dialog__close {
|
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
|
|
61
|
+
// Deprecated
|
|
59
62
|
.panel-dialog__title--center {
|
|
60
63
|
text-align: center;
|
|
61
64
|
}
|
|
@@ -126,19 +129,6 @@ button.panel-dialog__close {
|
|
|
126
129
|
|
|
127
130
|
@media (min-width: 601px) {
|
|
128
131
|
.panel-dialog__window {
|
|
129
|
-
width:
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.panel-dialog__header {
|
|
133
|
-
.dialog-header-content-large();
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.panel-dialog__main {
|
|
137
|
-
.dialog-body-content-large();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// deprecated & undocumented, but still used by teams
|
|
141
|
-
.panel-dialog__footer {
|
|
142
|
-
.dialog-footer-content-large();
|
|
132
|
+
width: 384px;
|
|
143
133
|
}
|
|
144
134
|
}
|
|
@@ -6,8 +6,8 @@ export const panelStart = () => `
|
|
|
6
6
|
<div class="panel-dialog__header">
|
|
7
7
|
<h2 id="panel-title">Left Panel</h2>
|
|
8
8
|
<button class="icon-btn panel-dialog__close" type="button" aria-label="Close Dialog">
|
|
9
|
-
<svg class="icon icon--close" aria-hidden="true">
|
|
10
|
-
<use xlink:href="#icon-close"></use>
|
|
9
|
+
<svg class="icon icon--close-small" aria-hidden="true">
|
|
10
|
+
<use xlink:href="#icon-close-small"></use>
|
|
11
11
|
</svg>
|
|
12
12
|
</button>
|
|
13
13
|
</div>
|
|
@@ -30,8 +30,8 @@ export const RTL = () => `
|
|
|
30
30
|
<div class="panel-dialog__header">
|
|
31
31
|
<h2 id="panel-title">Left Panel</h2>
|
|
32
32
|
<button class="icon-btn panel-dialog__close" type="button" aria-label="Close Dialog">
|
|
33
|
-
<svg class="icon icon--close" aria-hidden="true">
|
|
34
|
-
<use xlink:href="#icon-close"></use>
|
|
33
|
+
<svg class="icon icon--close-small" aria-hidden="true">
|
|
34
|
+
<use xlink:href="#icon-close-small"></use>
|
|
35
35
|
</svg>
|
|
36
36
|
</button>
|
|
37
37
|
</div>
|
|
@@ -52,12 +52,12 @@ export const panelEnd = () => `
|
|
|
52
52
|
<div aria-labelledby="panel-title" aria-modal="true" class="panel-dialog" role="dialog">
|
|
53
53
|
<div class="panel-dialog__window panel-dialog__window--end">
|
|
54
54
|
<div class="panel-dialog__header">
|
|
55
|
+
<h2 id="panel-title">Right Panel</h2>
|
|
55
56
|
<button class="icon-btn panel-dialog__close" type="button" aria-label="Close Dialog">
|
|
56
|
-
<svg class="icon icon--close" aria-hidden="true">
|
|
57
|
-
<use xlink:href="#icon-close"></use>
|
|
57
|
+
<svg class="icon icon--close-small" aria-hidden="true">
|
|
58
|
+
<use xlink:href="#icon-close-small"></use>
|
|
58
59
|
</svg>
|
|
59
60
|
</button>
|
|
60
|
-
<h2 id="panel-title">Right Panel</h2>
|
|
61
61
|
</div>
|
|
62
62
|
<div class="panel-dialog__main">
|
|
63
63
|
<h3>Heading</h3>
|
|
@@ -71,15 +71,37 @@ export const panelEnd = () => `
|
|
|
71
71
|
</div>
|
|
72
72
|
`;
|
|
73
73
|
|
|
74
|
-
export const
|
|
74
|
+
export const panelEndWithFooter = () => `
|
|
75
75
|
<div aria-labelledby="panel-title" aria-modal="true" class="panel-dialog" role="dialog">
|
|
76
76
|
<div class="panel-dialog__window panel-dialog__window--end">
|
|
77
77
|
<div class="panel-dialog__header">
|
|
78
|
+
<h2 id="panel-title">Right Panel</h2>
|
|
78
79
|
<button class="icon-btn panel-dialog__close" type="button" aria-label="Close Dialog">
|
|
79
|
-
<svg class="icon icon--close" aria-hidden="true">
|
|
80
|
-
<use xlink:href="#icon-close"></use>
|
|
80
|
+
<svg class="icon icon--close-small" aria-hidden="true">
|
|
81
|
+
<use xlink:href="#icon-close-small"></use>
|
|
81
82
|
</svg>
|
|
82
83
|
</button>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="panel-dialog__main">
|
|
86
|
+
<h3>Heading</h3>
|
|
87
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus convallis molestie erat, ut adipiscing risus blandit vel. Vivamus luctus elementum lorem, eu sodales velit sagittis id.</p>
|
|
88
|
+
<p><a href="http://www.ebay.com">www.ebay.com</a></p>
|
|
89
|
+
<h3>Heading</h3>
|
|
90
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus convallis molestie erat, ut adipiscing risus blandit vel. Vivamus luctus elementum lorem, eu sodales velit sagittis id.</p>
|
|
91
|
+
<p><a href="http://www.ebay.com">www.ebay.com</a></p>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="panel-dialog__footer">
|
|
94
|
+
<button class="btn btn--primary">Submit</button>
|
|
95
|
+
<button class="btn">Cancel</button>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
`;
|
|
100
|
+
|
|
101
|
+
export const panelEndSecondaryButton = () => `
|
|
102
|
+
<div aria-labelledby="panel-title" aria-modal="true" class="panel-dialog" role="dialog">
|
|
103
|
+
<div class="panel-dialog__window panel-dialog__window--end">
|
|
104
|
+
<div class="panel-dialog__header">
|
|
83
105
|
<h2 id="panel-title">Right Panel</h2>
|
|
84
106
|
<button class="fake-link panel-dialog__close" type="button">Reset</button>
|
|
85
107
|
</div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@progress-stepper-large-min-width: 120px;
|
|
7
7
|
|
|
8
8
|
.progress-stepper__items {
|
|
9
|
-
align-items: start;
|
|
9
|
+
align-items: flex-start;
|
|
10
10
|
display: flex;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -44,6 +44,23 @@ hr.progress-stepper__separator {
|
|
|
44
44
|
.color-token(progress-stepper-text-color, color-foreground-primary);
|
|
45
45
|
|
|
46
46
|
font-size: @font-size-12;
|
|
47
|
+
font-weight: normal;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.progress-stepper__item--upcoming .progress-stepper__text h2,
|
|
51
|
+
.progress-stepper__item--upcoming .progress-stepper__text h3,
|
|
52
|
+
.progress-stepper__item--upcoming .progress-stepper__text h4,
|
|
53
|
+
.progress-stepper__item--upcoming .progress-stepper__text h5,
|
|
54
|
+
.progress-stepper__item--upcoming .progress-stepper__text h6 {
|
|
55
|
+
.color-token(progress-stepper-text-light-color, color-foreground-secondary);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.progress-stepper__item[aria-current] .progress-stepper__text h2,
|
|
59
|
+
.progress-stepper__item[aria-current] .progress-stepper__text h3,
|
|
60
|
+
.progress-stepper__item[aria-current] .progress-stepper__text h4,
|
|
61
|
+
.progress-stepper__item[aria-current] .progress-stepper__text h5,
|
|
62
|
+
.progress-stepper__item[aria-current] .progress-stepper__text h6 {
|
|
63
|
+
font-weight: bold;
|
|
47
64
|
}
|
|
48
65
|
|
|
49
66
|
.progress-stepper__text p {
|
|
@@ -58,6 +75,7 @@ hr.progress-stepper__separator {
|
|
|
58
75
|
width: 24px;
|
|
59
76
|
}
|
|
60
77
|
|
|
78
|
+
// TODO remove next major version
|
|
61
79
|
.progress-stepper__icon > span[role="img"] {
|
|
62
80
|
align-items: center;
|
|
63
81
|
.border-color-token(progress-stepper-badge-current-border-color, color-background-information);
|
|
@@ -85,8 +103,8 @@ hr.progress-stepper__separator--upcoming,
|
|
|
85
103
|
}
|
|
86
104
|
|
|
87
105
|
.progress-stepper {
|
|
88
|
-
margin: @spacing-200 0;
|
|
89
106
|
overflow: auto;
|
|
107
|
+
padding: @spacing-200 0;
|
|
90
108
|
}
|
|
91
109
|
|
|
92
110
|
.progress-stepper__item:first-child .progress-stepper__text {
|
|
@@ -104,7 +122,7 @@ hr.progress-stepper__separator--upcoming,
|
|
|
104
122
|
.progress-stepper--vertical .progress-stepper__item {
|
|
105
123
|
align-items: flex-start;
|
|
106
124
|
flex-direction: row;
|
|
107
|
-
height:
|
|
125
|
+
height: 24px;
|
|
108
126
|
width: auto;
|
|
109
127
|
}
|
|
110
128
|
|
|
@@ -143,7 +161,7 @@ hr.progress-stepper__separator--upcoming,
|
|
|
143
161
|
}
|
|
144
162
|
|
|
145
163
|
.progress-stepper--vertical .progress-stepper__item .progress-stepper__text {
|
|
146
|
-
align-self:
|
|
164
|
+
align-self: center;
|
|
147
165
|
margin-left: @spacing-200;
|
|
148
166
|
margin-top: 0;
|
|
149
167
|
text-align: left;
|
|
@@ -153,7 +171,7 @@ hr.progress-stepper__separator--upcoming,
|
|
|
153
171
|
|
|
154
172
|
.progress-stepper--vertical .progress-stepper__icon {
|
|
155
173
|
display: inline-block;
|
|
156
|
-
height:
|
|
174
|
+
height: 24px;
|
|
157
175
|
margin: inherit;
|
|
158
176
|
width: 24px;
|
|
159
177
|
}
|
|
@@ -164,7 +182,7 @@ hr.progress-stepper__separator--upcoming,
|
|
|
164
182
|
height: 51px;
|
|
165
183
|
margin-bottom: 12px;
|
|
166
184
|
margin-left: 11px;
|
|
167
|
-
margin-top: -
|
|
185
|
+
margin-top: -4px;
|
|
168
186
|
min-width: inherit;
|
|
169
187
|
width: 2px;
|
|
170
188
|
}
|
|
@@ -29,7 +29,9 @@ export const base = () => `
|
|
|
29
29
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
30
30
|
<div aria-current="step" class="progress-stepper__item progress-stepper__item--current" role="listitem">
|
|
31
31
|
<span class="progress-stepper__icon">
|
|
32
|
-
<
|
|
32
|
+
<svg role="img" aria-hidden="true" class="icon" focusable="false" height="24" width="24">
|
|
33
|
+
<use xlink:href="#icon-stepper-current"></use>
|
|
34
|
+
</svg>
|
|
33
35
|
</span>
|
|
34
36
|
<span class="progress-stepper__text">
|
|
35
37
|
<h4>Transit</h4>
|
|
@@ -37,9 +39,9 @@ export const base = () => `
|
|
|
37
39
|
</span>
|
|
38
40
|
</div>
|
|
39
41
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
40
|
-
<div class="progress-stepper__item" role="listitem">
|
|
42
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
41
43
|
<span class="progress-stepper__icon">
|
|
42
|
-
<span
|
|
44
|
+
<span role="img" aria-label="upcoming"></span>
|
|
43
45
|
</span>
|
|
44
46
|
<span class="progress-stepper__text">
|
|
45
47
|
<h4>Delivered</h4>
|
|
@@ -105,6 +107,52 @@ export const allSelected = () => `
|
|
|
105
107
|
`;
|
|
106
108
|
|
|
107
109
|
export const noneSelected = () => `
|
|
110
|
+
<div class="progress-stepper">
|
|
111
|
+
<div class="progress-stepper__items progress-stepper__items--upcoming" role="list">
|
|
112
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
113
|
+
<span class="progress-stepper__icon">
|
|
114
|
+
<span role="img" aria-label="upcoming"></span>
|
|
115
|
+
</span>
|
|
116
|
+
<span class="progress-stepper__text">
|
|
117
|
+
<h4>Started</h4>
|
|
118
|
+
<p>July 3rd</p>
|
|
119
|
+
</span>
|
|
120
|
+
</div>
|
|
121
|
+
<hr class="progress-stepper__separator" role="presentation" />
|
|
122
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
123
|
+
<span class="progress-stepper__icon">
|
|
124
|
+
<span role="img" aria-label="upcoming"></span>
|
|
125
|
+
</span>
|
|
126
|
+
<span class="progress-stepper__text">
|
|
127
|
+
<h4>Shipped</h4>
|
|
128
|
+
<p>July 4th</p>
|
|
129
|
+
</span>
|
|
130
|
+
</div>
|
|
131
|
+
<hr class="progress-stepper__separator" role="presentation" />
|
|
132
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
133
|
+
<span class="progress-stepper__icon">
|
|
134
|
+
<span role="img" aria-label="upcoming"></span>
|
|
135
|
+
</span>
|
|
136
|
+
<span class="progress-stepper__text">
|
|
137
|
+
<h4>Transit</h4>
|
|
138
|
+
<p>July 5th</p>
|
|
139
|
+
</span>
|
|
140
|
+
</div>
|
|
141
|
+
<hr class="progress-stepper__separator" role="presentation" />
|
|
142
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
143
|
+
<span class="progress-stepper__icon">
|
|
144
|
+
<span role="img" aria-label="upcoming"></span>
|
|
145
|
+
</span>
|
|
146
|
+
<span class="progress-stepper__text">
|
|
147
|
+
<h4>Delivered</h4>
|
|
148
|
+
<p>July 6th</p>
|
|
149
|
+
</span>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
`;
|
|
154
|
+
|
|
155
|
+
export const numbersNoneSelected = () => `
|
|
108
156
|
<div class="progress-stepper">
|
|
109
157
|
<div class="progress-stepper__items progress-stepper__items--upcoming" role="list">
|
|
110
158
|
<div class="progress-stepper__item" role="listitem">
|
|
@@ -179,7 +227,9 @@ export const RTL = () => `
|
|
|
179
227
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
180
228
|
<div aria-current="step" class="progress-stepper__item progress-stepper__item--current" role="listitem">
|
|
181
229
|
<span class="progress-stepper__icon">
|
|
182
|
-
<
|
|
230
|
+
<svg role="img" aria-hidden="true" class="icon" focusable="false" height="24" width="24">
|
|
231
|
+
<use xlink:href="#icon-stepper-current"></use>
|
|
232
|
+
</svg>
|
|
183
233
|
</span>
|
|
184
234
|
<span class="progress-stepper__text">
|
|
185
235
|
<h4>Transit</h4>
|
|
@@ -187,9 +237,9 @@ export const RTL = () => `
|
|
|
187
237
|
</span>
|
|
188
238
|
</div>
|
|
189
239
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
190
|
-
<div class="progress-stepper__item" role="listitem">
|
|
240
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
191
241
|
<span class="progress-stepper__icon">
|
|
192
|
-
<span
|
|
242
|
+
<span role="img" aria-label="upcoming"></span>
|
|
193
243
|
</span>
|
|
194
244
|
<span class="progress-stepper__text">
|
|
195
245
|
<h4>Delivered</h4>
|
|
@@ -219,7 +269,9 @@ export const vertical = () => `
|
|
|
219
269
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
220
270
|
<div aria-current="step" class="progress-stepper__item progress-stepper__item--current" role="listitem">
|
|
221
271
|
<span class="progress-stepper__icon">
|
|
222
|
-
<
|
|
272
|
+
<svg role="img" aria-hidden="true" class="icon" focusable="false" height="24" width="24">
|
|
273
|
+
<use xlink:href="#icon-stepper-current"></use>
|
|
274
|
+
</svg>
|
|
223
275
|
</span>
|
|
224
276
|
<span class="progress-stepper__text">
|
|
225
277
|
<h3>Preparing for shipment</h3>
|
|
@@ -227,13 +279,50 @@ export const vertical = () => `
|
|
|
227
279
|
</span>
|
|
228
280
|
</div>
|
|
229
281
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
282
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
283
|
+
<span class="progress-stepper__icon">
|
|
284
|
+
<span role="img" aria-label="upcoming"></span>
|
|
285
|
+
</span>
|
|
286
|
+
<span class="progress-stepper__text">
|
|
287
|
+
<h3>Delivered</h3>
|
|
288
|
+
<p>Guaranteed Wednesday, October 09.</p>
|
|
289
|
+
</span>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
`;
|
|
294
|
+
|
|
295
|
+
export const verticalSingleLine = () => `
|
|
296
|
+
<div class="progress-stepper progress-stepper--vertical">
|
|
297
|
+
<div class="progress-stepper__items" role="list">
|
|
230
298
|
<div class="progress-stepper__item" role="listitem">
|
|
231
299
|
<span class="progress-stepper__icon">
|
|
232
|
-
<
|
|
300
|
+
<svg role="img" aria-hidden="true" class="icon" focusable="false" height="24" width="24">
|
|
301
|
+
<use xlink:href="#icon-stepper-confirmation"></use>
|
|
302
|
+
</svg>
|
|
303
|
+
</span>
|
|
304
|
+
<span class="progress-stepper__text">
|
|
305
|
+
<h3>Order placed</h3>
|
|
306
|
+
</span>
|
|
307
|
+
</div>
|
|
308
|
+
<hr class="progress-stepper__separator" role="presentation" />
|
|
309
|
+
<div aria-current="step" class="progress-stepper__item progress-stepper__item--current" role="listitem">
|
|
310
|
+
<span class="progress-stepper__icon">
|
|
311
|
+
<svg role="img" aria-hidden="true" class="icon" focusable="false" height="24" width="24">
|
|
312
|
+
<use xlink:href="#icon-stepper-current"></use>
|
|
313
|
+
</svg>
|
|
314
|
+
</span>
|
|
315
|
+
<span class="progress-stepper__text">
|
|
316
|
+
<h3>Preparing for shipment</h3>
|
|
317
|
+
</span>
|
|
318
|
+
</div>
|
|
319
|
+
<hr class="progress-stepper__separator" role="presentation" />
|
|
320
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
321
|
+
<span class="progress-stepper__icon">
|
|
322
|
+
<span role="img" aria-label="upcoming"></span>
|
|
233
323
|
</span>
|
|
234
324
|
<span class="progress-stepper__text">
|
|
235
325
|
<h3>Delivered</h3>
|
|
236
|
-
<p>Guaranteed Wednesday, October 09.</p>
|
|
237
326
|
</span>
|
|
238
327
|
</div>
|
|
239
328
|
</div>
|
|
@@ -259,7 +348,9 @@ export const verticalRTL = () => `
|
|
|
259
348
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
260
349
|
<div aria-current="step" class="progress-stepper__item progress-stepper__item--current" role="listitem">
|
|
261
350
|
<span class="progress-stepper__icon">
|
|
262
|
-
<
|
|
351
|
+
<svg role="img" aria-hidden="true" class="icon" focusable="false" height="24" width="24">
|
|
352
|
+
<use xlink:href="#icon-stepper-current"></use>
|
|
353
|
+
</svg>
|
|
263
354
|
</span>
|
|
264
355
|
<span class="progress-stepper__text">
|
|
265
356
|
<h3>Preparing for shipment</h3>
|
|
@@ -267,9 +358,9 @@ export const verticalRTL = () => `
|
|
|
267
358
|
</span>
|
|
268
359
|
</div>
|
|
269
360
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
270
|
-
<div class="progress-stepper__item" role="listitem">
|
|
361
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
271
362
|
<span class="progress-stepper__icon">
|
|
272
|
-
<span
|
|
363
|
+
<span role="img" aria-label="upcoming"></span>
|
|
273
364
|
</span>
|
|
274
365
|
<span class="progress-stepper__text">
|
|
275
366
|
<h3>Delivered</h3>
|
|
@@ -308,11 +399,11 @@ export const infoState = () => `
|
|
|
308
399
|
</span>
|
|
309
400
|
</div>
|
|
310
401
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
311
|
-
<div class="progress-stepper__item" role="listitem">
|
|
402
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
312
403
|
<span class="progress-stepper__icon">
|
|
313
|
-
<span
|
|
404
|
+
<span role="img" aria-label="upcoming"></span>
|
|
314
405
|
</span>
|
|
315
|
-
|
|
406
|
+
<span class="progress-stepper__text">
|
|
316
407
|
<h4>Delivered</h4>
|
|
317
408
|
<p>July 6th</p>
|
|
318
409
|
</span>
|
|
@@ -347,9 +438,9 @@ export const errorState = () => `
|
|
|
347
438
|
</span>
|
|
348
439
|
</div>
|
|
349
440
|
<hr class="progress-stepper__separator" role="presentation" />
|
|
350
|
-
<div class="progress-stepper__item" role="listitem">
|
|
441
|
+
<div class="progress-stepper__item progress-stepper__item--upcoming" role="listitem">
|
|
351
442
|
<span class="progress-stepper__icon">
|
|
352
|
-
<span
|
|
443
|
+
<span role="img" aria-label="upcoming"></span>
|
|
353
444
|
</span>
|
|
354
445
|
<span class="progress-stepper__text">
|
|
355
446
|
<h4>Delivered</h4>
|