Skip to content

bug(RadioButton): Radio button group adds scroll when used in MatTab component #29135

Open

Description

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When the mat-radio-group component is placed inside the mat-tab component it adds unnecessary scroll when any other content doesn't

But can be fixed by using mat-tab-group dynamicHeight

Reproduction

StackBlitz link: Link
Steps to reproduce:

  1. Use mat-tab-group and mat-tab
  2. Use mat-radion-group and mat-radio-button and place inside the mat-tab
  3. Notice scroll bar
  4. Add dynamicHeight attribute to the mat-tab-group
  5. Notice the scroll bar is gone

Expected Behavior

The scroll bar should not appear when mat-radio-group is placed inside the mat-tab

Actual Behavior

mat-radio-button-group adds scroll when used in mat-tab component

Environment

  • Angular: "@angular/core": "^17.3.0",
  • CDK/Material: "@angular/material": "18.0.0",
  • Browser(s): Chrome
  • Operating System: macOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/radio

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions