gl-link sets a different font size from wrapping text
Description
In most cases, our links are displayed using the font-base size (px-to-rem(14px)
) but in some cases we want our links to simply inherit the font size from surrounding text.
For example, by default the text here will have different sizes:
<p class="gl-font-sm">
This is a <gl-link>link</gl-link>
</p>
In our product this can be seen when we use gl-link
in a container with smaller text:
I must add an additional gl-reset-font-size
in the link to fix this problem:
Edited by Miguel Rincon