-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
<> | ||
<MediaIndicator | ||
type="audio" | ||
script={script} | ||
service={service} | ||
dir={dir} | ||
isInline={boolean('inline?', true)} | ||
/> | ||
<StyledHeadline script={script} service={service} promoHasImage={false}> |
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.
Could you please also update the text 'example text' to use the localised text from Storybook helpers? It'd particularly be useful when looking at RTL services. https://github.com/bbc/psammead/blob/4f6e4e9f621d3c917cfbeeb7b7727468b703f608/packages/components/psammead-media-indicator/src/index.stories.jsx#L116
packages/components/psammead-media-indicator/src/__snapshots__/index.test.jsx.snap
Outdated
Show resolved
Hide resolved
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.
Should also add dir
prop to README's table of props
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.
Looks good 👍
Resolves #NUMBER
Overall change:
Pass direction to the Media Indicator to apply the right padding.
Code changes:
dir
prop to theMediaIndicator
componentBefore:
After: