-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
style: fix labels vertical align #11415
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11415 +/- ##
==========================================
+ Coverage 66.49% 66.55% +0.05%
==========================================
Files 860 860
Lines 40869 40871 +2
Branches 3686 3688 +2
==========================================
+ Hits 27176 27201 +25
+ Misses 13592 13571 -21
+ Partials 101 99 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Just for the record, this PR also fixes the alignment of the datasource menu trigger on Explore page. Before(misaligned by #11400 ) AfterBTW...Can we also add some space between the pill and the database name? This label on the Edit Datasource modal also seem to need some adjustment |
02e5888
to
3db518c
Compare
I think text in brackets looks too hacky as it reminds me of text-based UI instead of GUI. Maybe we can create a special label with less padding for this? |
Ok, I'm throwing in the space for now but will save the My take on Label is that it probably needs a border in all cases (not just the clickable labels), and that we can use Also, part of the reason that Labels were uppercase in the past is that it helps with the vertical alignment perception. Without uppercase, text looks pushed down - not vertically aligned in many cases. |
28dbb43
to
f51c129
Compare
@@ -30,8 +30,8 @@ interface TimerProps { | |||
} | |||
|
|||
const TimerLabel = styled(Label)` | |||
width: 80px; | |||
text-align: right; | |||
width: 96px; |
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.
If this used the fixed-width / tabular-numerals variant if Inter, we could probably just as easily specify the width in 'em' units, but this seems like it'd work just fine for now, and I'll try to remember to open a PR to address these tabular numerals in the Theme.
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.
oh right, em
seems like the way to go here!
* style: fix labels vertical align * addressed comments * just adding the space for now * fix timer
SUMMARY
recently merged PR #11400 messed up the vertical alignment of
<Label />
in some contexts.BEFORE
TEST PLAN
visual