components icon indicating copy to clipboard operation
components copied to clipboard

[Table] Checkbox moves place when clicked

Open tawalters61 opened this issue 9 years ago • 22 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When selecting a checkbox within a table, the highlighted selection highlighting should not move up.

What is the current behavior?

The alignment of the highlighting is not aligned with the checkbox itself.

What are the steps to reproduce?

Providing a StackBlitz/Plunker (or similar) is the best way to get the team to see your issue.
Plunker starter (using on @master): https://goo.gl/uDmqyY
StackBlitz starter (using latest npm release): https://goo.gl/wwnhMV

This existing table example at the following URL does not work properly with material 5.0.0*

https://stackblitz.com/edit/angular-material2-table

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

It's a bug

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

Material: 5.0.0-rc0, 5.0.0-rc.1 The bug does not exist in 2.0.0-beta.12

Is there anything else we should know?

No

tawalters61 avatar Nov 22 '17 20:11 tawalters61

I did this as a workaround using ng11: :host ::ng-deep mat-cell mat-checkbox span { overflow: unset; }

benoit-laplante avatar Sep 15 '21 14:09 benoit-laplante

Hello, is there any plan to fix this bug? It's been open since 2017! The suggested workarounds didn't work for me using v14.2.5.

I had to use the following code (in styles.scss) to fix it:

.mat-checkbox .mat-checkbox-inner-container {
  overflow: visible !important;
}

bugoutfr avatar Feb 24 '23 16:02 bugoutfr