question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Masthead] Web Component: Change component to include logic that highlights the current and parent menu items within the Masthead dropdown + Mega Menu based on the URL

See original GitHub issue

User Story

As a [user role below]: Carbon for ibm.com developer

I need to: create/change the Masthead

so that I can: provide the ibm.com adopter developers components they can use to build ibm.com web pages

Additional information

  • Story within Storybook with corresponding knobs
  • Utilize Carbon
  • Create with Shadow DOM and Custom Elements standards
  • See the Epic for the Design and Functional specs information
  • No visual changes and visual QA testing required.
  • The manual option stays in place. The automatic mapping is added.
  • Web Components Prod QA testing issue (#6765)

Hybrid Cloud developer: Hunter MacDermut


Incremented func spec number to 1.2.5 https://ibm.ent.box.com/file/781809973704?s=89qwjyjy6kwbi69qnz4nzatwfv3mh2kc

image.png image.png

Acceptance criteria

  • Include README for the web component and corresponding styles
  • Create Web Components styles in styles package
  • Do not create knobs in Storybook that include JSON objects
  • Break out Storybook stories into multiple variation stories, if applicable
  • Create codesandbox example under /packages/web-components/examples/codesandbox and include in README
  • Minimum 80% unit test coverage
  • Update the Carbon for ibm.com website component data file to be sure the web site Component Status and Storybook links are correct
  • A comment is posted in the Prod QA issue, tagging Praveen when development is finished

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RobertaJHahncommented, Aug 19, 2021

Moving Hunter’s comments in the epic #6638 to this dev issue. @proeung @annawen1


Making good progress on this work. A couple issues came up I’d like to bring attention to.

  1. Certain links in the Cloud version of the masthead, like https://www.ibm.com/cloud/ai are present both under Products and Solutions. Unlike links in the non-Cloud version of the masthead, which have identifiers, like ?lnk=hpmps_buai, Cloud masthead links have no identifier that can be used to distinguish under which heading they should be highlighted. How should we distinguish between the two?

Screen Shot 2021-08-19 at 1 03 35 PM

  1. Certain links in the non-Cloud version of the masthead, like https://www.ibm.com/docs/en?lnk=hpmls_budc, are used both for the link with icon that heads the section as well as an underlying link. How might we decide which to highlight?

Screen Shot 2021-08-19 at 1 00 40 PM

0reactions
proeungcommented, Oct 21, 2021

@RobertaJHahn Sounds good! Thanks for the update!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Masthead] React: Change component to include logic that ...
[Masthead] React: Change component to include logic that highlights the current and parent menu items within the Masthead dropdown + Mega Menu based...
Read more >
Fly-out Menus | Web Accessibility Initiative (WAI) - W3C
Use fly-out (or drop-down) menus to provide an overview of a web site's page ... Indicate navigation menu items with submenus visually and...
Read more >
How to Add Custom Navigation Menus in WordPress Themes
If you want to add a custom navigation menu to a different template, then click on the arrow in the toolbar and select...
Read more >
Component: Mega Menu in Oxygen | OxyExtras
This component allows you to build modern, responsive mega menus visually ... the dropdowns can be populated with any elements or menu items...
Read more >
Parent, child and sibling relationships – Figma Help Center
Show the Parent component underneath the selected layer in the Inspect panel. Click the in the Inspect panel to select the parent component....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found