-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sbb-chip-label): rename chip to chip-label (#3188)
BREAKING CHANGE: sbb-chip has been renamed to sbb-chip-label. Replace all sbb-chip occurrences with sbb-chip-label. Replace all sbb-chip-* SASS mixin occurrences with sbb-chip-label-*. Replace all sbb-chip-* CSS variables occurrences with sbb-chip-label-*. --------- Co-authored-by: Jeremias Peier <jeremias.peier@sbb.ch>
- Loading branch information
1 parent
ecfd50d
commit 4b2123d
Showing
33 changed files
with
254 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './chip-label/chip-label.js'; |
55 changes: 55 additions & 0 deletions
55
src/elements/chip-label/__snapshots__/chip-label.snapshot.spec.snap.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* @web/test-runner snapshot v1 */ | ||
export const snapshots = {}; | ||
|
||
snapshots["sbb-chip-label renders DOM"] = | ||
`<sbb-chip-label | ||
color="milk" | ||
size="xxs" | ||
> | ||
Label | ||
</sbb-chip-label> | ||
`; | ||
/* end snapshot sbb-chip-label renders DOM */ | ||
|
||
snapshots["sbb-chip-label renders Shadow DOM"] = | ||
`<span class="sbb-chip-label"> | ||
<span class="sbb-chip__text-wrapper"> | ||
<slot> | ||
</slot> | ||
</span> | ||
</span> | ||
`; | ||
/* end snapshot sbb-chip-label renders Shadow DOM */ | ||
|
||
snapshots["sbb-chip-label renders A11y tree Chrome"] = | ||
`<p> | ||
{ | ||
"role": "WebArea", | ||
"name": "", | ||
"children": [ | ||
{ | ||
"role": "text", | ||
"name": "Label" | ||
} | ||
] | ||
} | ||
</p> | ||
`; | ||
/* end snapshot sbb-chip-label renders A11y tree Chrome */ | ||
|
||
snapshots["sbb-chip-label renders A11y tree Firefox"] = | ||
`<p> | ||
{ | ||
"role": "document", | ||
"name": "", | ||
"children": [ | ||
{ | ||
"role": "text leaf", | ||
"name": "Label" | ||
} | ||
] | ||
} | ||
</p> | ||
`; | ||
/* end snapshot sbb-chip-label renders A11y tree Firefox */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { assert } from '@open-wc/testing'; | ||
import { html } from 'lit/static-html.js'; | ||
|
||
import { fixture } from '../core/testing/private.js'; | ||
|
||
import { SbbChipLabelElement } from './chip-label.js'; | ||
|
||
describe(`sbb-chip-label`, () => { | ||
it('renders', async () => { | ||
const element: SbbChipLabelElement = await fixture( | ||
html`<sbb-chip-label>Label</sbb-chip-label>`, | ||
); | ||
assert.instanceOf(element, SbbChipLabelElement); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { assert } from '@open-wc/testing'; | ||
import { html } from 'lit'; | ||
|
||
import { ssrHydratedFixture } from '../core/testing/private.js'; | ||
|
||
import { SbbChipLabelElement } from './chip-label.js'; | ||
|
||
describe(`sbb-chip-label ssr`, () => { | ||
let root: SbbChipLabelElement; | ||
|
||
beforeEach(async () => { | ||
root = await ssrHydratedFixture(html`<sbb-chip-label>Label</sbb-chip-label>`, { | ||
modules: ['./chip-label.js'], | ||
}); | ||
}); | ||
|
||
it('renders', () => { | ||
assert.instanceOf(root, SbbChipLabelElement); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
src/elements/chip/__snapshots__/chip.snapshot.spec.snap.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.