iOS - telephone numbers have the default link colour
See original GitHub issueOn iOS telephone numbers are detected and formatted into a link automatically, because this link does not have a govuk-link
class it is not styled correctly.
In our service we use a bit of custom CSS to fix the issue (below), maybe this should be added to the govuk-frontend
a[href^="tel"] {
@extend %govuk-link;
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
html - How do I remove the blue styling of telephone numbers ...
Target links with href values starting with tel by using this css attribute selector: ... This will help you to override phone number...
Read more >4 ways to fix iPhone numbers converted into blue ... - Medium
Default, Safari on iOS is auto-formatting a phone number to convert into a link because a user can simply tap on the link...
Read more >How To Ban Blue Links on iOS Devices In Email - Litmus
Learn coding techniques that will ban blue links on iOS devices in email.
Read more >4 ways to fix iPhone numbers converted into blue ... - Liramail
Default, Safari on iOS is auto-formatting a phone number to convert into a link because a user can simply tap on the link...
Read more >Link to a webpage, email, phone number, or page in Pages on ...
In Pages on iPhone, link to websites, email addresses, phone numbers, and other pages in the document. Turn automatic link formatting off or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve just tested that and it doesn’t work, guessing it only adds
x-apple-data-detectors
in Apple Mail. In Safari the anchor tag looks like this:<a href="tel:00000 000 000">00000 000 000</a>
In terms of where this feature would go, we already have a concept of global styles that we recommend mainly for prototyping.
This is technically a global style but would be used when global styles are turned off, so perhaps alongside links? Hmmm, It’s risky to add global styles…