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(l10n): improve style of en-US links #11052

Merged
merged 4 commits into from
May 15, 2024
Merged

Conversation

caugner
Copy link
Contributor

@caugner caugner commented May 3, 2024

Summary

(MP-1101)

Problem

The en-US link indicators (e.g. "(angl.)") are very prominent and underlined, and they sometimes break over one line.

Solution

Reduce the font-size, stop underlining the indicator, and avoid the line break.


Screenshots

Note: The column-breaks in the index layout will be fixed in #11053.

fr zh-CN
Before image image
After image image

How did you test this change?

Ran yarn dev locally and checked the Web/API page in fr and zh-CN.

@caugner caugner requested a review from a team as a code owner May 3, 2024 10:54
@caugner caugner added the ux make the user experience awesome label May 3, 2024
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

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

👍

@fiji-flo fiji-flo merged commit 378dd13 into main May 15, 2024
15 checks passed
@fiji-flo fiji-flo deleted the improve-style-of-en-us-links branch May 15, 2024 12:46
Comment on lines +948 to +949
display: inline-block;
font-size: var(--type-tiny-font-size);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
display: inline-block;
font-size: var(--type-tiny-font-size);
display: inline-block;
margin-left: 0.25rem;
font-size: var(--type-tiny-font-size);

I also suggest adding a little margin before the indicator to improve perception:

Before
Screenshot from 2024-05-05 00-31-19

After
Screenshot from 2024-05-05 00-31-12

This will be even more noticeable in the sidebar:

Before
Screenshot from 2024-05-05 00-34-17

After
Screenshot from 2024-05-05 00-34-43

Copy link
Member

Choose a reason for hiding this comment

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

Just now I noticed that I wrote a comment, but forgot to send a review 🤦))

Please take a look. If you agree with such changes, then I can open a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux make the user experience awesome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants