diff --git a/src/elements/chip-label.ts b/src/elements/chip-label.ts
new file mode 100644
index 0000000000..ffae43edb9
--- /dev/null
+++ b/src/elements/chip-label.ts
@@ -0,0 +1 @@
+export * from './chip-label/chip-label.js';
diff --git a/src/elements/chip-label/__snapshots__/chip-label.snapshot.spec.snap.js b/src/elements/chip-label/__snapshots__/chip-label.snapshot.spec.snap.js
new file mode 100644
index 0000000000..1da3f4c184
--- /dev/null
+++ b/src/elements/chip-label/__snapshots__/chip-label.snapshot.spec.snap.js
@@ -0,0 +1,55 @@
+/* @web/test-runner snapshot v1 */
+export const snapshots = {};
+
+snapshots["sbb-chip-label renders DOM"] =
+`
+ { + "role": "WebArea", + "name": "", + "children": [ + { + "role": "text", + "name": "Label" + } + ] +} +
+`; +/* end snapshot sbb-chip-label renders A11y tree Chrome */ + +snapshots["sbb-chip-label renders A11y tree Firefox"] = +`+ { + "role": "document", + "name": "", + "children": [ + { + "role": "text leaf", + "name": "Label" + } + ] +} +
+`; +/* end snapshot sbb-chip-label renders A11y tree Firefox */ + diff --git a/src/elements/chip/chip.scss b/src/elements/chip-label/chip-label.scss similarity index 52% rename from src/elements/chip/chip.scss rename to src/elements/chip-label/chip-label.scss index afcd0c0023..1417f8d3bd 100644 --- a/src/elements/chip/chip.scss +++ b/src/elements/chip-label/chip-label.scss @@ -8,35 +8,35 @@ } :host([color='milk']) { - @include sbb.chip-variables--color-milk; + @include sbb.chip-label-variables--color-milk; } :host([color='charcoal']) { - @include sbb.chip-variables--color-charcoal; + @include sbb.chip-label-variables--color-charcoal; } :host([color='white']) { - @include sbb.chip-variables--color-white; + @include sbb.chip-label-variables--color-white; } :host([color='granite']) { - @include sbb.chip-variables--color-granite; + @include sbb.chip-label-variables--color-granite; } :host([size='xxs']) { - @include sbb.chip-variables--size-xxs; + @include sbb.chip-label-variables--size-xxs; } :host([size='xs']) { - @include sbb.chip-variables--size-xs; + @include sbb.chip-label-variables--size-xs; } :host([size='s']) { - @include sbb.chip-variables--size-s; + @include sbb.chip-label-variables--size-s; } -.sbb-chip { - @include sbb.chip-rules; +.sbb-chip-label { + @include sbb.chip-label-rules; & { display: flex; @@ -44,5 +44,5 @@ } .sbb-chip__text-wrapper { - @include sbb.chip-rules-ellipsis; + @include sbb.chip-label-rules-ellipsis; } diff --git a/src/elements/chip/chip.snapshot.spec.ts b/src/elements/chip-label/chip-label.snapshot.spec.ts similarity index 66% rename from src/elements/chip/chip.snapshot.spec.ts rename to src/elements/chip-label/chip-label.snapshot.spec.ts index dc47f167e7..99d8f50fcf 100644 --- a/src/elements/chip/chip.snapshot.spec.ts +++ b/src/elements/chip-label/chip-label.snapshot.spec.ts @@ -3,16 +3,16 @@ import { html } from 'lit/static-html.js'; import { fixture, testA11yTreeSnapshot } from '../core/testing/private.js'; -import type { SbbChipElement } from './chip.js'; +import type { SbbChipLabelElement } from './chip-label.js'; -import './chip.js'; +import './chip-label.js'; -describe(`sbb-chip`, () => { - let element: SbbChipElement; +describe(`sbb-chip-label`, () => { + let element: SbbChipLabelElement; describe('renders', () => { beforeEach(async () => { - element = await fixture(html`- { - "role": "WebArea", - "name": "", - "children": [ - { - "role": "text", - "name": "Label" - } - ] -} -
-`; -/* end snapshot sbb-chip renders A11y tree Chrome */ - -snapshots["sbb-chip renders A11y tree Firefox"] = -`- { - "role": "document", - "name": "", - "children": [ - { - "role": "text leaf", - "name": "Label" - } - ] -} -
-`; -/* end snapshot sbb-chip renders A11y tree Firefox */ - diff --git a/src/elements/chip/chip.spec.ts b/src/elements/chip/chip.spec.ts deleted file mode 100644 index 6056d33d32..0000000000 --- a/src/elements/chip/chip.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { assert } from '@open-wc/testing'; -import { html } from 'lit/static-html.js'; - -import { fixture } from '../core/testing/private.js'; - -import { SbbChipElement } from './chip.js'; - -describe(`sbb-chip`, () => { - it('renders', async () => { - const element: SbbChipElement = await fixture(html`