-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: Updated route-pill with a new size, currently called "large-format" #2600
Changes from 1 commit
edbcefc
d590547
e0043b3
6495a57
08c065c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.c-route-pill { | ||
min-width: 2.875rem; | ||
max-width: 2.875rem; | ||
width: 2.875rem; | ||
height: 1.5rem; | ||
|
||
border-radius: 0.8125rem; | ||
|
@@ -10,6 +9,18 @@ | |
line-height: 1.5rem; | ||
font-weight: 700; | ||
font-family: $font-family-route-pill; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
Comment on lines
+13
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. question(non-blocking): why the switch to flex? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After expanding the route pill width/height, I needed a way to get the text centered, and flex is what always comes to mind for positioning for me. But I also realize, I could instead expand line-height for the text to be the height of the route-pill, so
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would https://developer.mozilla.org/en-US/docs/Web/CSS/line-height#number There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The height to font-size ratio is not consistent for both versions of this button. So font-size:height for the default version is 1:1.5 while font-size:height for the large format is 1.25:2.25 or 1:1.8 EDIT: so line-height cannot be simplified to one ratio or the other There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahhh - I had thought it was 1.5 : 2.25 and 1 : 1.5, which would have been consistent. I'll back out of this conversation then, since I don't have an opinion on this (I would probably have gravitated towards |
||
|
||
&--large-format { | ||
width: 4.5rem; | ||
height: 2.25rem; | ||
border-radius: 1.875rem; | ||
font-size: $h3-font-size; | ||
font-weight: 600; | ||
} | ||
} | ||
|
||
.c-route-pill--bus { | ||
|
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.
Huh 🤔