diff --git a/apps/common/main/lib/component/TableStyler.js b/apps/common/main/lib/component/TableStyler.js index fab6c9640..eb1108827 100644 --- a/apps/common/main/lib/component/TableStyler.js +++ b/apps/common/main/lib/component/TableStyler.js @@ -677,10 +677,12 @@ define([ }; me.setTableColor = function(color) { + table_content.toggleClass('transparent', color == 'transparent'); table_content.css('background-color', (color == 'transparent' ) ? color : ('#'+color)); }; me.setCellsColor = function(color) { + !me.spacingMode && table_content.toggleClass('transparent', color == 'transparent'); cells_content.css('background-color', (color == 'transparent' ) ? color : ('#'+color)); }; diff --git a/apps/common/main/resources/less/table-styler.less b/apps/common/main/resources/less/table-styler.less index c914bcd7f..3399084bb 100644 --- a/apps/common/main/resources/less/table-styler.less +++ b/apps/common/main/resources/less/table-styler.less @@ -1,4 +1,9 @@ .table-styler { + table { + &.transparent { + background-color: @canvas-content-background !important; + } + } td { padding: 0;