-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(link): fix multi-line link text-decorations
- Loading branch information
1 parent
0347225
commit 025991e
Showing
3 changed files
with
43 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/components/src/core/Link/__storybook__/stories/longText.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Typography } from "@mui/material"; | ||
import { LONG_LOREM_IPSUM } from "src/common/storybook/loremIpsum"; | ||
import RawLink from "src/core/Link"; | ||
|
||
export const LongerTextDemo = (): JSX.Element => { | ||
return ( | ||
<> | ||
<Typography variant="h4" sx={{ mb: 2 }}> | ||
Default Link with Long Text | ||
</Typography> | ||
<RawLink href="#" sdsStyle="default"> | ||
{LONG_LOREM_IPSUM} | ||
</RawLink> | ||
|
||
<Typography variant="h4" sx={{ mb: 2, mt: 6 }}> | ||
Dashed Link with Long Text | ||
</Typography> | ||
<RawLink href="#" sdsStyle="dashed"> | ||
{LONG_LOREM_IPSUM} | ||
</RawLink> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters