Skip to content

Conversation

shleewhite
Copy link
Contributor

@shleewhite shleewhite commented Sep 29, 2025

📌 Summary

If merged, this PR would add tests and a showcase example of the AppSideNav being removed from the DOM when in mobile view to verify that the overflow property is restored to the page.

SHOWCASE PREVIEW

🛠️ Detailed description

This work is the result of a ticket to audit the design system for components that reach outside of the component to the DOM. The only component besides Modal and Flyout that does this is AppSideNav.

The AppSideNav (unlike the SideNav) prevents scrolling on the page when it is expanded on a mobile screen by setting overflow: hidden on the body of the page.

To verify that the component is properly cleaned up if it is removed from the DOM (which is unlikely), I added 2 things:

  • An integration test that if the component is removed from the DOM, the overflow: hidden style is removed
  • An example to the showcase page of the component being removed from the DOM so it can be manually tested

🔗 External links

Jira ticket: HDS-5025


👀 Component checklist

  • Percy was checked for any visual regression

💬 Please consider using conventional comments when reviewing this PR.

📋 PCI review checklist
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've worked with GRC to document the impact of any changes to security controls.
    Examples of changes to controls include access controls, encryption, logging, etc.
  • If applicable, I've worked with GRC to ensure compliance due to a significant change to the in-scope PCI environment.
    Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.

Copy link

vercel bot commented Sep 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
hds-showcase Ready Ready Preview Sep 29, 2025 7:57pm
hds-website Ready Ready Preview Sep 29, 2025 7:57pm

@shleewhite shleewhite marked this pull request as ready for review September 30, 2025 15:12
@shleewhite shleewhite requested a review from a team as a code owner September 30, 2025 15:12

<MockApp>
<:sidebar as |S|>
<S.SideNav
Copy link
Contributor

Choose a reason for hiding this comment

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

[question] instead of changing the existing MockAppSidebarAppSideNav, would make sense to have the logic to remove/add it from the DOM here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants