diff --git a/.changeset/shy-peas-count-2.md b/.changeset/shy-peas-count-2.md new file mode 100644 index 0000000000..f304ff3515 --- /dev/null +++ b/.changeset/shy-peas-count-2.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Introduced new focus style for text input and select, and added new wrapper element `.focus-control-wrapper`, `.form-range-wrapper`, `.form-select-wrapper`. diff --git a/.changeset/shy-peas-count.md b/.changeset/shy-peas-count.md new file mode 100644 index 0000000000..0c17785184 --- /dev/null +++ b/.changeset/shy-peas-count.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': patch +--- + +Made styling more coherent for forms elements with High contrast mode and focus/hover state. diff --git a/packages/documentation/.storybook/styles/preview.scss b/packages/documentation/.storybook/styles/preview.scss index fb4aeef83d..8e8414de8c 100644 --- a/packages/documentation/.storybook/styles/preview.scss +++ b/packages/documentation/.storybook/styles/preview.scss @@ -70,7 +70,9 @@ // General styles for content a { - @include utilities.focus-style(); + @include utilities.focus-style() { + border-radius: post.$border-radius; + } } // Style buttons related to the current page next to the tile diff --git a/packages/documentation/src/shared/tile/tile.component.scss b/packages/documentation/src/shared/tile/tile.component.scss index fae7f73886..e59f6fa2f7 100644 --- a/packages/documentation/src/shared/tile/tile.component.scss +++ b/packages/documentation/src/shared/tile/tile.component.scss @@ -7,7 +7,9 @@ $tile-rg-size: var(--post-docs-tile-rg-size, calc($tile-size / 1.2)); :host{ a { - @include utilities.focus-style(); + @include utilities.focus-style() { + border-radius: post.$border-radius; + } } .tile { diff --git a/packages/documentation/src/stories/components/datepicker/datepicker-floating-label.sample.html b/packages/documentation/src/stories/components/datepicker/datepicker-floating-label.sample.html index 801d007aec..c6819bb97c 100644 --- a/packages/documentation/src/stories/components/datepicker/datepicker-floating-label.sample.html +++ b/packages/documentation/src/stories/components/datepicker/datepicker-floating-label.sample.html @@ -1,4 +1,4 @@ -
Error message