Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit ec5f946

Browse files
authored
Merge pull request #2518 from eBay/18.6.0
2 parents d5cf442 + 11f33c2 commit ec5f946

File tree

81 files changed

+6291
-6503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+6291
-6503
lines changed

.changeset/green-falcons-thank.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/skin": minor
3+
---
4+
5+
feat(floating-label): updated unselected color of label

.changeset/mean-goats-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/skin": minor
3+
---
4+
5+
fix(alert/confirm-dialog): changed alignment to left by default and right for footer

.changeset/spotty-lamps-worry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/skin": minor
3+
---
4+
5+
feat(icons): added new icons

.changeset/tame-monkeys-sparkle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/skin": minor
3+
---
4+
5+
docs(link): added disabled fake-link

.changeset/twenty-berries-eat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/skin": minor
3+
---
4+
5+
fix(progress-stepper): update incomplete step color to meet contrast

CONTRIBUTING.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Here is a rough overview of steps required when contributing code to skin:
6666

6767
## Development Modes
6868

69-
Skin can usually considered to be in one of two modes of development:
69+
Skin can usually be considered to be in one of two modes of development:
7070

7171
1. Feature development mode (default)
7272
1. Refactoring/cleanup/breaking-changes mode
@@ -137,7 +137,7 @@ Here are some types of change that we consider as an incompatible API change:
137137
- Change to HTML structure or attributes of module
138138
- Change to CSS property that radically alters appearance and/or layout
139139

140-
Typically we will try and add a deprecation note for a period of time before introducing any breaking API change. The creation of aliases can often help ease the transition from one API to another.
140+
Typically, we will try and add a deprecation note for a period of time before introducing any breaking API change. The creation of aliases can often help ease the transition from one API to another.
141141

142142
### New Functionality
143143

@@ -179,7 +179,7 @@ A milestone branch will be deleted after it has been merged into `master`. There
179179

180180
Every time we cut a new milestone branch, the package dependencies require updating.
181181

182-
1. Ensure you are on the milestone branch and that the branch is up to date with latest from `master`
182+
1. Ensure you are on the milestone branch and that the branch is up-to-date with latest from `master`
183183
1. Run `npm install` to ensure your local node_modules are in sync with your `package-lock.json`
184184
1. Run `npm outdated`
185185
1. Go into `package.json` and update version numbers to the latest based on outdated. Pay attention to any major version updates as they may contain breaking changes!
@@ -232,7 +232,7 @@ Guidance for pull requests:
232232
- Non-atomic commits should be squashed (i.e. "work in progress" type commits).
233233
- Do not add any commit that leaves the code in a broken state.
234234
- Pull request for a _feature_ must only contain changes related to the issue (NOTE: refactoring/cleanup type PRs are often exempt from this rule)
235-
- **Do not** be tempted to go fixing or refactoring unrelated issues. Doing so can make the code reviewer's job more difficult and/or time consuming, as well as increasing risk of regression
235+
- **Do not** be tempted to go fixing or refactoring unrelated issues. Doing so can make the code reviewer's job more difficult and/or time-consuming, as well as increasing risk of regression
236236
- If you spot some other unrelated bug or code smell, please create a GitHub issue for it.
237237
- After the pull request has been merged, your issue branch should be immediately deleted (by yourself or admin)
238238

@@ -246,25 +246,25 @@ When contributing to Skin, please bear the following guidelines in mind:
246246

247247
- Ensure all markup adheres to our [accessibility patterns](https://ebay.gitbooks.io/mindpatterns/content/)
248248
- Ensure all markup is valid HTML
249-
- Leverage ARIA roles, states and properties for styling hooks wherever possible. This safeguards against non-accessible markup (NOTE: this will increase specificity, but we accept this as a worthwile tradeoff)
249+
- Leverage ARIA roles, states and properties for styling hooks wherever possible. This safeguards against non-accessible markup (NOTE: this will increase specificity, but we accept this as a worthwhile trade off)
250250
- Use BEM syntax for modifiers (double-dash) and nested classes (double-underscore)
251251
- Use the `<svg>` tag for icons
252252
- Never use the `<i>` tag for icons
253253
- Harness CSS margin-collapse wherever possible.
254254
- Most block-level modules will require margin top and bottom as a sensible default
255-
- Do not use presentational classnames, e.g. `.btn--green` should be `.btn--secondary` for example
256-
- Do not combine classes into a single classname, e.g. `btn-sec` should be `btn btn--sec`, this allows cascades without advanced attribute selectors or pre-processors
255+
- Do not use presentational class names, e.g. `.btn--green` should be `.btn--secondary` for example
256+
- Do not combine classes into a single class name, e.g. `btn-sec` should be `btn btn--sec`, this allows cascades without advanced attribute selectors or pre-processors
257257
- Do not chain BEM modifiers (e.g. `.btn--large.btn--primary`). This is a code smell.
258-
- Do not use ambiguous or global classnames, e.g. `.large` should be `.btn--large`
258+
- Do not use ambiguous or global class names, e.g. `.large` should be `.btn--large`
259259
- Do not use class `.disabled` to disable buttons or form elements, use the HTML `disabled` property instead
260260
- Do not wrap inputs with labels, use explicit labels instead (e.g. use the `for` and `id` attributes)
261-
- Do not use `href="#"` or `href="javascript"` in examples, use `href="http://www.ebay.com"` or any other dummy url
261+
- Do not use `href="#"` or `href="javascript"` in examples, use `href="http://www.ebay.com"` or any other dummy URL
262262
- Every `<img>` tag must have an `alt` attribute, with **no** exceptions. The value can be an empty string for presentational images.
263263
- Avoid naming conflicts with other grid systems (e.g. Bootstap Grids)
264264
- Keep LESS pre-processor usage restricted to variables, mixins and basic nesting (see below). 9 times out of 10 advanced features of pre-processors can be avoided by using CSS properly.
265-
- Avoid too much nesting/indenting of LESS selectors as it can reduce human scan-ability of code and can also result in sub-optimal compiled CSS. Try and restrict nesting to pseudo selectors only (e.g. `:focus`, `::after`).
265+
- Avoid too much nesting/indenting of LESS selectors as it can reduce human scan-ability of code and can also result in suboptimal compiled CSS. Try and restrict nesting to pseudo selectors only (e.g. `:focus`, `::after`).
266266
- Avoid over specificity (unless required for accessibility safeguarding). The fewer rules required to check for a given element, the faster style resolution will be. This is the key to dramatically increasing performance.
267-
[https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Writing_efficient_CSS](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Writing_efficient_CSS)
267+
[https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Writing_efficient_CSS](https://web.archive.org/web/20161029110643/https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Writing_efficient_CSS)
268268
- Please do not commit commented out code to production.
269269

270270
## LESS API (deprecated)
@@ -273,7 +273,7 @@ In comparison to past versions, Skin now offers a very minimal public LESS API (
273273

274274
## Custom Property API
275275

276-
Skin has a token based system that leverages CSS Custom Properties. The tokens are categorised into three levels:
276+
Skin has a token based system that leverages CSS Custom Properties. The tokens are categorized into three levels:
277277

278278
- core
279279
- semantic
@@ -314,9 +314,9 @@ Obviously with great power, comes great responsibility.
314314

315315
Every Skin module has full support for [dark mode](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme).
316316

317-
Dark mode is powered by the [Custom Property API](#custom-property-api). When the "prefers-color-scheme" media query is satisfied, all semantic token values will be replaced, dynamically at runtime, with the values from the relevant tokens module (e.g. `evo-semantic-dark` or `evo-semantic-light`).
317+
Dark mode is powered by the [Custom Property API](#custom-property-api). When the "prefers-color-scheme" media query is satisfied, all semantic token values will be replaced, dynamically at runtime, with the values from the relevant tokens module (e.g.,`evo-semantic-dark` or `evo-semantic-light`).
318318

319-
**NOTE:** the semantic dark mode tokens are **not** included by default. They must be explicitly bundled by the end user. This allows end users to opt-in to dark mode only when their base page is ready for it.
319+
**NOTE:** the semantic dark mode tokens are **not** included by default. They must be explicitly bundled by the end user. This allows end users to opt in to dark mode only when their base page is ready for it.
320320

321321
## Storybook
322322

@@ -344,7 +344,7 @@ Internal contributors will need to set up to run Percy snapshots by adding the P
344344

345345
This will allow internal contributors to run Percy snapshot tests.
346346

347-
Snapshots will likely be ran by developers locally before pushing up changes. Once they are ran, Percy dashboard should be checked to ensure no unintended style changes have taken place. If there are unintended style changes that have occurred, those should be reverted/fixed. Once the set of new local changes is final and in scope with the changes related to the issue, the snapshot run will need to be marked as the canonical version against which future updates are compared.
347+
Snapshots will likely be run by developers locally before pushing up changes. Once they are run, Percy dashboard should be checked to ensure no unintended style changes have taken place. If there are unintended style changes that have occurred, those should be reverted/fixed. Once the set of new local changes is final and in scope with the changes related to the issue, the snapshot run will need to be marked as the canonical version against which future updates are compared.
348348

349349
#### Build Modes
350350

@@ -417,8 +417,8 @@ Please ensure your NPM registry is set correctly and that you are on the package
417417

418418
A pre-release is always made from a milestone branch.
419419

420-
1. Run `npm version prepatch`, `npm version preminor`, or `npm version premajor`. If you need to increment an existing prerelease use `npm version prerelease`. This command will automatically:
421-
- update the version number in css build files
420+
1. Run `npm version prepatch`, `npm version preminor`, or `npm version premajor`. If you need to increment an existing pre-release use `npm version prerelease`. This command will automatically:
421+
- update the version number in CSS build files
422422
- update the version number in `package.json`
423423
- commit all changes locally
424424
- create a Git tag
@@ -433,7 +433,7 @@ A final release is always made from the master branch.
433433
1. Merge the PR after approval (do not squash!)
434434
1. Switch to your local master branch and pull the changes from origin.
435435
1. Run `npm version patch`, `npm version minor`, or `npm version major`. This command will automatically:
436-
- update the version number in css build files
436+
- update the version number in CSS build files
437437
- update the version number in `package.json`
438438
- update the version number in Jekyll docs
439439
- commit all changes locally
@@ -459,7 +459,7 @@ Git tags to the rescue! Git tags allow us to go back to any moment in time that
459459

460460
1. Go to tags page: https://github.com/eBay/skin/tags
461461
1. Select the tag you'd like to go back in time to, e.g. https://github.com/eBay/skin/tree/v6.3.5
462-
1. Select the tag dropdown and create a new branch named accordingly, e.g `6.3.6`. This is the branch you will merge your PR to and do the release from.
462+
1. Select the tag dropdown and create a new branch named accordingly, e.g. `6.3.6`. This is the branch you will merge your PR to and do the release from.
463463
1. Create _another_ branch for your local dev work, e.g. `1723-textbox-fix`.
464464
1. Now follow the [release steps](#final-release) mentioned above, but substituting `master` branch for your release branch (e.g. `6.3.6`) and milestone branch for your dev branch (e.g. `1723-textbox-fix`). **IMPORTANT:** No changes should be pushed to master branch!
465465
1. Don't forget to publish your new git tag (e.g. `v6.3.6`)
@@ -470,6 +470,6 @@ Git tags to the rescue! Git tags allow us to go back to any moment in time that
470470
The website archive under `/docs/archive` should be updated each time a minor or major release is published.
471471

472472
1. In a local branch, checkout the tag of the previous version, e.g. `git checkout v10.7.5`
473-
1. Run `npm i`
474-
1. Run `npx marko-run build -o /docs/archive/v0.7.5`
475-
1. Create a pull request
473+
2. Run `npm i`
474+
3. Run `npx marko-run build -o /docs/archive/v0.7.5`
475+
4. Create a pull request

dist/alert-dialog/alert-dialog.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
min-height: 55px;
3939
min-width: 208px;
4040
padding: var(--spacing-200);
41-
text-align: center;
4241
will-change: opacity, transform;
4342
}
4443

@@ -49,6 +48,10 @@
4948
margin: 0;
5049
}
5150

51+
.alert-dialog__footer {
52+
text-align: right;
53+
}
54+
5255
.alert-dialog__main {
5356
margin: var(--spacing-200) 0;
5457
min-height: var(--spacing-200);

dist/confirm-dialog/confirm-dialog.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
min-height: 55px;
3939
min-width: 208px;
4040
padding: var(--spacing-200);
41-
text-align: center;
4241
will-change: opacity, transform;
4342
}
4443

@@ -60,6 +59,10 @@
6059
margin-bottom: 0;
6160
}
6261

62+
.confirm-dialog__footer {
63+
text-align: right;
64+
}
65+
6366
a.confirm-dialog__confirm,
6467
button.confirm-dialog__confirm {
6568
margin-left: var(--spacing-100);

dist/floating-label/floating-label.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ div.floating-label {
1212

1313
label.floating-label__label {
1414
background-color: initial;
15-
color: var(--floating-label-color, var(--color-foreground-primary));
15+
color: var(--floating-label-color, var(--color-foreground-secondary));
1616
display: inline-block;
1717
left: 16px;
1818
overflow: hidden;
@@ -38,7 +38,7 @@ label.floating-label__label {
3838
}
3939

4040
label.floating-label__label--focus {
41-
color: var(--color-background-inverse);
41+
color: var(--floating-label-focus-color, var(--color-foreground-primary));
4242
}
4343

4444
.floating-label--opaque label.floating-label__label--focus {

dist/progress-bar-expressive/progress-bar-expressive.css

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@
137137
var(--progress-bar-expressive-line-scale-duration) -
138138
var(--progress-bar-expressive-line-scale-duration) /
139139
var(--progress-bar-expressive-line-count)
140-
) * -1
140+
) *
141+
-1
141142
);
142143
width: var(--progress-bar-expressive-line-width-a1);
143144
}
@@ -148,7 +149,8 @@
148149
var(--progress-bar-expressive-line-scale-duration) -
149150
var(--progress-bar-expressive-line-scale-duration) /
150151
var(--progress-bar-expressive-line-count) * 2
151-
) * -1
152+
) *
153+
-1
152154
);
153155
width: var(--progress-bar-expressive-line-width-a2);
154156
}
@@ -159,7 +161,8 @@
159161
var(--progress-bar-expressive-line-scale-duration) -
160162
var(--progress-bar-expressive-line-scale-duration) /
161163
var(--progress-bar-expressive-line-count) * 3
162-
) * -1
164+
) *
165+
-1
163166
);
164167
width: var(--progress-bar-expressive-line-width-a3);
165168
}
@@ -170,7 +173,8 @@
170173
var(--progress-bar-expressive-line-scale-duration) -
171174
var(--progress-bar-expressive-line-scale-duration) /
172175
var(--progress-bar-expressive-line-count) * 4
173-
) * -1
176+
) *
177+
-1
174178
);
175179
width: var(--progress-bar-expressive-line-width-a4);
176180
}
@@ -181,7 +185,8 @@
181185
var(--progress-bar-expressive-line-scale-duration) -
182186
var(--progress-bar-expressive-line-scale-duration) /
183187
var(--progress-bar-expressive-line-count) * 5
184-
) * -1
188+
) *
189+
-1
185190
);
186191
width: var(--progress-bar-expressive-line-width-b1);
187192
}
@@ -192,7 +197,8 @@
192197
var(--progress-bar-expressive-line-scale-duration) -
193198
var(--progress-bar-expressive-line-scale-duration) /
194199
var(--progress-bar-expressive-line-count) * 6
195-
) * -1
200+
) *
201+
-1
196202
);
197203
width: var(--progress-bar-expressive-line-width-b2);
198204
}
@@ -203,7 +209,8 @@
203209
var(--progress-bar-expressive-line-scale-duration) -
204210
var(--progress-bar-expressive-line-scale-duration) /
205211
var(--progress-bar-expressive-line-count) * 7
206-
) * -1
212+
) *
213+
-1
207214
);
208215
width: var(--progress-bar-expressive-line-width-b3);
209216
}
@@ -214,7 +221,8 @@
214221
var(--progress-bar-expressive-line-scale-duration) -
215222
var(--progress-bar-expressive-line-scale-duration) /
216223
var(--progress-bar-expressive-line-count) * 8
217-
) * -1
224+
) *
225+
-1
218226
);
219227
width: var(--progress-bar-expressive-line-width-b4);
220228
}
@@ -225,7 +233,8 @@
225233
var(--progress-bar-expressive-line-scale-duration) -
226234
var(--progress-bar-expressive-line-scale-duration) /
227235
var(--progress-bar-expressive-line-count) * 9
228-
) * -1
236+
) *
237+
-1
229238
);
230239
width: var(--progress-bar-expressive-line-width-c1);
231240
}
@@ -236,7 +245,8 @@
236245
var(--progress-bar-expressive-line-scale-duration) -
237246
var(--progress-bar-expressive-line-scale-duration) /
238247
var(--progress-bar-expressive-line-count) * 10
239-
) * -1
248+
) *
249+
-1
240250
);
241251
width: var(--progress-bar-expressive-line-width-c2);
242252
}
@@ -247,7 +257,8 @@
247257
var(--progress-bar-expressive-line-scale-duration) -
248258
var(--progress-bar-expressive-line-scale-duration) /
249259
var(--progress-bar-expressive-line-count) * 11
250-
) * -1
260+
) *
261+
-1
251262
);
252263
width: var(--progress-bar-expressive-line-width-c3);
253264
}
@@ -258,7 +269,8 @@
258269
var(--progress-bar-expressive-line-scale-duration) -
259270
var(--progress-bar-expressive-line-scale-duration) /
260271
var(--progress-bar-expressive-line-count) * 12
261-
) * -1
272+
) *
273+
-1
262274
);
263275
width: var(--progress-bar-expressive-line-width-c4);
264276
}

0 commit comments

Comments
 (0)