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
Progress: adjust height and align header elements #21988
Conversation
@@ -40,6 +39,7 @@ class LessonSelector extends Component { | |||
<option | |||
value={lesson.position} | |||
key={lesson.id} | |||
style={{padding: 10}} |
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.
nit: move to style component instead of inline
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.
have you checked this on IE, safari, firefox?
aeda1ea
to
e3ca884
Compare
00eba56
to
7149b3d
Compare
@@ -8,8 +8,7 @@ const styles = { | |||
display: 'block', | |||
boxSizing: 'border-box', | |||
fontSize: 'medium', | |||
padding: '0.8em', | |||
marginBottom: 10, | |||
height: 34 | |||
}, | |||
heading: { | |||
marginBottom: 0, |
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.
Question: Why is there a comma after the marginBottom (it's the only property:value pair for heading)? There isn't a comma after (height: 34), which is inline with the style guide.
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, the comma is on line 15 is probably because I had a style after marginBottom that I ended up not needing so I removed it. I have a slight preference for trailing commas because if I add something later, I will only see the change that I added in the diff not the changes that I added AND the additional comma on the line preceding the change. 🤷🏼♀️
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.
Thanks
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.
LGTM!
Since this is still behind a flag, I'll spot check the other browsers on staging. |
Before:
After: