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

Add prop isOpen to Navigation #2769

Merged
merged 13 commits into from
Dec 5, 2019
Merged

Conversation

Bopchy
Copy link
Contributor

@Bopchy Bopchy commented Dec 4, 2019

Resolves #NUMBER

Overall change: Adds a prop isOpen that if true, changes the background colour of the Navigation from C_POSTBOX to C_EBON.

Code changes:

  • Add isOpen prop.

  • 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

@Bopchy Bopchy added the ws-home Tasks for the WS Home Team label Dec 4, 2019
@Bopchy Bopchy self-assigned this Dec 4, 2019
@ghost
Copy link

ghost commented Dec 4, 2019

How do i view this change?

@Bopchy
Copy link
Contributor Author

Bopchy commented Dec 4, 2019

Currently this is not viewable in Psammead as the colour of the Navigation should change when the Dropdown is open - and the components have been put together in Simorgh.

This is what the Navigation currently looks like when the menu is open
image

@Bopchy Bopchy changed the title Change Navigation colour on menu opening Add prop isOpen to Navigation Dec 4, 2019
@Bopchy
Copy link
Contributor Author

Bopchy commented Dec 4, 2019

Renamed the PR to reflect the changes it is adding better

Ruth Bochere and others added 3 commits December 4, 2019 18:31
Co-Authored-By: Olha Lyubinets <[email protected]>
Co-Authored-By: sadickisaac <[email protected]>
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

This looks great. We could add a navigation snapshot test when the isOpen prop is true.

@Bopchy
Copy link
Contributor Author

Bopchy commented Dec 4, 2019

Added a snapshot test.

Copy link
Contributor

@AlistairGempf AlistairGempf 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! Nicely done.

Copy link
Contributor

@j-pendlebury j-pendlebury left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@tochwill tochwill merged commit 956cbb1 into latest Dec 5, 2019
@ghost ghost deleted the change-nav-colour-on-menu-opening branch December 5, 2019 11:42
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.

6 participants