Skip to content

mat-checkbox resize and ripple effect doesn't work well #9210

Closed
@yajneshrai

Description

@yajneshrai

Bug, feature request, or proposal:

Bug/Feature request

What is the expected behavior?

Allow resizing of checkbox and have proper ripple effect on resized element

What is the current behavior?

  • No way to resize the element, other than tweaking width and height in px
  • Even after resizing, ripple effect on click does not come up from center

What are the steps to reproduce?

Update the style to following:

.mat-checkbox-inner-container {
    height: 10px !important;
    width: 10px !important;
}

What is the use-case or motivation for changing an existing behavior?

  • When the entire page is using a consistent font-size, having a bigger checkbox makes it look odd.
  • And if the mat-checkbox was made smaller, ripple effect originates from top-left which looks bad

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Currently using "@angular/material": "^5.0.2", although issue existed right from beginning

Is there anything else we should know?

None

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions