Skip to content

Added rounded corner at the focus line for status bar #164479

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rickymao
Copy link

Changes:

  • Replaced outline with border and border-radius to draw rounded corners for the status bar

Before:
Screen_Shot_2022-10-24_at_1 51 18_PM

After:
Screen Shot 2022-10-24 at 1 24 56 PM

Comment on lines +537 to +544
outline: 0;
border: 1px solid ${statusBarFocusColor};
-webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-bottomright: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
Copy link
Contributor

Choose a reason for hiding this comment

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

In many situations we use outline to avoid layout jank when an element doesn't always feature a border. Many themes (like the default dark theme) don't use a border on the status bar unless focused, so the elements might shift around when adding and removing it on focus. Have you verified that moving to a border doesn't cause this?

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.

4 participants