Skip to content

fix(Table): remove dead code — columnWidthToCSS and _lastBodyRowStyles - #797

Merged
cixzhang merged 1 commit into
mainfrom
navi/fix/table-dead-code
Mar 21, 2026
Merged

cixzhang merged 1 commit into
mainfrom
navi/fix/table-dead-code

Conversation

@cixzhang

@cixzhang cixzhang commented Mar 21, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Addresses dead code findings from hardening sprint #719:

  • P0: columnWidthToCSS dead code — Function was exported, tested, and documented but never actually called by any component. Removed function, export, and tests.
  • P1: _lastBodyRowStyles dead code — Style definition was never referenced. Removed.

Test plan

  • All remaining Table tests pass (87/87)
  • Build clean
  • Lint clean (0 errors)

- Remove columnWidthToCSS: exported/tested/documented but never called by any component
- Remove _lastBodyRowStyles: defined but never referenced
- Remove associated tests for deleted code

Co-authored-by: Navi <[email protected]>
@cixzhang cixzhang added the hardening Component hardening and quality sweep label Mar 21, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 21, 2026
@github-actions

github-actions Bot commented Mar 21, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

Modified Components

Table · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A 823B N/A
Lines of Code N/A 819 -
Complexity N/A Very High (54) -

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@xds/core 10.9KB 17.3KB 2.7KB

Accessibility Audit

Status: 1 accessibility violation(s) found — 1 serious.

Selection - 1 issue(s)
  • 🟠 serious: Ensure ARIA attributes are used as described in the specification of the element's role
    • Rule: aria-conditional-attr · Affects 1/7 stories · Learn more
    • WCAG: 4.1.2 (Level A)

Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang
cixzhang marked this pull request as ready for review March 21, 2026 14:43
@cixzhang
cixzhang requested a review from josephfarina as a code owner March 21, 2026 14:43
@cixzhang
cixzhang merged commit 2decad6 into main Mar 21, 2026
13 checks passed
@cixzhang
cixzhang deleted the navi/fix/table-dead-code branch April 9, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. hardening Component hardening and quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant