Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Media Indicator - Pass dir #3109

Merged
merged 5 commits into from
Feb 11, 2020
Merged

Media Indicator - Pass dir #3109

merged 5 commits into from
Feb 11, 2020

Conversation

DenisHdz
Copy link
Contributor

@DenisHdz DenisHdz commented Feb 11, 2020

Resolves #NUMBER

Overall change:
Pass direction to the Media Indicator to apply the right padding.

Code changes:

  • Pass dir prop to the MediaIndicator component
  • Update stories
  • Update tests

Before:
padding

After:
padding-fixed


  • I have assigned myself to this PR and the corresponding issues
  • Automated jest tests added (for new features) or updated (for existing features)
  • This PR requires manual testing

@DenisHdz DenisHdz added ws-home Tasks for the WS Home Team ws-front-page-layout labels Feb 11, 2020
@DenisHdz DenisHdz self-assigned this Feb 11, 2020
@sareh sareh mentioned this pull request Feb 11, 2020
6 tasks
<>
<MediaIndicator
type="audio"
script={script}
service={service}
dir={dir}
isInline={boolean('inline?', true)}
/>
<StyledHeadline script={script} service={service} promoHasImage={false}>
Copy link
Contributor

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

Copy link
Contributor

@OlgaLyubin OlgaLyubin left a 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

@DenisHdz DenisHdz requested a review from OlgaLyubin February 11, 2020 09:33
Copy link
Contributor

@OlgaLyubin OlgaLyubin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@DenisHdz DenisHdz merged commit c588917 into latest Feb 11, 2020
@DenisHdz DenisHdz deleted the use-dir-media-indicator branch February 11, 2020 09:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ws-front-page-layout ws-home Tasks for the WS Home Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants