-
Notifications
You must be signed in to change notification settings - Fork 14
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(internet-header): expose CSS custom properties #3200
feat(internet-header): expose CSS custom properties #3200
Conversation
🦋 Changeset detectedLatest commit: bd68e7b The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
Related Previews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alizedebray I think this is the way to go. Are the global styles delivered via JS or do the projects have to import an additional CSS file?
@gfellerph global styles have to be added manually by the consumers. This is why I declared the variables both on the The main drawback with this approach (apart from duplication) is that is makes the header height customizable... Otherwise we could expose the SCSS variables but then it is no longer framework agnostic. |
bc9a05a
to
a03c6be
Compare
That's perfect. Can you please add documentation how to do that?
I think that's negligible. If you want to break the header, there are a thousand ways to do so. Setting this variable by mistake is an easy fix. |
@gfellerph Sure, I added the documentation this morning: https://preview-3200--swisspost-design-system-next.netlify.app/?path=/docs/bfdf4e7c-37d3-40f8-a5d0-734f3e6612b5--docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
Co-authored-by: Philipp Gfeller <[email protected]>
|
No description provided.