Closed andrew-nhsbt closed 2 years ago
Hi Andrew, thanks for the contribution. I've put this forward to our lead service designer and accessibility lead, after evaluating the raised issue it's been agreed that this is expected behaviour. Any evidence of this impeding a user's ability to read the text would be greatly appreciated.
What is the issue?
When a hyperlink has focus, the yellow background has little to no padding left or right, meaning the background edge encroaches on the first and final letters of the hyperlink text, hindering legibility.
Example 1:
Example 2:
What steps are required to reproduce the issue?
Suggested resolution
If the styling of the a element was updated to give it left-right padding, which is then cancelled out with an equivalent negative margin, e.g.: (changes highlighted in yellow):
Then all focussed hyperlinks would have a minimum clear space between the first/last letter and the edge of the highlighting,
Example 1:
Example 2: