-
Notifications
You must be signed in to change notification settings - Fork 516
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
Conversation
Makes it easier to identify the pages available in current locale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
display: inline-block; | ||
font-size: var(--type-tiny-font-size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
This will be even more noticeable in the sidebar:
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leon-win Sorry, I didn't see your comment. Would you like to open a PR for this? Maybe 0.5ch
would be better than 0.25rem
though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
How did you test this change?
Ran
yarn dev
locally and checked the Web/API page in fr and zh-CN.