Closed mjabbink closed 2 years ago
I can get this updated in the theme for this large text. this is with a border-bottom of 1px. Is there a spec somewhere so I can get the distance/thickness correct for this font size? The above thick border is just the default browser text-decoration: underline
for text that size.
Jeannie can provide spec. It’s a bit far away in your sketch
A bit of context: we changed spec from box-shadow
to text-decoration
in June because link no longer display as block
correctly. See issue https://github.com/carbon-design-system/carbon/issues/3059 where this is discussed. So link styling is changed to text-decoration: underline
so we don't break the users.
I'm not sure about border
, but any overrides in Gatsby theme, it should be fine. If we want to change the link component Carbon's core, we'd have to do it incrementally, adding a new link component and label old as deprecated...so people who are already using Link have time to switch other.
One advantage of using text decoration is that you get nice styling around the descenders.
text-decoration-thickness
is coming (but only supported by firefox and safari at the moment).
that is a must. It cannot go under the descender.
@vpicone still an issue here. Did we resolve in Gatsby theme? The line is too think here
We should include Jeannie to help sort out the spec.
@jeanservaas
@mjabbink Controlling the thickness of link underlines isn't yet possible in every browser. We can add the property and browsers that recognize it will use it, however Chrome and Edge don't yet support it.
I'm going to move this issue to Carbon and open a PR to add the rule. It's a matter of when, not if Chrome and Edge add support, once they do it'll 'just work' so I feel comfortable adding it now.
@vpicone ok, this one is mega low priority compared to the other stuff we have cooking. I’m totally fine as is until the time comes.
Opened https://github.com/IBM/plex/issues/293 to make sure the thickness is intentional before trying to solve this with css.
Is this still an issue on does the conversation on the Plex repo resolve it?
this appears resolved.
@RyanCaruthers and Jeannie Servaas/Shixie can spec but I think already done.
@alisonjoseph Carbon component issue but needs to be resolved since this is lingering too long.