-
Notifications
You must be signed in to change notification settings - Fork 1
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(web, web-twig, web-react): Introduce prop underline
to Link
component
#1565
Conversation
✅ Deploy Preview for spirit-design-system-storybook canceled.
|
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
102130c
to
f6b8bf2
Compare
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.
Just a few nitpicks. As a whole it looks fine. Thanks 👍
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.
Please update visual tests as well. The react should have a screenshot.
Also, I am a bit surprised the TS tests are working. You specify the prop in types as underlined
, but use underline
. Shouldn't it fail somewhere?
packages/web-twig/src/Resources/components/Link/stories/LinkUnderline.twig
Outdated
Show resolved
Hide resolved
packages/web-twig/src/Resources/components/Link/Link.stories.twig
Outdated
Show resolved
Hide resolved
packages/web-react/src/components/Link/__tests__/useLinkStyleProps.test.ts
Show resolved
Hide resolved
packages/web-react/src/components/Link/__tests__/useLinkStyleProps.test.ts
Show resolved
Hide resolved
8e2ffb6
to
8965d7f
Compare
8965d7f
to
e79223a
Compare
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!
We just need to document the deprecations more.
There should be mention in both of these files:
- packages/web-react/DEPRECATIONS.md
- packages/web-twig/DEPRECATIONS.md
If I remember correctly, there could be a migration guide as well. So we can then copy it to the migration instructions.
Deprecation files updated, thank you for remebering! |
- Add new prop `underlined` to Link component - Deprecate prop `isUnderlined` in Link component - Update demo and stories for Link component Solves #DS-943
- Add new prop `underlined` to Link component - Deprecate prop `isUnderlined` in Link component - Update demo for Link component Solves #DS-943
- replacing the `isUnderlined` prop with a new `underlined` prop and set it to "always" if true
b7da21c
to
9b260f6
Compare
Description
Additional context
underline
to Link componentisUnderline
in Link componentIssue reference
Podtržení odkazů na hover je někdy nežádoucí