-
Notifications
You must be signed in to change notification settings - Fork 111
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
Underline is not a Decoration #158
Comments
Here is a codepen comparing dimensions of text with and without underline: Check out the console logs. |
Unfortunately it seems this can impact the layout. For example I arbitrary added
Maybe this is a bug in the browser, I don't know. |
@rlefevre can u share the updated codepen? |
With font-size: 34px I get |
I don't have an account, sorry. It is maybe specific to Firefox 70.
for me with FF 70. PS: I used another computer with another default font previously, hence the different numbers. |
You do not need an account. I use FF 70.0.1 |
Which OS? Your numbers are so different from mine. |
Ubuntu 18.04. With Arial it's the same width. |
I cannot save: Could you try
|
Is there currently a workaround for this and similar issues (e.g. putting |
Not that I'm aware off - you'll have to use a CSS class and a style tag at least. |
Interesting discussion from Slack: lydell sethro dmy lydell dmy lydell dmy |
Tip from @rlefevre – fake it with a border: https://ellie-app.com/7fFKkBZH9Pra1 Note, however, that it is not possible (?) to make an underline that skips descenders, like (See also: https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-skip-ink) The border approach also does not work for line-wrapped text. |
More interesting discussion from Slack: spell dmy lydell
What does this mean? dmy
lydell dmy lydell dmy lydell dmy
lydell dmy Jan Wirth dmy |
Particularly the underline text decoration only appears during the `mouseOver` event. Note: Due to the following oversight/bug we have to use a border: mdgriffith/elm-ui#158
Font.underline
is not a decoration even though it is not modifying layout.https://ellie-app.com/6Y25dmJQWKJa1
Expected behavior
It should compile (change the type of
underline
toFont.underline : Attribute Never Never
OR
Add to the documentation why this is NOT a decoration.
Versions
[email protected]
The text was updated successfully, but these errors were encountered: