Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding mixins for paper checkbox size #136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

VinodLouis
Copy link

@VinodLouis VinodLouis commented Dec 8, 2017

Although paper datatable has the mixins --paper-datatable-column-header and --paper-datatable-cell through which we can customize header and cell styles eg: padding/height etc, but in case of selectable checkbox this fails as the height of the row increases to adjust the checkbox size.

However checkbox size in itself is a mixin from paper-checkbox(--paper-checkbox-size) but here --paper-datatable-checkbox and --paper-datatable-header-checkbox don't help because of the nested mixin issue as addressed in polymer#3746.

Hence adding two new mixin variable as --paper-datatable-header-checkbox-size and --paper-datatable-checkbox-size so that checkbox size can be passed. If variable not passed it will be default by paper checkbox as 18px. Also adjusting the size of the partialSelectionContainer class to adjust as the checkbox provided size.

A very straight-forward and simple pull request but helps in styling as height 56px is too much of real-estate for a field in custom styling. Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant