Skip to content
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

Course outline block header enhance #2776

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

renintw
Copy link
Contributor

@renintw renintw commented Jul 25, 2024

Resolves #2614

Originally, the header was directly given a class to allow toggling, but this causes an accessibility issue since the header does not support the aria-expanded="true" attribute and also leads to the problem of "interactive controls being nested". So here triggers the button inside the header without allowing it to bubble up.

Screenshot

scroll

@renintw renintw requested a review from adamwoodnz July 25, 2024 18:34
@renintw renintw self-assigned this Jul 25, 2024
@renintw renintw added [Component] Learn Theme Website development issues related to the Learn theme. [Component] Sensei Website development issues related to the Sensei plugin installed on Learn. labels Jul 25, 2024
@renintw renintw added this to the Learning Pathways launch milestone Jul 25, 2024
Copy link
Contributor

@adamwoodnz adamwoodnz left a comment

Choose a reason for hiding this comment

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

LGTM, one suggestion.

I did notice while testing that the focus ring on lessons within modules doesn't show properly; you can just see it in the corners:

Screenshot 2024-07-26 at 11 17 11 AM

@adamwoodnz
Copy link
Contributor

Can we also fix #2778 in this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Learn Theme Website development issues related to the Learn theme. [Component] Sensei Website development issues related to the Sensei plugin installed on Learn.
Projects
Status: 👀 In review (PRs only)
Development

Successfully merging this pull request may close these issues.

New Theme: Content headers should collapse/open when clicked anywhere.
2 participants