Skip to content

Commit

Permalink
Align inverted styles with normal selection
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo committed Dec 23, 2016
1 parent 5ca850f commit b5fac00
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions demo/selection.html
Expand Up @@ -129,15 +129,18 @@ <h3>Select All with Data Source</h3>
<datasource-select-all></datasource-select-all>
<dom-module id="datasource-select-all">
<template>
<style>
#grid {
<style is="custom-style">
#grid[inverted] {
--vaadin-grid-body-cell: {
background-color: var(--paper-grey-100);
};
--vaadin-grid-body-row-selected-cell: {
background-color: var(--primary-background-color);
};
}
</style>
<x-data-source data-source="{{dataSource}}"></x-data-source>
<vaadin-grid id="grid" data-source="[[dataSource]]" size="200">
<vaadin-grid id="grid" data-source="[[dataSource]]" inverted$="[[inverted]]" size="200">
<vaadin-grid-column width="40px" flex-grow="0" >
<template class="header">
<input type="checkbox" checked="{{inverted::change}}" />
Expand Down Expand Up @@ -172,6 +175,7 @@ <h3>Select All with Data Source</h3>

_resetSelection: function(inverted) {
this.$.grid.selectedItems = [];
this.updateStyles();
},

_selectItem: function(e) {
Expand Down

0 comments on commit b5fac00

Please sign in to comment.