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

Update bulletin to use new version of live label from story promo #3208

Merged
merged 10 commits into from
Mar 4, 2020

Conversation

tochwill
Copy link
Contributor

@tochwill tochwill commented Mar 4, 2020

Resolves bbc/simorgh#5749

Overall change:
We update the live label in story promos so we now have to explicitly state it should be aria hidden. This updates the bulletin to use this latest version.

This may not strictly be a major version change, but as I have added missing dependencies which differ by a major version to the ones currently in Simorgh, if this is a minor bump it will cause Simorgh builds to fail due to duplicate dependency versions if this is pulled in.

Code changes:

  • A bullet point list of key code changes that have been made.
  • Add missing dependencies to Bulletin package.json.
  • Pass ariaHidden prop to live label in bulletin component.

  • 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

@tochwill tochwill requested a review from DenisHdz March 4, 2020 10:58
@DenisHdz DenisHdz added the ws-home Tasks for the WS Home Team label Mar 4, 2020
@tochwill
Copy link
Contributor Author

tochwill commented Mar 4, 2020

Just fixing package lock issues

Comment on lines +25 to +26
"@bbc/psammead-visually-hidden-text": "^1.2.3",
"@bbc/psammead-story-promo": "^5.1.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

These dependencies are not included in package-lock.json for bulletin and Jenkins is complaining

@@ -188,6 +188,7 @@ exports[`StoryPromo list should render correctly 1`] = `
>
<div
class="c3"
dir="ltr"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this snapshot needs to be updated in this PR.

Copy link
Contributor Author

@tochwill tochwill Mar 4, 2020

Choose a reason for hiding this comment

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

It's because the top level version of story-promo in psammead was previously set to an alpha version of 4 that didn't include the dir prop. Now I've updated it, this is included in the output.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, and psammead-story-promo-list includes psammead-story-promo in tests, but not as a dev dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or do we only have one devDependencies in the psammead root package.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

^ We do only include devDependencies in the root

@@ -15914,14 +15906,14 @@
},
"aproba": {
"version": "1.2.0",
"resolved": "",
"resolved": false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just reverting all these

Copy link
Contributor

@DenisHdz DenisHdz left a comment

Choose a reason for hiding this comment

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

LGTM, the aria-hidden is applied to Bulletin:

aria-hidden-bulletin

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

@tochwill tochwill closed this Mar 4, 2020
@tochwill tochwill reopened this Mar 4, 2020
@tochwill
Copy link
Contributor Author

tochwill commented Mar 4, 2020

Why is 'close and comment' so close to 'comment'!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ws-home Tasks for the WS Home Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show Turkish & Vietnamese translation for Live label
4 participants