Skip to content

Bug - [Table] - Radio button padding incorrect in compact variant #12475

Description

@opacut

Describe the problem
When using the deprecated Table component with variant={TableVariant.compact} and selectVariant={RowSelectVariant.radio}, the radio button cells do not receive proper compact styling/padding. The variant prop was not being passed to calculateColumns, preventing the selectable column from applying compact-specific styles to radio buttons.

How do you reproduce the problem?

  1. Create a deprecated Table component with variant={TableVariant.compact} and selectVariant={RowSelectVariant.radio}
  2. Observe that the radio button column doesn't receive proper compact padding/styling

Expected behavior
Radio buttons in compact variant tables should have appropriate compact padding/styling, similar to how checkbox selections work in compact tables.

Is this issue blocking you?
Yes, this is blocking Compliance Frontend development.

Screenshots

image

What is your environment?

  • @patternfly/react-table: v6

What is your product and what release date are you targeting?
Compliance Frontend, July 6th

Any other information?
This affects the deprecated Table component specifically. The issue appears to be that the variant prop is not being passed to the calculateColumns function call.


Jira Issue: PF-4304

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions