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(component): improve header overflow handling #4273

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

Conversation

alizedebray
Copy link
Contributor

No description provided.

@alizedebray alizedebray requested a review from a team as a code owner December 13, 2024 19:23
@alizedebray alizedebray linked an issue Dec 13, 2024 that may be closed by this pull request
@swisspost-bot
Copy link
Contributor

swisspost-bot commented Dec 13, 2024

Related Previews

Copy link

changeset-bot bot commented Dec 16, 2024

⚠️ No Changeset found

Latest commit: 066dfa9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@alizedebray alizedebray marked this pull request as draft December 16, 2024 09:21
@alizedebray alizedebray marked this pull request as ready for review December 16, 2024 10:01
@alizedebray alizedebray requested a review from a team as a code owner December 16, 2024 10:01
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.

Generally looks nice, but noticed something strange if one element has a very long name
image

Copy link
Contributor

@oliverschuerch oliverschuerch left a comment

Choose a reason for hiding this comment

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

There is no changeset file.

Copy link
Contributor

Choose a reason for hiding this comment

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

As mentioned before, we could replace the implemented breakpoint detection by just using the now existing breakpoints utility in the components package.
You can see how it works in the <post-footer> component or come to me and ask, if you have questions.
I don't say it's mandatory to implement it here, but it would probably make a lot of sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you create a ticket for that?

Comment on lines 78 to 86
.left-scroll-button {
inset-inline-start: 0;
padding-inline-end: 20px;
}

.right-scroll-button {
inset-inline-end: 0;
padding-inline-start: 20px;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The box-shadow on the buttons (on desktop) gets cut off, because the inline paddings are to small.
This inline paddings should be at least 28px.
image

Comment on lines +66 to +69
background: var(--post-core-color-brand-white);
padding: var(--post-core-dimension-16);
box-shadow: var(--post-core-elevation-5);
line-height: var(--post-core-line-height-100);
Copy link
Contributor

Choose a reason for hiding this comment

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

I once more recommend: Never use core- or semantic-tokens, but instead use hardcoded values for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

First time with me!
Can we discuss this? Currently the whole header is using semantic tokens and I would like to understand why you prefer raw values. Also, I would rather handle this in a separate ticket as it would involve a lot of changes not related to this PR.

@gfellerph gfellerph removed their request for review January 8, 2025 15:44
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.

Little hard to show it but if I add a lot of links, I can't scroll to the end of the list, the two megadropdowns are hidden and it won't scroll any further.

image

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.

Main navigation overflow
4 participants