-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
3d28f65
to
6e91f86
Compare
@@ -42,54 +49,44 @@ const TimeDuration = styled.time` | |||
margin: 0 ${GEL_SPACING_HLF}; | |||
`; | |||
|
|||
const IndexAlsosMediaIndicator = 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.
We will have to also update the IndexAlsos
straight after to use the MediaIndicatorWrapper
with the isInline
prop instead since this IndexAlsosMediaIndicator
won't exist anymore.
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.
|
||
MediaIndicator.propTypes = { | ||
datetime: string, | ||
duration: string, | ||
type: oneOf(['video', 'audio', 'photogallery']), | ||
topStory: bool, | ||
service: string.isRequired, | ||
indexAlsos: bool, | ||
isInline: bool, |
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.
We should include a small update to the README if we're adding or removing 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.
All done 👍
packages/components/psammead-media-indicator/src/index.stories.jsx
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.
Older stories ("audio without duration", "video without duration" and "photogallery") have indexAlsos
prop. Other than that everything looks great
all fixed now 👍 |
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 👍
Looks good to me. |
Resolves #3019
Overall change:
Add prop to MediaIndicator to be able to use this component inline with text.
Code changes:
isInline
prop to MediaIndicatorIndex Also with
isInline=true
on NewsIndex Also with
isInline=true
on PersianIE11
(with Persian, the behaviour is different on IE11 than Chrome, but I checked on
latest
and it's the exact same behaviour)