Skip to content

refactor: better accessbility for tabs.#68

Merged
knightedcodemonkey merged 2 commits intonextfrom
bananas
Apr 11, 2026
Merged

refactor: better accessbility for tabs.#68
knightedcodemonkey merged 2 commits intonextfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Copy Markdown
Owner

Copilot AI review requested due to automatic review settings April 11, 2026 17:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the workspace tabs area to use more semantic HTML and a clearer accessibility model (issue #66), while updating the add-tab menu interactions and aligning related styling and tests.

Changes:

  • Reworks workspace tabs markup from generic containers + tab roles to a <nav> + <ul>/<li> structure, and updates the add-tab menu labeling/roles.
  • Improves add-tab menu keyboard focus management (focus first item on open; restore focus to trigger on Escape close).
  • Adjusts preview background defaulting behavior across themes and updates Playwright tests to match the new semantics/behavior.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/index.html Tabs region markup switched to <nav>/<ul>; add-tab control/menu semantics updated; preview bg color input default changed.
src/app.js Workspace tab rendering updated for <li> containers and new ARIA state; add-tab menu focus management added; preview bg controller now theme-aware.
src/modules/preview-background.js Adds theme-aware default resolution and changes initialization/sync behavior for preview background color.
src/styles/layout-shell.css Removes list styling on the new <ul>-based tab strip (list-style/margin/padding reset).
src/styles/panels-editor.css Active tab styling moved from [aria-selected] to [data-active]; minor collapsed preview control hiding adjustments.
src/styles/base.css Removes unused accent custom properties.
src/styles/ai-controls.css Removes unused repo select styling rules.
playwright/workspace-tabs.spec.ts Updates selectors/assertions from tab roles to button semantics; adds keyboard focus test for add menu.
playwright/rendering-modes.spec.ts Updates selectors from tab roles to button semantics.
playwright/layout-panels.spec.ts Adds coverage for theme-dependent preview background defaults; updates tab selectors.
playwright/helpers/app-test-helpers.ts Updates helpers to use new add-tab labels and button selectors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@knightedcodemonkey knightedcodemonkey merged commit 72c5ed4 into next Apr 11, 2026
5 checks passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch April 11, 2026 18:27
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