diff --git a/.changeset/dull-readers-relate.md b/.changeset/dull-readers-relate.md new file mode 100644 index 00000000000..f3232f8e393 --- /dev/null +++ b/.changeset/dull-readers-relate.md @@ -0,0 +1,5 @@ +--- +"@siemens/ix": major +--- + +Removed the left margin for **ix-chip** and **ix-pill**. This margin was also present if there was no leading sibling that is also a chip/pill causing it to waste screen real estate and distort layout alignments. diff --git a/packages/core/src/components/chip/chip.scss b/packages/core/src/components/chip/chip.scss index 79745ec9a24..4cbe492e0c4 100644 --- a/packages/core/src/components/chip/chip.scss +++ b/packages/core/src/components/chip/chip.scss @@ -16,7 +16,6 @@ position: relative; height: 2rem; max-height: 2rem; - margin-left: vars.$tiny-space; @include component.ix-component; } diff --git a/packages/core/src/components/pill/pill.scss b/packages/core/src/components/pill/pill.scss index 2bb4c5efe06..ec8ae36aa4d 100644 --- a/packages/core/src/components/pill/pill.scss +++ b/packages/core/src/components/pill/pill.scss @@ -16,7 +16,6 @@ position: relative; height: 1.25rem; max-height: 1.25rem; - margin-left: 0.25rem; @include component.ix-component; } diff --git a/testing/visual-testing/__screenshots__/tests/blind/blind.e2e.ts/blind-custom-header-1-chromium---classic-dark-linux.png b/testing/visual-testing/__screenshots__/tests/blind/blind.e2e.ts/blind-custom-header-1-chromium---classic-dark-linux.png index db281c89528..7f162e5f635 100644 Binary files a/testing/visual-testing/__screenshots__/tests/blind/blind.e2e.ts/blind-custom-header-1-chromium---classic-dark-linux.png and b/testing/visual-testing/__screenshots__/tests/blind/blind.e2e.ts/blind-custom-header-1-chromium---classic-dark-linux.png differ diff --git a/testing/visual-testing/__screenshots__/tests/blind/blind.e2e.ts/blind-custom-header-1-chromium---classic-light-linux.png b/testing/visual-testing/__screenshots__/tests/blind/blind.e2e.ts/blind-custom-header-1-chromium---classic-light-linux.png index b9d6fcc587b..f6c8339dff7 100644 Binary files a/testing/visual-testing/__screenshots__/tests/blind/blind.e2e.ts/blind-custom-header-1-chromium---classic-light-linux.png and b/testing/visual-testing/__screenshots__/tests/blind/blind.e2e.ts/blind-custom-header-1-chromium---classic-light-linux.png differ diff --git a/testing/visual-testing/tests/chip/basic/index.html b/testing/visual-testing/tests/chip/basic/index.html index eec1bd5512c..51a656f0192 100644 --- a/testing/visual-testing/tests/chip/basic/index.html +++ b/testing/visual-testing/tests/chip/basic/index.html @@ -13,6 +13,11 @@ content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" /> Stencil Component Starter + -
- Primary - Primary with icon - - Primary - - - Critical - Alarm with icon - + Primary Primary with iconPrimary - Alarm - - + Alarm with icon Alarm - Warning - - Warning - Custom - - - CustomCustom - Custom -
-
- Primary - Primary with icon - + Primary Primary with icon - Primary - - - - Critical - - - Alarm with icon - - PrimaryCriticalAlarm with icon - Alarm - - Alarm - Alarm - - Alarm - Custom - - - CustomCustom - Custom -
- - - Primary + + + Primary
Label