Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DP-16804 State organizations link in Utility Nav #882

Merged
merged 15 commits into from
Jan 28, 2020

Conversation

ygannett
Copy link
Contributor

@ygannett ygannett commented Jan 17, 2020

Any PRs being created needs a changelog.txt file before being merged into dev. See: Change Log Instructions

Description

Change the state organizations menu from a button to a link directly to the page.

Related Issue / Ticket

Steps to Test

  1. Go to any page in localhost:3000.
  2. Check the State Organizations menu item in the Utility Nav in inspect.
  3. Find the menu item is a link. Its href value is "#", not actual URL in Mayflower.
  4. Do the step 3 and 4 in mobile display.
  5. Pull the branch into Drupal and find the link href value has the URL to the state organizations page.

Screenshots

Desktop
Pattern_Lab_-_pages-Homepage

Mobile
mobile

Additional Notes:

Anything else to add?

Impacted Areas in Application

@todo

Today I learned...

Copy link

@lynnschumann lynnschumann left a comment

Choose a reason for hiding this comment

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

This worked fine when I pulled the branch into Drupal and tested. When I viewed the branch locally in Mayflower, "State Organizations" does not appear (confirmed this also at https://mayflower.digital.mass.gov/b/patternlab/DP-16804_state-organizations-link/index.html). This is because in patternlab/styleguide/source/_data/utilityNav.json, line 26, "links" is empty:
"links": ""
Once I added an array of link info to utilityNav.json "href": "#", I can see "State Organizations" in the menu in Mayflower.

Copy link

@lynnschumann lynnschumann left a comment

Choose a reason for hiding this comment

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

Update utilityNav.json to add "href": "#". Otherwise, looks good!

@ygannett
Copy link
Contributor Author

@lynnschumann Thank you for the note. utilityNav.json has been updated. Please review again.

Copy link

@lynnschumann lynnschumann left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@a-username a-username left a comment

Choose a reason for hiding this comment

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

Good on my end as well

@a-username a-username merged commit ba671a8 into develop Jan 28, 2020
@clairesunstudio clairesunstudio mentioned this pull request Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants