Skip to content

[Auto-QA] DOM nesting and structure violations found #21286

Description

@clubanderson

Auto-QA [UI]: DOM Structure

Detected: 2026-07-19T14:00:41.305Z | Focus: UI | Commit: 294a689 | Run: View

Findings

### Button inside button violations
These cause React DOM nesting warnings:
  - `pages/WhiteLabel.tsx:290` — potential nested button
  - `pages/WhiteLabel.tsx:305` — potential nested button
  - `pages/TeamManagement.test.tsx:39` — potential nested button
  - `components/enterprise/__tests__/EnterpriseLayout.test.tsx:46` — potential nested button
  - `components/gpu/GPUReservationsTab.tsx:141` — potential nested button
  - `components/gpu/GPUReservationsTab.tsx:146` — potential nested button
  - `components/gpu/GPUCalendarTab.tsx:131` — potential nested button
  - `components/gpu/ReservationFormModal.tsx:534` — potential nested button
  - `components/deploy/DeployConfirmDialog.tsx:284` — potential nested button
  - `components/deploy/Deploy.tsx:274` — potential nested button

### Block elements inside paragraph tags
Div/section/article cannot be inside <p>:
  - `pages/WhiteLabel.tsx:283` — block element inside <p>
  - `pages/WhiteLabel.tsx:399` — block element inside <p>
  - `pages/WhiteLabel.tsx:484` — block element inside <p>
  - `pages/WhiteLabel.tsx:489` — block element inside <p>
  - `pages/WhiteLabel.tsx:533` — block element inside <p>
  - `pages/WhiteLabel.tsx:545` — block element inside <p>
  - `pages/WhiteLabel.tsx:554` — block element inside <p>
  - `pages/WhiteLabel.tsx:599` — block element inside <p>
  - `pages/Welcome.tsx:237` — block element inside <p>
  - `pages/Welcome.tsx:297` — block element inside <p>

### List item outside list container
<li> elements must be inside <ul> or <ol>:
  - `pages/UnifiedCardTest.tsx:64` — <li> may be outside <ul>/<ol>
  - `components/stellar/CatchUpBanner.tsx:85` — <li> may be outside <ul>/<ol>
  - `components/animations/SimpleGlobe.tsx:50` — <li> may be outside <ul>/<ol>
  - `components/animations/SimpleGlobe.tsx:60` — <li> may be outside <ul>/<ol>
  - `components/drilldown/views/ArgoAppDrillDown.tsx:774` — <li> may be outside <ul>/<ol>

### Nested heading elements
Headings (h1-h6) cannot contain other headings:
  - `components/drilldown/views/PodDrillDown.tsx:248` — nested heading elements

Suggested Improvements

  • Fix button-inside-button: use div with role="button" and tabIndex={0}
  • Fix interactive elements inside anchor: restructure or use onClick navigation
  • Fix block elements inside

    : use

    or appropriately
  • Fix nested forms: refactor to single form with fieldsets
  • Fix table structure: ensure proper thead/tbody/tr hierarchy
  • Fix list items: ensure
  • is always inside
      or
      1. Add role and tabIndex to clickable non-interactive elements for accessibility

    PR Guidance: Keep PRs small and focused. Smaller PRs have higher acceptance rates.


    This issue was automatically created by the Auto-QA workflow during UI focus day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-fix-requestedai-processingAI is currently processing this issueauto-qaIssue detected by automated QAauto-qa:dom-errorsbugSomething isn't workingtriage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions