diff --git a/src/elements/navigation/navigation-button/navigation-button.visual.spec.ts b/src/elements/navigation/navigation-button/navigation-button.visual.spec.ts
index ef7a6a3905..c85efdd282 100644
--- a/src/elements/navigation/navigation-button/navigation-button.visual.spec.ts
+++ b/src/elements/navigation/navigation-button/navigation-button.visual.spec.ts
@@ -13,18 +13,28 @@ describe(`sbb-navigation-button`, () => {
const sizeCases = ['s', 'm', 'l'];
describeViewports({ viewports: ['zero', 'medium'] }, () => {
+ for (const state of [visualDiffDefault, visualDiffHover, visualDiffFocus]) {
+ it(
+ state.name,
+ state.with(async (setup) => {
+ await setup.withFixture(html` Label `, {
+ backgroundColor: 'var(--sbb-color-midnight)',
+ focusOutlineDark: true,
+ });
+ }),
+ );
+ }
+
for (const size of sizeCases) {
- for (const state of [visualDiffDefault, visualDiffHover, visualDiffFocus]) {
- it(
- `size=${size} ${state.name}`,
- state.with(async (setup) => {
- await setup.withFixture(
- html` Label `,
- { backgroundColor: 'var(--sbb-color-midnight)', focusOutlineDark: true },
- );
- }),
- );
- }
+ it(
+ `size=${size}`,
+ visualDiffDefault.with(async (setup) => {
+ await setup.withFixture(
+ html` Label `,
+ { backgroundColor: 'var(--sbb-color-midnight)', focusOutlineDark: true },
+ );
+ }),
+ );
}
});
});
diff --git a/src/elements/navigation/navigation-link/navigation-link.visual.spec.ts b/src/elements/navigation/navigation-link/navigation-link.visual.spec.ts
index 6b45068320..66d09b17fa 100644
--- a/src/elements/navigation/navigation-link/navigation-link.visual.spec.ts
+++ b/src/elements/navigation/navigation-link/navigation-link.visual.spec.ts
@@ -13,18 +13,28 @@ describe(`sbb-navigation-link`, () => {
const sizeCases = ['s', 'm', 'l'];
describeViewports({ viewports: ['zero', 'medium'] }, () => {
+ for (const state of [visualDiffDefault, visualDiffHover, visualDiffFocus]) {
+ it(
+ state.name,
+ state.with(async (setup) => {
+ await setup.withFixture(
+ html` Label `,
+ { backgroundColor: 'var(--sbb-color-midnight)', focusOutlineDark: true },
+ );
+ }),
+ );
+ }
+
for (const size of sizeCases) {
- for (const state of [visualDiffDefault, visualDiffHover, visualDiffFocus]) {
- it(
- `size=${size} ${state.name}`,
- state.with(async (setup) => {
- await setup.withFixture(
- html` Label `,
- { backgroundColor: 'var(--sbb-color-midnight)', focusOutlineDark: true },
- );
- }),
- );
- }
+ it(
+ `size=${size}`,
+ visualDiffDefault.with(async (setup) => {
+ await setup.withFixture(
+ html` Label `,
+ { backgroundColor: 'var(--sbb-color-midnight)', focusOutlineDark: true },
+ );
+ }),
+ );
}
});
});