-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
@@ -23,7 +23,7 @@ const paddingReverseDir = ({ dir }) => | |||
// This makes it work right. I don't fully understand how, but am | |||
// eternally grateful to the Flexbugs project. | |||
// https://github.com/philipwalton/flexbugs#flexbug-3 | |||
const FlexColumn = styled.div` | |||
const FlexColumn = styled.span` |
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.
Can you check if we really need this FlexColumn
or if we could try to merge it along with FlexRow
, so we avoid having that many nested span
s?
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 we remove FlexColumn
or merge it with FlexRow
everything still looks great on Chrome, FireFox and Safari. However, it causes the bar to get shifted down on Internet Explorer. And even though IE is a low priority browser for us, section labels are on every front page, so I don't think it's worth making this change just to avoid having a lot of span
s in the DOM.
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.
All right, thanks for investing 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.
LGTM 👍
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.
Makes sense, looks good 👍
LGTM. |
Resolves #3316
Overall change:
Replaced a
div
with aspan
within section label to fix invalid HTML syntax (div
nested within anh2
element).New DOM structure:
Code changes:
div
with aspan
in section label.