Skip to content

Scrolling header for accessible drawer content at page magnification #2221

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

Merged
merged 7 commits into from
May 2, 2025

Conversation

jonkafton
Copy link
Contributor

@jonkafton jonkafton commented Apr 30, 2025

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/6513

Description (What does it do?)

The key issues is that at page magnification the drawer title occupies too much space particularly for longer resource titles, limiting the space available for drawer content.

  • Drawer title and AskTIM chat opener now scrolls with content.
  • Drawer opener hidden while chat is open.
  • Drawer close button dual purposed to close the chat on first click and drawer on second.

Screenshots (if appropriate):

Screen.Recording.2025-04-30.at.20.03.10.mov

How can this be tested?

With chatEnabled assigned true in LearningResourceExpanded.tsx.

Open the learning resource drawer on a course and confirm that the title, AskTIM opener and drawer content behaves as expected while scrolling, opening chat and prompting for chat messages that scroll past the window height; and that the chat closes on fist click of the close button and the drawer closes on the second. Confirm that it renders as expected and behaves similarly at mobile screen width. Confirm that at 400z page magnification the drawer content and the chat are visible and usable.

The representation in Figma is limiting, but the dual-purpose close it demonstrated here https://www.figma.com/proto/mSDdN8giMcncBwNgwcVJL9/UX-Wireframes?page-id=3304%3A8575&node-id=6242-31935&viewport=84%2C-15246%2C0.59&t=bOiemTVuUxdn7oYF-1&scaling=min-zoom&content-scaling=fixed&starting-point-node-id=3307%3A64551

Copy link

OpenAPI Changes

Show/hide No detectable change.

@jonkafton jonkafton marked this pull request as draft April 30, 2025 18:12
Copy link

github-actions bot commented May 1, 2025

OpenAPI Changes

Show/hide No detectable change.

@jonkafton jonkafton marked this pull request as ready for review May 1, 2025 20:27
@jonkafton jonkafton added the Needs Review An open Pull Request that is ready for review label May 1, 2025
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki left a comment

Choose a reason for hiding this comment

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

👍

@jonkafton jonkafton merged commit 70998ab into main May 2, 2025
13 checks passed
@jonkafton jonkafton deleted the jk/7082-accessibility-test-static-header branch May 2, 2025 16:01
@jonkafton jonkafton changed the title Static header for accessible drawer content at page magnification Scrolling header for accessible drawer content at page magnification May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review An open Pull Request that is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants