email-bugs icon indicating copy to clipboard operation
email-bugs copied to clipboard

Windows 10 Mail will underline links by default (even with text-decoration: none specified inline)

Open TaxiTweedy opened this issue 2 years ago • 2 comments

As the title says, Windows 10 Mail will underline links by default, even when text-decoration: none; has been specified inline.

This can cause particular issues with buttons.

To over-ride this behaviour I've found adding a reset CSS style will stop this

a { text-decoration: none; }

Links with text-decoration: underline; inline will be underlined as expected still.

TaxiTweedy avatar Jul 29 '22 16:07 TaxiTweedy

I've included this in the link-resets here, by targeting it specifically inside mso-comments it can fix the links only for windows Outlook. Hate reseting link styling then overriding it inline to get the styling I want 😡

JayOram avatar Aug 03 '22 14:08 JayOram

Nice one @JayOram! Good shout on the mso conditionals, didn't even think about that (it was late on a Friday!)

TaxiTweedy avatar Aug 03 '22 14:08 TaxiTweedy