-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix(Anchor): use text-decoration instead of box-shadow for chromium breaking underline support #1841
Conversation
…reaking lines support
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit a0f07ea:
|
557bf1f
to
d4ed041
Compare
✅ DNB Eufemia Portal deploy preview ready
|
d4ed041
to
69becde
Compare
69becde
to
598ceae
Compare
598ceae
to
a0f07ea
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.
Looks great 👍
One observation/thought is that the "alignment" of the letters/line following the "line break" is a bit further to the left than the 1st/"starting line". Not sure if it should be like this or not 🤔.
This was in Chrome using the Deploy preview:
Yeah, this is because of the tiny padding (left&right). UX wants even more. We should check if we can remove it entirely. |
🎉 This PR is included in version 9.45.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…reaking underline support (#1841) * fix(Anchor): use text-decoration instead of box-shadow for chromium breaking lines support * Update snapshots * Update snapshots additional snapshots
Chromium based browser have no longer support for Anchor underline based on
box-shadow
. At least when I test it.That said, we can still support it (with
inset
and negative offset), but the underline offset is then not enough by 1 or 2px.vs
But now that we do not need to support IE anymore, we can make use of newer CSS properties, like:
text-decoration-color
text-decoration-thickness
text-underline-offset
Out puppeteer chromium version does not support
thickness
from what I can see, so it is 1px thick:I'm not 100% sure if we should release this in v10 or v9 as per now. But I think, it should be ok in v9 as well.