Repository navigation
fix(site/src/pages/TemplatesPage): link template names instead of making rows buttons - #31857
Merged
Merged
Conversation
…ing rows buttons Template rows were <tr role="button" tabIndex=0> containing the Create Workspace link, which axe reports as nested-interactive. Rows keep a mouse-only click shortcut, and the template name is now a real link to the template page for keyboard and screen reader users.
jeremyruppel
marked this pull request as ready for review
November 6, 2026 18:01
This was referenced Nov 6, 2026
aqandrew
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Template rows used
useClickableTableRow, which rendered<tr role="button" tabIndex={0}>around the "Create Workspace" link, so axe reportsnested-interactiveon every row.Rows are now plain table rows with the existing hover outline and a mouse-only click that opens the template. The template name is a real link to the template page (shared
LinkwithasChild, same pattern asWorkspaceTopbar), so keyboard and screen reader users reach the template through it. The name link stops propagation like the Create Workspace button already does, so Ctrl/Cmd-click opens a new tab without also navigating the current one.Closes DEQ-46
Closes DEQ-94
Closes DEQ-237
Closes DEQ-293
Closes DEQ-311
/templates) rowsThe resting state is pixel-identical to
main. The only visible change is keyboard focus: it moves from the whole row to the template name, which gets the standardcontent-linkfocus ring.Decision log
WorkspacesTableprecedent of droppingrolebut keepingtabIndex={0}on the row. A focusable row without a role doesn't tell assistive technology it navigates, andsite/AGENTS.mdrequires a semantic role fortabIndex={0}.Linkoverrides (pl-0 font-semibold text-inherit visited:text-inherit) keep the title's existing look; computed color, weight, and size matchmainin both themes.pages/TemplatesPageWithTemplates, MultipleOrganizations, ClassicParameterFlowWarning):nested-interactivegoes from 6/6/3 nodes to 0. A pre-existing minorempty-table-headerremains on both.TemplatesPage.test.tsxopens a template from the name link with the keyboard; it fails onmain.nested-interactivebatch ships separately (fix(site/src): move the Autocomplete clear button out of the trigger #31856 forAutocomplete).🤖 Generated by Coder Agents on behalf of @jeremyruppel.