Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(components, styles): move header css variables to styles package #4663

Merged
merged 7 commits into from
Feb 19, 2025

Conversation

leagrdv
Copy link
Contributor

@leagrdv leagrdv commented Feb 13, 2025

No description provided.

@leagrdv leagrdv requested a review from a team as a code owner February 13, 2025 08:16
@leagrdv leagrdv requested a review from alizedebray February 13, 2025 08:16
@leagrdv leagrdv linked an issue Feb 13, 2025 that may be closed by this pull request
Copy link

changeset-bot bot commented Feb 13, 2025

🦋 Changeset detected

Latest commit: 3879058

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@swisspost/design-system-components Patch
@swisspost/design-system-styles Patch
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-components-react Patch
@swisspost/design-system-documentation Patch
@swisspost/design-system-components-angular Patch
@swisspost/internet-header Patch
@swisspost/design-system-intranet-header-workspace Patch
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-styles-primeng-workspace Patch
@swisspost/design-system-intranet-header Patch
@swisspost/design-system-styles-primeng Patch
@swisspost/design-system-intranet-header-showcase Patch
@swisspost/design-system-tokens Patch
@swisspost/design-system-icons Patch
@swisspost/design-system-migrations Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Feb 13, 2025

Related Previews

@leagrdv leagrdv requested a review from alizedebray February 19, 2025 15:32
@leagrdv leagrdv merged commit fd38fbf into main Feb 19, 2025
10 checks passed
@leagrdv leagrdv deleted the 4656-move-header-css-variables-to-the-styles-package branch February 19, 2025 16:02
oliverschuerch pushed a commit that referenced this pull request Feb 21, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @swisspost/[email protected]

### Major Changes

- Removed deprecated legacy utility classes. (by
[@leagrdv](https://github.com/leagrdv) with
[#4631](#4631))

- Removed some utility spacing/sizing sizes to better reflect the ones
used on Figma. (by [@leagrdv](https://github.com/leagrdv) with
[#4588](#4588))

### Minor Changes

- Added helper classes to the `.section` component, which allow content
to bleed out to the edge of the `.section` or the `.container` element.
Either on both sides, or only to the left or right edge. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#4741](#4741))

- Added new css component `.section` to be used as wrapper for hero
elements and/or palettes. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#4733](#4733))

- Added a new CSS output file that includes all the utility classes. (by
[@alizedebray](https://github.com/alizedebray) with
[#4613](#4613))

### Patch Changes

- Internalized Bootstrap `.text-truncate` class into the Design System.
(by [@veyaromain](https://github.com/veyaromain) with
[#4599](#4599))

- Update the `--header-height` custom property to take the scroll
position and reduced header height into account. (by
[@alizedebray](https://github.com/alizedebray) with
[#4746](#4746))

- Added high contrast mode styles for header. (by
[@myrta2302](https://github.com/myrta2302) with
[#4262](#4262))

- Removed the custom properties from the `post-header` component styles
and moved them to the styles package. This change allows these
properties to be accessed before the component is loaded. (by
[@leagrdv](https://github.com/leagrdv) with
[#4663](#4663))

## @swisspost/[email protected]

### Minor Changes

- Changed list version of `post-language-switch` to always keep the same
order of `post-language-options`. (by
[@schaertim](https://github.com/schaertim) with
[#4706](#4706))

- Added optional safe triangle and trapezoid to `post-popovercontainer`
to improve accessability. (by [@schaertim](https://github.com/schaertim)
with [#4436](#4436))

- Enhanced the `post-linkarea` component so that modifier keys (`ctrl`,
`shift`, `alt`, `meta`) are passed along when clicking the component.
(by [@alizedebray](https://github.com/alizedebray) with
[#4696](#4696))

- Updated the `post-icon` component to make it SSR conform. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#4697](#4697))

### Patch Changes

- Improved keyboard navigation for the `post-megadropdown` by focusing
on the first element when it is opened with the Enter key and returning
the focus to the trigger when it is closed. (by
[@schaertim](https://github.com/schaertim) with
[#4625](#4625))

- Fixed the correct assignment of the expanded attribute in the
`post-menu` component, ensuring proper aria-expanded handling in
components utilizing `post-menu`, such as `post-language-switch` and
`post-breadcrumb`. (by
[@alionazherdetska](https://github.com/alionazherdetska) with
[#4661](#4661))

- Tokenized the back to top button's shadow. (by
[@leagrdv](https://github.com/leagrdv) with
[#4641](#4641))

- Cleaned up possible side effects on `post-header` by adding a
`disconnectedCallback()` function. (by
[@leagrdv](https://github.com/leagrdv) with
[#4736](#4736))

- Duplicated `post-mainnavigation` links' content to avoid layout shift
on active elements. (by [@leagrdv](https://github.com/leagrdv) with
[#4694](#4694))

- Added documentation for the `design-system-components-react` package.
(by [@leagrdv](https://github.com/leagrdv) with
[#4669](#4669))

- Fixed the `post-language-switch` component to support any boolean
notation for the `active` attribute on `post-language-option`. (by
[@alizedebray](https://github.com/alizedebray) with
[#4701](#4701))

- Fixed focus order on desktop for `post-megadropdown` component. (by
[@alionazherdetska](https://github.com/alionazherdetska) with
[#4379](#4379))

- Added high contrast mode styles for header. (by
[@myrta2302](https://github.com/myrta2302) with
[#4262](#4262))

- Fixed the animation glitch when switching between megadropdowns. (by
[@leagrdv](https://github.com/leagrdv) with
[#4723](#4723))

- Fixed the `post-header` component to correctly set the
`--local-header-height` property. (by
[@alizedebray](https://github.com/alizedebray) with
[#4746](#4746))

- Switched from thrown error to logged errors when `post-list` title is
missing. (by [@leagrdv](https://github.com/leagrdv) with
[#4725](#4725))

- Fixed overflow handling in the main navigation to ensure all
navigation items can be accessed. (by
[@alizedebray](https://github.com/alizedebray) with
[#4666](#4666))

- Added a line separator between the header and the page content. (by
[@leagrdv](https://github.com/leagrdv) with
[#4637](#4637))

- Removed the custom properties from the `post-header` component styles
and moved them to the styles package. This change allows these
properties to be accessed before the component is loaded. (by
[@leagrdv](https://github.com/leagrdv) with
[#4663](#4663))

- Updated the post-linkarea component so that it no longer uses the
`Window` object. (by [@alizedebray](https://github.com/alizedebray) with
[#4696](#4696))

-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Minor Changes

- Added a new output that includes utility tokens as Sass maps, enabling
direct iteration to generate utility classes. (by
[@alizedebray](https://github.com/alizedebray) with
[#4613](#4613))

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]



## @swisspost/[email protected]

### Major Changes

- Removed deprecated legacy utility classes. (by
[@leagrdv](https://github.com/leagrdv) with
[#4631](#4631))

- Removed some utility spacing/sizing sizes to better reflect the ones
used on Figma. (by [@leagrdv](https://github.com/leagrdv) with
[#4588](#4588))

### Minor Changes

- Added docs page for the new `.section` css component. (by
[@oliverschuerch](https://github.com/oliverschuerch) with
[#4733](#4733))

- Internalized Bootstrap `.text-truncate` class into the Design System.
(by [@veyaromain](https://github.com/veyaromain) with
[#4599](#4599))

### Patch Changes

- Moved `Heading` documentation from components to typography section.
(by [@leagrdv](https://github.com/leagrdv) with
[#4655](#4655))
-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Major Changes

- Removed deprecated legacy utility classes. (by
[@leagrdv](https://github.com/leagrdv) with
[#4631](#4631))

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move header css variables to the styles package
3 participants