-
Notifications
You must be signed in to change notification settings - Fork 54
[Emotion lvl 2] Migrated section-label titles.jsx & story-promo-list #3904
[Emotion lvl 2] Migrated section-label titles.jsx & story-promo-list #3904
Conversation
const FlexTextRow = styled(FlexRow).attrs({ | ||
const FlexTextRow = styled(FlexRow)``; | ||
|
||
FlexTextRow.defaultProps = { |
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.
What do you think - should this just be passed into the FlexTextRow
component on ln 165, rather than using defaultProps?
I have used this strategy for the aria-
values that were previously being passed in as attrs to IndexLinkCta
and SectionLabelLink
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.
Yeah, I don't think this styled component FlexTextRow
is actually needed, because there are no styles attached to it. FlexRow
could be used directly with role="text"
passed to it.
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.
I've pushed these changes.
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.
Awesome thank you Simon!
…thub.com:bbc/psammead into emotion-migration-story-promo-list-section-label
Resolves #NUMBER
Overall change: A very high-level summary of easily-reproducible changes that can be understood by non-devs.
Code changes: