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

feat: Course home heading navigation #2

Merged

Conversation

PKulkoRaccoonGang
Copy link
Owner

@PKulkoRaccoonGang PKulkoRaccoonGang commented Oct 16, 2024

This pull request focuses on improving accessibility within the Section component in the src/course-home/outline-tab/Section.jsx file. The changes ensure better keyboard navigation and focus management.

Accessibility improvements:

  • Removed tabIndex from elements inside the Collapsible component to fix the focus logic, ensuring better accessibility by not interfering with the default focus order. (src/course-home/outline-tab/Section.jsx)
  • Added tabIndex="0" to the h2 element to make it focusable, improving keyboard navigation. (src/course-home/outline-tab/Section.jsx)
  • Added tabIndex="-1" to the IconButton components to prevent them from being focusable, streamlining the focus order. (src/course-home/outline-tab/Section.jsx)

@PKulkoRaccoonGang
Copy link
Owner Author

Temporary PR, after review the code will be moved to frontend-build

@PKulkoRaccoonGang PKulkoRaccoonGang changed the title fix: fix links under contenttools (openedx#1109) feat: Course home heading navigation Oct 17, 2024
@PKulkoRaccoonGang PKulkoRaccoonGang force-pushed the Peter_Kulko/course-outline-headings branch from ebe88de to 99b71c5 Compare October 17, 2024 11:19
@PKulkoRaccoonGang PKulkoRaccoonGang self-assigned this Oct 17, 2024
@PKulkoRaccoonGang PKulkoRaccoonGang merged commit 902cdad into improving-accessibility Oct 17, 2024
@PKulkoRaccoonGang PKulkoRaccoonGang deleted the Peter_Kulko/course-outline-headings branch October 17, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants