Saulis / iron-data-table

iron-data-table is a Web Component for displaying data as a table or grid. Built on top of iron-list using Polymer.
Apache License 2.0
147 stars 66 forks source link

Make it possible to control loading opacity with css #182

Open mtalexo opened 7 years ago

mtalexo commented 7 years ago

Currently the following style is defined:

:host([loading]) #list {
    opacity: 0.25;
}

In some use cases this causes too much flicker, it would be nice to be able to change the opacity to 1 (or otherwise configure loading style).

This can be done by adding a styling custom property such as:

:host([loading]) #list {
    opacity: 0.25;
    @apply(--iron-data-table-loading);
}

Or is there some way to specify the [loading] attribute selector using the existing --iron-data-table?