Add mix-ins to allow external styling of data-table-cell elements#147
Add mix-ins to allow external styling of data-table-cell elements#147depeele wants to merge 1 commit intoSaulis:masterfrom
Conversation
…th in a header and out.
Saulis
left a comment
There was a problem hiding this comment.
Not sure these are needed, user should be able to style the elements just withdata-table-cell and data-table-cell[header] CSS selectors?
|
I think this is necessary when using iron-data-table with shadow dom. Ordinary CSS selectors won't pierce the shadow dom, but CSS variables can. |
|
@Storyyeller See example here: http://jsbin.com/fetibiy/edit?html,output |
|
Oh, I see what you mean. I think my problem was that we were using ::content in our selectors, but the cells are not actually inside a content tag. |
|
I got it working now. Thanks for the help and sorry for bothering you. |
|
No problem at all, glad you got it working! 👍🏻 |
This pull request adds mix-ins to allow external styling of data-table-cell elements, both normal cells and those within a header.
--iron-data-table-cell--iron-data-table-header-cellThe change is primarily to allow resetting the size of header-cell height enabling the use of elements within the header that exceed the hard-coded height.
This change is