Skip to content

bug(MatRadioButton): ripple elemnt floats to the right if inside a text-align: center #22389

Closed
@Gunyon

Description

@Gunyon

Steps to reproduce:
https://stackblitz.com/edit/angular-62kuk6?file=src/app/radio-overview-example.html

Expected Behavior

What behavior were you expecting to see?

Position ripple element to the center.

Actual Behavior

What behavior did you actually see?

Ripple element is floating to right.

Solution

.mat-ripple-element {
left: 0;
}

Environment

  • Angular: 11.0.3
  • CDK/Material: 11.0.3
  • Browser(s): Chrome Version 89.0.4389.114 (Official Build) (64-bit)
  • Operating System (e.g. Windows, macOS, Ubuntu): Ubuntu

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/radio

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions