Skip to content
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

Fix focus state for links containing inline code #243

Merged
merged 2 commits into from
Jul 19, 2021

Conversation

36degrees
Copy link
Contributor

Inheriting the background from the link means that the code block ends up with its own yellow background, which then clips the box-shadow used to give the focused link a black underline.

Rather than inherit the yellow background, set the background to transparent. The focused link still has its own yellow background which can be seen ‘through’ the transparent code element.

Before

Screenshot 2021-07-09 at 10 08 31

After

Screenshot 2021-07-09 at 10 08 09

Inheriting the background from the link means that the code block ends up with its own yellow background, which then clips the box-shadow used to give the focused link a black underline.

Rather than inherit the yellow background, set the background to transparent. The focused link still has its own yellow background which can be seen ‘through’ the transparent code element.
@36degrees 36degrees force-pushed the code-in-links-focus-style branch from bffd69d to 220444e Compare July 19, 2021 10:20
@36degrees 36degrees merged commit 927a590 into master Jul 19, 2021
@36degrees 36degrees deleted the code-in-links-focus-style branch July 19, 2021 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants