Skip to content

Commit

Permalink
fix: define CSS custom properties for header/crumbs/footer (#2793)
Browse files Browse the repository at this point in the history
If the Internet Header was used without having the styles as a global
stylesheet, some CSS custom properties were not defined. This lead to
focus rings not being visible. Extending the light theme colors for all
the entry components defines these properties even if the styles package
is not being used.
  • Loading branch information
gfellerph authored Mar 18, 2024
1 parent 35aa0f0 commit a2dea9a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-spies-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/internet-header': patch
---

Fixed an issue with invisible focus rings when not using the Design System Styles along with the Swisspost Internet Header. Focus rings are now displayed as expected.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use '@swisspost/design-system-styles/placeholders';
@use '@swisspost/design-system-styles/placeholders/color' as color-ph;
@use '@swisspost/design-system-styles/components/button';
@use '@swisspost/design-system-styles/components/grid';
@use '@swisspost/design-system-styles/components/spinner';
Expand All @@ -9,6 +9,8 @@
@use '../../utils/mixins.scss';

:host {
@extend %color-background-light-variables;

display: block;
position: relative;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
@use "@swisspost/design-system-styles/components/grid";
@use "@swisspost/design-system-styles/variables/color";
@use "@swisspost/design-system-styles/placeholders/text";
@use "@swisspost/design-system-styles/functions";
@use "@swisspost/design-system-styles/components/button";
@use "../../utils/utils.scss";
@use "../../utils/mixins.scss";
@use '@swisspost/design-system-styles/components/grid';
@use '@swisspost/design-system-styles/variables/color';
@use '@swisspost/design-system-styles/placeholders/text';
@use '@swisspost/design-system-styles/placeholders/color' as color-ph;
@use '@swisspost/design-system-styles/functions';
@use '@swisspost/design-system-styles/components/button';
@use '../../utils/utils.scss';
@use '../../utils/mixins.scss';

:host {
@extend %color-background-light-variables;

display: block;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
@use '@swisspost/design-system-styles/variables/color';
@use '@swisspost/design-system-styles/placeholders/color' as color-ph;
@use '../../utils/utils.scss';
@use '../../utils/mixins.scss';
@use './logo-animation/logo-animation.scss';

:host {
@extend %color-background-light-variables;

display: block;
position: relative;
font-size: 1rem;
Expand Down

0 comments on commit a2dea9a

Please sign in to comment.