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: add the ability to use our icons from within SCSS #4136

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

oliverschuerch
Copy link
Contributor

@oliverschuerch oliverschuerch commented Dec 3, 2024

I've used one icon from the current Post IconSet (icon: 1000) and one from the new UI IconSet (icon accessibility).

Both have been tested with the new post-icon mixin and the post-icon web-component.
The icons have been implemented into and were served by the test project itself.

Windows 10

  • Chrome 80, 90, 100, 110, 120, 130, 131
  • Edge 80, 100, 120, 131
  • Firefox 80, 100, 120, 131
  • Opera 80, 100, 115

Android

  • Chrome 9, 10, 12, 14

Mac OS

  • Safari 12, 13, 14, 15, 16, 17, 18
  • Chrome 80
  • Firefox 80
  • Opera 80

iOS

  • Safari 13, 16, 18

iPadOS

  • Safari 12, 14, 16, 18

@oliverschuerch oliverschuerch requested review from a team as code owners December 3, 2024 16:31
Copy link

changeset-bot bot commented Dec 3, 2024

🦋 Changeset detected

Latest commit: 2c7ce5d

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-styles Minor
@swisspost/design-system-icons Minor
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-components Minor
@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 Minor
@swisspost/design-system-styles-primeng Minor
@swisspost/design-system-components-react Minor
@swisspost/design-system-components-angular Minor
@swisspost/design-system-intranet-header-showcase Patch
@swisspost/design-system-tokens Minor
@swisspost/design-system-migrations Minor

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

@oliverschuerch oliverschuerch requested review from alizedebray and removed request for gfellerph December 3, 2024 16:31
@swisspost-bot
Copy link
Contributor

swisspost-bot commented Dec 3, 2024

Related Previews

Comment on lines 27 to 31
return `@container pi ${[min, max].filter(Boolean).join(' and ')} {
g {
--pis-${size}: block;
}
}`;
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a fallback for browsers that don't support container queries?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not necessary anymore, because I switched to use media queries. They are working great, and are supported since almost a decade. Please have a look at the tested browsers at the top of this PR.

@oliverschuerch oliverschuerch marked this pull request as draft December 4, 2024 10:31
oliverschuerch and others added 3 commits December 17, 2024 21:44
….mdx

Co-authored-by: Philipp Gfeller <1659006+gfellerph@users.noreply.github.com>
# Conflicts:
#	packages/documentation/src/stories/foundations/icons/icon.styles.scss
@oliverschuerch oliverschuerch marked this pull request as ready for review December 18, 2024 14:17
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.

3 participants