Closed proeung closed 3 years ago
Note from @proeung that this may be a launch blocker but will check on her end.
Will add to engineering huddle to discuss further on tech approach.
After discussing with the team, we are thinking that the logic could be to fetch the location.path
, then look for that in the translationAPI data for the page. Once found, it will find the parent titleEnglish
field which would be used to highlight the parent. This seems like it would be something done generally for global masthead.
With this, the attribute selected-menu-item
may not be necessary. We can decide to either deactivate, or keep it and allow as an override.
@RobertaJHahn should this remain an epic? Seems like primarily dev work here.
@jeffchew Sounds like a great solution and thanks for the update!
Sounds good, we just need a functional spec issue in addition. No visual changes.
@jeffchew Regarding whether this work should continue to be managed in an epic...Looks like we will have func specs, dev and prod QA work to manage? Correct? If this is the case, then I would keep it as an epic. Let me know. Thanks.
Making good progress on this work. A couple issues came up I'd like to bring attention to.
?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?@RobertaJHahn I'm moving this issue from v1.24.0
to v1.25.0
as I don't think we'll be able to push up a solution and test the work in time for the 08/27 code freeze for the v1.24.0
release.
Summarizing the decisions in a bit more visual format. Notice the difference between desktop & mobile usage of selected state styles:
All linked issues are closed.
The problem
dds-masthead-container
component does not have a logic in place that highlights the current and parent menu items according to the current URL of the page.active
state, however, this attribute should be updated/applied in the shadow Dom where we're rendering the menu items.Example
Purposed solution
href
of each menu link to the current page URL starting after the domain name and assigns the correctactive
styling to the appropriate menu item.