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 link style in Safari #160

Merged
merged 1 commit into from
Apr 13, 2022
Merged

Fix link style in Safari #160

merged 1 commit into from
Apr 13, 2022

Conversation

tbrlpld
Copy link
Collaborator

@tbrlpld tbrlpld commented Apr 9, 2022

The shorthand does not quite work in Safari. Therefore, we need to define the different components individually.

Thanks to @PaarthAgarwal for the pointer!

Before
Screen Shot 2022-04-09 at 12 07 02 PM

After
Screen Shot 2022-04-09 at 12 06 34 PM

Close #155

The shorthand does not quite work in Safari. Therefore, we need to
define the different components individually.
@tbrlpld tbrlpld requested review from allcaps and Stormheg April 9, 2022 19:08
@@ -1,6 +1,9 @@
a {
color: $link-color;
text-decoration: 2px solid underline;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should drop this line now

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if that would have unintended side effects in other browsers

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked on mdn web docs. All browsers support long hand versions. Only Firefox for Android doesn't support text-decoration-thickness neither in short nor in long hand way. So I think removing it will be safe.

@PaarthAgarwal
Copy link
Member

The shorthand does not quite work in Safari. Therefore, we need to define the different components individually.

Thanks to @PaarthAgarwal for the pointer!

Before Screen Shot 2022-04-09 at 12 07 02 PM

After Screen Shot 2022-04-09 at 12 06 34 PM

Close #155

Thank you for the mention 😄

Copy link
Member

@Stormheg Stormheg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Stormheg Stormheg merged commit a192575 into main Apr 13, 2022
@Stormheg Stormheg deleted the 155-link-style-in-safari branch April 13, 2022 19:31
Stormheg added a commit to Stormheg/sphinx_wagtail_theme that referenced this pull request Apr 13, 2022
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.

Link style broken on Safari
3 participants