Skip to content

Commit 5b26d1b

Browse files
committed
fix styles for Link sizes
1 parent 1b7d1a2 commit 5b26d1b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/components/Link/link.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,24 @@
44
.#{$prefix}--link {
55
&,
66
&:hover {
7+
// default case: use font size from context
78
font-size: 1em;
89
line-height: inherit;
910
}
1011

12+
&.#{$prefix}--link--sm {
13+
font-size: $eccgui-size-typo-caption;
14+
line-height: $eccgui-size-typo-caption-lineheight;
15+
}
16+
&.#{$prefix}--link--md {
17+
font-size: $eccgui-size-typo-text;
18+
line-height: $eccgui-size-typo-text-lineheight;
19+
}
20+
&.#{$prefix}--link--lg {
21+
font-size: $eccgui-size-typo-subtitle;
22+
line-height: $eccgui-size-typo-subtitle-lineheight;
23+
}
24+
1125
&:focus {
1226
outline: none;
1327
outline-offset: 0;

0 commit comments

Comments
 (0)