Skip to content

Centre table selection checkboxes in their rows - #474

Open
fajarwz wants to merge 1 commit into
cachethq:mainfrom
fajarwz:fix/table-checkbox-alignment
Open

fajarwz wants to merge 1 commit into
cachethq:mainfrom
fajarwz:fix/table-checkbox-alignment

Conversation

@fajarwz

@fajarwz fajarwz commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

The checkboxes were part of the text flow, which caused align-middle to align them against the text baseline instead of the center of the table row. This left them about 2px too low.

This change takes the checkboxes out of the text flow and let the table cell center the checkbox itself.

Affects the select-all checkbox and every row checkbox in the dashboard tables.

Before:
image

After:
image

Filament's checkbox input is an inline-block on a 20px line box, so
align-middle pins it to the baseline plus half the x-height instead of
the line box centre, leaving it 2px below the row centre. Drop it out
of text flow so the cell centres the box itself.

Affects the select-all checkbox and every row checkbox in the
dashboard tables.
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.

1 participant