-
Notifications
You must be signed in to change notification settings - Fork 23
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
Make badge in tab-bar grow/expand right #2430
Conversation
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.
Nice!
Although, it looks a bit like the position is not exactly like in the screenshot in #2432 for mobile view.
libs/designsystem/src/lib/components/tabs/tab-button/tab-button.component.scss
Outdated
Show resolved
Hide resolved
5e0196d
to
1f94a13
Compare
// Magic values here as we have no tokens that gives | ||
// badge the correct position in relation to the tab icon | ||
--kirby-badge-top: -1em; | ||
--kirby-badge-left: 1.4em; |
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.
You could argue that this is redundant since you're declaring --kirby-badge-left
with the same value as it already had - but I think it's also ok to leave it for clarity.
Unfortunately requirements changed after implementation so closing this PR. Can still be used as inspiration for the mobile part. |
Which issue does this PR close?
This PR closes #2432
What is the new behavior?
Does this PR introduce a breaking change?
Are there any additional context?
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Reminders
Review
When the pull request has been approved it will be merged to
develop
by Team Kirby.