Skip to content

Private/rparth07/a11y issues fix#15669

Closed
rparth07 wants to merge 4 commits into
mainfrom
private/rparth07/a11y-issues-fix
Closed

Private/rparth07/a11y issues fix#15669
rparth07 wants to merge 4 commits into
mainfrom
private/rparth07/a11y-issues-fix

Conversation

@rparth07
Copy link
Copy Markdown
Contributor

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

The page-level table of contents wrapped each jump link in <h2>, making each navigation entry register as a heading. This polluted the heading outline.

Wrap the TOC in <nav><ul> with <li> entries (a standard navigation list of links). Keep the existing toc-h2 / toc-h3 / m-v-0 / link-section classes on the <li> elements so the style and doctype-aware show/hide logic keeps working unchanged. Strip default <ul> styling so the visual result matches the previous design.

Update resetFilterResults to also show the new <nav> so the TOC reappears after clearing the search field.

Signed-off-by: Parth Raiyani <parth.raiyani@collabora.com>
Change-Id: I6a6bc66e82ca45ac92bf4e4030f562ae52fc13d6
The jsdialog titlebar renders the dialog title as <h2>, then the help template's inner page heading was an <h1>. The DOM heading outline therefore jumped from H2 (dialog title) back up to H1 (inner page), inverting the document outline.

Demote the inner page heading to <h2> so it sits at the same level as the framework-supplied dialog title. The remaining content hierarchy (H3 sections, H4 sub-sections) stays unchanged, leaving a sequential H2 -> H2 -> H3 -> H4 outline with no reversals.

Update the centering rule in helpdialog.css to also target the new <h2 class="help-dialog-header"> so the visible layout is unchanged.

Signed-off-by: Parth Raiyani <parth.raiyani@collabora.com>
Change-Id: I6191fe5bed168c0fe765c63c0e93d86b7bd2ed33
Clicking a jump link in the help TOC made the dialog's close button disappear. The .scroll-button click handler tried to read button.dataset.target, but the HTML uses href="#nnn" - so the handler was a silent no-op and the browser performed its default anchor navigation. That scroll walks every scrollable ancestor, including the modal popup itself (which has overflow:auto in jsdialogs.css), so the dialog's titlebar - and the close button it contains - scrolled off the top.

Read href instead, preventDefault, and adjust scrollTop on the .ui-dialog-content container only. The modal stays put, only the help body scrolls, and the close button remains visible.

Signed-off-by: Parth Raiyani <parth.raiyani@collabora.com>
Change-Id: Ia6c0d85631c90b241f12aacaf7b64aa29d7f0672
The TOC jump-link styling explicitly removed the focus outline with "outline: none" and provided no replacement. Keyboard users got no visible cue when stepping through the TOC, breaking WCAG 2.4.7 (Focus Visible).

Replace the suppression with "outline: 2px solid var(--color-primary)" plus a 2px outline-offset, matching the focus style used elsewhere in the dialog framework. The CSS variable adapts to light/dark theme.

Signed-off-by: Parth Raiyani <parth.raiyani@collabora.com>
Change-Id: I393477a4391bfe3ff3dda4662fb3d52d6e37118d
@github-actions
Copy link
Copy Markdown

Thank you for your contribution! However, the main branch on GitHub is not used for this project. Please submit patches to the main branch of the online repo at https://gerrit.collaboraoffice.com.

See CONTRIBUTING.md for details. This PR has been automatically closed.

@github-actions github-actions Bot closed this Apr 27, 2026
@github-project-automation github-project-automation Bot moved this from To Review to Done in Collabora Online Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant