email-css-resets icon indicating copy to clipboard operation
email-css-resets copied to clipboard

Auto-linking for Samsung android

Open nathankeenmelb opened this issue 2 years ago • 1 comments

In similar vein to the Gmail auto-links, Samsung adds links for dates, phone numbers, addresses and the like.

We can't target them with [x-apple-data-detectors], but we can use the Samsung-specific targeting #MessageViewBody.

So you could then add that to your Gmail CSS like so:

u + .body a, #MessageViewBody a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  }

(I would also suggest reviewing the need for font-size, font-weight and line-height as there's no indication this is set anywhere by any email environment that auto-links)

nathankeenmelb avatar Apr 19 '22 01:04 nathankeenmelb

I've included a fix for Samsung Mail in CSS links reset md file. Will keep the issue open as I need to further investigate if font-size, font-weight and line-height are needed.

JayOram avatar May 02 '23 10:05 JayOram