-
Notifications
You must be signed in to change notification settings - Fork 70
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
FE: "Get updates from <system>" links should open in a new tab #11848
Comments
This issue was identified during the Collaboration Cycle Staging Review for Lovell VAMC on 2/28/2023. Applicable Collaboration Cycle labels have been added to this ticket for tracking and dashboard purposes, rather than creating a duplicate ticket. |
From refinement: need to confirm if non-VA links (FB, twitter, email sub links) are required to open in same tab per Federal guidance / a11y style & content guidelines. @laflannery to confirm. Next steps:
Team discussed whether an interstitial "you are leaving the site" warning might be necessary. This is a bigger design system question that would apply to many links throughout the site, so is not in scope here. |
https://design.va.gov/components/link/#behavior
|
Thank you @jilladams I knew I had found this somewhere!! @kmariepat-cityfriends based on the VA guidance above the ticket description is accurate - all of the links in the "Get updates" section should be updated to open in the same tab. |
Rolling into Sprint 87 to confirm the reason for the domain overide and ensure the approach outlined in this card is the preferred approach @ryguyk to take lead on reconciling the compliance issue and governance concerns |
Pinged Dave Conlon in Slack to see if he has history / context on the governance conflict between the Design System guidance (open in same tab unless user will lose context) vs. the list of subdomains that are set to open in a new tab (identified here, and comes from here in the code: https://github.com/department-of-veterans-affairs/content-build/blob/main/src/site/stages/build/plugins/modify-dom/update-external-links.js#L2 |
As far as backstory, the history of the relevant file here starts with a memory consumption fix, department-of-veterans-affairs/content-build@29bfb33. The related id, 15601, doesn't link back to a relevant Team ticket, PR, or CMS ticket/PR, so not sure what that's pointing to overall. (Combed through merged content-build PRs from Jan 2021 - May 2021, and don't see any that contain this commit. 🤷♀️ Looks like this era was when we split content-build and vets-website and there was a lot of build optimizing going on. Suspect it was part of that effort.) |
Current state of affairs: https://dsva.slack.com/archives/CBU0KDSB1/p1687446025748509?thread_ts=1687371270.904739&cid=CBU0KDSB1 Design system: Acked the tech issue re: subdomains and said (Alex Taker) that they'd ticket a docs update to reflect that. In our changes, then, Ryan's notes from Slack stand:
@ryguyk @laflannery I think we can go ahead to code review then, of Max's PR. |
@jilladams I tried to review the PR you linked above but it wouldn't load - I don't know if it was because it was from a couple weeks ago and needs a new review instance? |
6/29/23 update: talked to Ryan, clarified the logic for what's an "external" link in bullets in my last comment above. For all of the URLs in Max's PR: he's overriding the Platform logic that establishes what is an external link, that the Design System and Platform team have signed off on in our support thread. So: this becomes effectively a no-op, that we can't change until the Design System and Platform team get aligned on an alternate approach. Under the hood: we should remove @laflannery fyi. Closing this. |
We got updated guidance from Design system today: https://dsva.slack.com/archives/CBU0KDSB1/p1690487173146249?thread_ts=1687371270.904739&cid=CBU0KDSB1
So for this ticket:
|
@jilladams I somehow get very lost here, could you clarify for me?
|
Yes, legitimately confusing. So: the flow on this is (as far as I understand it):
With all of that said: you're right that we can set up our code correctly with no |
@jilladams We have a final decision on external links and new guidance is added to the Design system. Rules are as follows for external links:
For 1 I think there might be some JS happening somewhere? Because I can see that the target attribute has been removed from the original code however then on the front end it's back again, so something is happening in the middle to add this back. That being said, do we need to add this to our links? For 3, if the text of these links need to change, I would consider this out of the scope of this ticket and something were the content team may need to get involved. So for now, for this ticket, I think we should be considering 1 & 2 only and then we can close this. |
From refinement:
|
This ticket was recreated in va.gov-team # 64835 |
Removing CC labels because ticket was recreated |
@xiongjaneg To find YouTube ticket as partner tickets for next sprint |
Question about the To Reproduce step: Are we saying in this ticket that we want to remove the Or, are we saying we want all links from this section that do open new tabs to replace each other in that same new tab? Multiple comments are using "same" for different reasons, I think. |
@eselkin Ya this is confusing because of how complicated this got and how much back and forth. Let's see if I can make this clear:
Regarding the |
So basically, the only change is removing And, right, noopener is antiquated because of how _blank now works on most browsers (I wouldn't remove it, just to be certain of backward compatibility). |
Working on sprint report so went ahead and verified: all external domains open in a new tab, Operating status points to VA.gov and opens in same tab. Closing! |
Describe the defect
On each VAMC System page, on the front end, there is a block with the heading Get updates from (Example: Get updates from Lovell Federal TRICARE health care) The links in this block all open in a new tab.
To Reproduce
AC / Expected behavior
Screenshots
CMS Team
Please check the team(s) that will do this work.
Program
Platform CMS Team
Sitewide Crew
⭐️ Sitewide CMS
⭐️ Public Websites
⭐️ Facilities
⭐️ User support
The text was updated successfully, but these errors were encountered: