[Table] Checkbox moves place when clicked
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
I did this as a workaround using ng11:
:host ::ng-deep mat-cell mat-checkbox span {
overflow: unset;
}
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;
}