-
Notifications
You must be signed in to change notification settings - Fork 77
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(@vtmn/css
, @vtmn/svelte
, @vtmn/react
, @vtmn/vue
): rework VtmnNavbarLink
for SSR
#1425
Conversation
.../showcases/svelte/stories/components/navigation/VtmnNavbarLink/VtmnNavbarLink.stories.svelte
Outdated
Show resolved
Hide resolved
@vtmn/css
, @vtmn/svelte
, @vtmn/react
, @vtmn/vue
): rework VtmnNavbarLink
for SSR SSR@vtmn/css
, @vtmn/svelte
, @vtmn/react
, @vtmn/vue
): rework VtmnNavbarLink
for SSR
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.
Thanks @Tlahey, for me that's ok but still a difference for the badge position:
Repro: yarn start:css
& go to http://localhost:6006/?path=/story/components-navigation-navbar--overview
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.
That's better! Thanks @Tlahey
packages/sources/react/src/components/navigation/VtmnNavbarLink/VtmnNavbarLink.tsx
Outdated
Show resolved
Hide resolved
packages/sources/react/src/components/navigation/VtmnNavbarLink/VtmnNavbarLink.tsx
Show resolved
Hide resolved
48547d0
to
d679169
Compare
BREAKING CHANGES: 'VtmnNavbarLink' remove properties label and showLabel, replaced by a span slot
4439223
to
f880bcc
Compare
Since it's a breaking change, how come it was released as |
Totally agree, with the |
BREAKING CHANGE: 'VtmnNavbarLink' remove properties label and showLabel, replaced by a span slot
Changes description
Move the Label property into slot in order to apply a
sr-only
with breakpoints.Context
With SSR, it is not possible to detect the width of the device. So, in order to avoid flikering effects, we have to set the label on a slot in order to apply style show/hidden on it.
How it looks
On the navbar
Checklist
design-system-core-team-design
GitHub team.Does this introduce a breaking change?
Other information
Rework the css part and enhancer the CSS in order to match the figma with the VtmnBadge.
Current :
Target :