@ebay/skin 16.0.0-1 → 16.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.
@@ -168,8 +168,8 @@ a.fake-btn--primary.fake-btn--destructive {
168
168
  }
169
169
  button.btn--primary.btn--destructive[disabled],
170
170
  button.btn--primary.btn--destructive[aria-disabled="true"] {
171
- background-color: var(--btn-primary-destructive-disabled-background, var(--color-background-attention));
172
- border-color: var(--btn-primary-destructive-disabled-border, var(--color-stroke-attention));
171
+ background-color: var(--btn-primary-destructive-disabled-background, var(--color-background-disabled));
172
+ border-color: var(--btn-primary-destructive-disabled-border, var(--color-stroke-disabled));
173
173
  }
174
174
  button.btn--primary.btn--destructive:not([disabled], [aria-disabled="true"]):focus,
175
175
  a.fake-btn--primary.fake-btn--destructive[href]:focus,
@@ -208,8 +208,8 @@ a.fake-btn--large svg.icon {
208
208
  }
209
209
  button.btn--primary[disabled],
210
210
  button.btn--primary[aria-disabled="true"] {
211
- background-color: var(--btn-primary-disabled-background-color, var(--color-background-accent));
212
- border-color: var(--btn-primary-disabled-border-color, var(--color-background-accent));
211
+ background-color: var(--btn-primary-disabled-background-color, var(--color-foreground-disabled));
212
+ border-color: var(--btn-primary-disabled-border-color, var(--color-foreground-disabled));
213
213
  color: var(--btn-primary-foreground-color, var(--color-foreground-on-accent));
214
214
  }
215
215
  button.btn--primary[disabled] svg.icon,
@@ -84,18 +84,22 @@
84
84
  /************
85
85
  *** DAYS ***
86
86
  ************/
87
- .calendar__month td[aria-current="date"]:not([aria-selected="true"]) > :not(:disabled, [aria-disabled="true"]) {
87
+ .calendar__month td:not(.calendar__cell--selected) > [aria-current="date"]:not(:disabled),
88
+ .calendar__month td:not(.calendar__cell--selected) > .calendar__cell--current:not(.calendar__cell--disabled) {
88
89
  border-color: var(--calendar-day-today-border-color, var(--color-foreground-primary));
89
90
  border-style: solid;
90
91
  }
91
92
  .calendar__month td > :disabled,
92
- .calendar__month .calendar__cell--disabled {
93
+ .calendar__month td > .calendar__cell--disabled {
93
94
  color: var(--calendar-day-disabled-color, var(--color-foreground-disabled));
94
95
  }
95
- .calendar__month td:not(.calendar__range, [aria-selected="true"]) > button:not(:disabled):hover {
96
+ .calendar__month td:not(.calendar__range, .calendar__cell--selected) > button:not(:disabled):hover {
96
97
  background-color: var(--calendar-day-hover-background-color, var(--color-state-primary-hover));
97
98
  }
98
- .calendar__month td[aria-selected="true"] > * {
99
+ .calendar__month td:not(.calendar__range, .calendar__cell--selected) > button:not(:disabled):active {
100
+ font-weight: bold;
101
+ }
102
+ .calendar__month td.calendar__cell--selected > * {
99
103
  background-color: var(--calendar-day-selected-background-color, var(--color-background-inverse));
100
104
  color: var(--calendar-day-selected-color, var(--color-foreground-on-inverse));
101
105
  font-weight: bold;
@@ -133,7 +137,7 @@
133
137
  .calendar__range--start.calendar__range--end {
134
138
  background: transparent;
135
139
  }
136
- .calendar__range--start:not([aria-selected="true"]) > :not(:disabled, [aria-disabled="true"]),
137
- .calendar__range--end:not([aria-selected="true"]) > :not(:disabled, [aria-disabled="true"]) {
140
+ .calendar__range--start:not(.calendar__cell--selected) > :not(:disabled, [aria-disabled="true"]),
141
+ .calendar__range--end:not(.calendar__cell--selected) > :not(:disabled, [aria-disabled="true"]) {
138
142
  background-color: var(--calendar-day-range-end, var(--color-state-secondary-active));
139
143
  }
@@ -4,6 +4,9 @@
4
4
  .date-textbox {
5
5
  --calendar-month-width: 311px;
6
6
  }
7
+ .date-textbox > .textbox + .textbox {
8
+ margin-left: 8px;
9
+ }
7
10
  .date-textbox__popover {
8
11
  background-color: var(--calendar-background-color, var(--color-background-primary));
9
12
  border-radius: 16px;
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.0.0-1",
4
+ "version": "16.0.0",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",
7
7
  "maintainers": [
@@ -23,6 +23,7 @@
23
23
  "postpublish": "node scripts clean",
24
24
  "build": "npm run build:css && npm run lint:js && npm run bundle && npm run build:site && npm run copy",
25
25
  "build:css": "npm run lint:less && gulp && npm run lint:css",
26
+ "build:ci": "npm run build:css && npm run lint:js && npm run bundle && npm run copy",
26
27
  "build:jekyll": "bundler exec jekyll build --incremental --config docs/_config.yml,docs/_config.localhost.yml",
27
28
  "build:site": "npm run copy:svgToDocs && npm run build:jekyll",
28
29
  "build:storybook": "npm run copy:assetsToStorybook && npm run build:storybook:ds6",
@@ -132,8 +132,8 @@ a.fake-btn--primary.fake-btn--destructive {
132
132
 
133
133
  button.btn--primary.btn--destructive[disabled],
134
134
  button.btn--primary.btn--destructive[aria-disabled="true"] {
135
- .background-color-token(btn-primary-destructive-disabled-background, color-background-attention);
136
- .border-color-token(btn-primary-destructive-disabled-border, color-stroke-attention);
135
+ .background-color-token(btn-primary-destructive-disabled-background, color-background-disabled);
136
+ .border-color-token(btn-primary-destructive-disabled-border, color-stroke-disabled);
137
137
  }
138
138
 
139
139
  button.btn--primary.btn--destructive:not([disabled], [aria-disabled="true"]),
@@ -181,8 +181,8 @@ a.fake-btn--large svg.icon {
181
181
 
182
182
  button.btn--primary[disabled],
183
183
  button.btn--primary[aria-disabled="true"] {
184
- .background-color-token(btn-primary-disabled-background-color, color-background-accent);
185
- .border-color-token(btn-primary-disabled-border-color, color-background-accent);
184
+ .background-color-token(btn-primary-disabled-background-color, color-foreground-disabled);
185
+ .border-color-token(btn-primary-disabled-border-color, color-foreground-disabled);
186
186
  .color-token(btn-primary-foreground-color, color-foreground-on-accent);
187
187
 
188
188
  svg.icon {
@@ -40,15 +40,3 @@ export const busy = () => `
40
40
  </span>
41
41
  </button>
42
42
  `;
43
-
44
- export const busyDisabled = () => `
45
- <button class="btn btn--primary" aria-label="Busy" aria-disabled="true" disabled>
46
- <span class="btn__cell">
47
- <span class="progress-spinner">
48
- <svg class="icon icon--spinner-24" focusable="false" aria-hidden="true">
49
- <use href="#icon-spinner-24"></use>
50
- </svg>
51
- </span>
52
- </span>
53
- </button>
54
- `;
@@ -34,13 +34,3 @@ export const busy = () => `
34
34
  </span>
35
35
  </button>
36
36
  `;
37
-
38
- export const busyDisabled = () => `
39
- <button class="btn btn--primary btn--destructive" aria-label="Busy" aria-disabled="true" disabled>
40
- <span class="progress-spinner">
41
- <svg aria-hidden="true" class="icon icon--spinner-24" focusable="false">
42
- <use href="#icon-spinner-24"></use>
43
- </svg>
44
- </span>
45
- </button>
46
- `;
@@ -108,23 +108,30 @@
108
108
  *** DAYS ***
109
109
  ************/
110
110
 
111
+ .calendar__month td:not(.calendar__cell--selected) > [aria-current="date"]:not(:disabled),
111
112
  .calendar__month
112
- td[aria-current="date"]:not([aria-selected="true"])
113
- > :not(:disabled, [aria-disabled="true"]) {
113
+ td:not(.calendar__cell--selected)
114
+ > .calendar__cell--current:not(.calendar__cell--disabled) {
114
115
  .border-color-token(calendar-day-today-border-color, color-foreground-primary);
115
116
  border-style: solid;
116
117
  }
117
118
 
118
119
  .calendar__month td > :disabled,
119
- .calendar__month .calendar__cell--disabled {
120
+ .calendar__month td > .calendar__cell--disabled {
120
121
  .color-token(calendar-day-disabled-color, color-foreground-disabled);
121
122
  }
122
123
 
123
- .calendar__month td:not(.calendar__range, [aria-selected="true"]) > button:not(:disabled):hover {
124
+ .calendar__month td:not(.calendar__range, .calendar__cell--selected) > button:not(:disabled):hover {
124
125
  .background-color-token(calendar-day-hover-background-color, color-state-primary-hover);
125
126
  }
126
127
 
127
- .calendar__month td[aria-selected="true"] > * {
128
+ .calendar__month
129
+ td:not(.calendar__range, .calendar__cell--selected)
130
+ > button:not(:disabled):active {
131
+ font-weight: bold;
132
+ }
133
+
134
+ .calendar__month td.calendar__cell--selected > * {
128
135
  .background-color-token(calendar-day-selected-background-color, color-background-inverse);
129
136
  .color-token(calendar-day-selected-color, color-foreground-on-inverse);
130
137
  font-weight: bold;
@@ -174,7 +181,7 @@
174
181
  background: transparent;
175
182
  }
176
183
 
177
- .calendar__range--start:not([aria-selected="true"]) > :not(:disabled, [aria-disabled="true"]),
178
- .calendar__range--end:not([aria-selected="true"]) > :not(:disabled, [aria-disabled="true"]) {
184
+ .calendar__range--start:not(.calendar__cell--selected) > :not(:disabled, [aria-disabled="true"]),
185
+ .calendar__range--end:not(.calendar__cell--selected) > :not(:disabled, [aria-disabled="true"]) {
179
186
  .background-color-token(calendar-day-range-end, color-state-secondary-active);
180
187
  }