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

feat(components): add a post-logo component #3354

Merged
merged 19 commits into from
Aug 12, 2024
Merged

Conversation

alizedebray
Copy link
Contributor

No description provided.

@alizedebray alizedebray linked an issue Jul 26, 2024 that may be closed by this pull request
Copy link

changeset-bot bot commented Jul 26, 2024

🦋 Changeset detected

Latest commit: dd6b79c

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-documentation Minor
@swisspost/design-system-components Minor
@swisspost/design-system-components-angular Minor
@swisspost/design-system-components-react Minor
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-styles Minor
@swisspost/design-system-intranet-header Minor
@swisspost/design-system-icons Minor
@swisspost/design-system-migrations Minor
@swisspost/design-system-styles-primeng Minor
@swisspost/design-system-demo Patch
@swisspost/internet-header Patch
@swisspost/design-system-intranet-header-workspace Patch
@swisspost/design-system-styles-primeng-workspace Patch
@swisspost/design-system-intranet-header-showcase 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 Jul 26, 2024

Related Previews

@alizedebray alizedebray marked this pull request as ready for review July 29, 2024 14:12
@alizedebray alizedebray requested a review from a team as a code owner July 29, 2024 14:12
@alizedebray alizedebray self-assigned this Jul 29, 2024
@alizedebray alizedebray added the 🚂 PR train PR which follows another one. label Jul 29, 2024
@alizedebray alizedebray requested a review from gfellerph July 29, 2024 14:13
@alizedebray alizedebray force-pushed the 3206-component-logo branch from 9ae7ec1 to 7fb0696 Compare July 29, 2024 15:01
@alizedebray alizedebray changed the base branch from main to 3357-remove-card-control-scss-import July 30, 2024 15:03
@alizedebray alizedebray changed the base branch from 3357-remove-card-control-scss-import to main July 31, 2024 09:58
@alizedebray alizedebray removed the 🚂 PR train PR which follows another one. label Jul 31, 2024
Copy link
Member

@gfellerph gfellerph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

.logo {
display: inline-block;
height: 100%;
aspect-ratio: 1 / 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had issues with Safari 14 which does not support aspect-ratio and displayed a logo that covered the whole screen. I can't test the preview on Safari 14 because Storybook apparently does not run on this browser. I'm not sure what the fallback would look like, but I'd like to ensure that this does not happen again with the new header (I know, Safari 14 is officially not supported anymore, but there was more than one support call from end-users for this issue).

Copy link

@alizedebray alizedebray merged commit 1b7d47c into main Aug 12, 2024
10 checks passed
@alizedebray alizedebray deleted the 3206-component-logo branch August 12, 2024 15:15
gfellerph pushed a commit that referenced this pull request Aug 22, 2024
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.


# Releases
## @swisspost/[email protected]

### Minor Changes

- Added the post-logo component, which enables displaying the Post's
logo either as a clickable link or as a simple image. (by
[@alizedebray](https://github.com/alizedebray) with
[#3354](#3354))

### Patch Changes

- Fixed the `post-card-control` component to use the correct color
scheme when placed on nested colored backgrounds. (by
[@alizedebray](https://github.com/alizedebray) with
[#3358](#3358))
-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Minor Changes

- Added the post-logo component, which enables displaying the Post's
logo either as a clickable link or as a simple image. (by
[@alizedebray](https://github.com/alizedebray) with
[#3354](#3354))

### Patch Changes

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

## @swisspost/[email protected]

### Minor Changes

- Added icon number 2612. (by
[@swisspost-bot](https://github.com/swisspost-bot) with
[#3373](#3373))

## @swisspost/[email protected]

### Minor Changes

-   Added four new entry files that enable working with Design Tokens:
    -   post-external.(s)css: For portal and other external pages
    -   post-internal.(s)css: For applications and other internal pages
    -   post-tokens-external.(s)css: External tokens only
- post-tokens-internal.(s)css: Internal tokens only (by
[@gfellerph](https://github.com/gfellerph) with
[#3349](#3349))

### Patch Changes

- Realigned the checkbox and the radio button with the label. (by
[@davidritter-dotcom](https://github.com/davidritter-dotcom) with
[#3366](#3366))

- Set the `max-width` constraint of the tag component to 100% for
improved accessibility. Try to keep tag text as short as possible
though. (by [@gfellerph](https://github.com/gfellerph) with
[#3388](#3388))

## @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]

### Minor Changes

- Added the post-logo component, which enables displaying the Post's
logo either as a clickable link or as a simple image. (by
[@alizedebray](https://github.com/alizedebray) with
[#3354](#3354))

### Patch Changes

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

## @swisspost/[email protected]

### Minor Changes

- Added the post-logo component, which enables displaying the Post's
logo either as a clickable link or as a simple image. (by
[@alizedebray](https://github.com/alizedebray) with
[#3354](#3354))

### Patch Changes

- Fixed the font in the full page previews. (by
[@alizedebray](https://github.com/alizedebray) with
[#3378](#3378))

- Marked the card button and the carousel as deprecated (will be removed
in a future version). (by [@schaertim](https://github.com/schaertim)
with [#3380](#3380))

-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @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]
    -   @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.

Component: Logo
3 participants