Skip to content

fix(table): match header and body cell padding for size=sm (#219) - #220

Open
rohitmahajan880 wants to merge 1 commit into
untitleduico:mainfrom
rohitmahajan880:fix/219-table-padding
Open

rohitmahajan880 wants to merge 1 commit into
untitleduico:mainfrom
rohitmahajan880:fix/219-table-padding

Conversation

@rohitmahajan880

Copy link
Copy Markdown

Fixes #219

Summary

TableHead hardcoded px-6 regardless of size, while TableCell uses px-5 at size="sm", causing a 4px misalignment between header and body text in small tables.

Fix

  • TableHead now uses conditional padding matching TableCell:
    • size="sm" → px-5
    • size="md" → px-6
  • Also aligned header/body selection column widths (w-9/w-11).

Verification

  • Storybook story Application / Tables / Table 01 divider line sm — header and body text now share the same left edge
  • md size unchanged
  • npm run lint and npm run type-check pass

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.

[Bug]: Header and body cell padding mismatch in small tables

1 participant