From a1a0fbdfdbc1f4e053aebaa4edbe2075951e17e1 Mon Sep 17 00:00:00 2001 From: "Ahmad K. Bawaneh" Date: Thu, 26 Oct 2023 17:54:11 +0300 Subject: [PATCH] fix #859 Table row does not get marked when checked --- .../domino-ui/dui-components/domino-ui-colors-light.css | 3 ++- .../css/domino-ui/dui-components/domino-ui-datatable.css | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/domino-ui/src/main/resources/org/dominokit/domino/ui/public/css/domino-ui/dui-components/domino-ui-colors-light.css b/domino-ui/src/main/resources/org/dominokit/domino/ui/public/css/domino-ui/dui-components/domino-ui-colors-light.css index 6451e4303..ed8469603 100644 --- a/domino-ui/src/main/resources/org/dominokit/domino/ui/public/css/domino-ui/dui-components/domino-ui-colors-light.css +++ b/domino-ui/src/main/resources/org/dominokit/domino/ui/public/css/domino-ui/dui-components/domino-ui-colors-light.css @@ -400,7 +400,8 @@ --dui-clickable-box-shadow: 0 0 0 0 rgb(0 0 0 / 40%), 0 0 0 5px rgb(0 0 0 / 8%); --dui-datatable-even-bg-color: var(--dui-accent-l-5); --dui-datatable-odd-bg-color: var(--dui-clr-white); - --dui-datatable-row-selected-bg-color: var(--dui-accent-l-2); + --dui-datatable-row-selected-bg-color: var(--dui-accent-l-4); + --dui-datatable-row-stripped-selected-bg-color: var(--dui-accent-l-2); --dui-datatable-row-hover-bg-color: var(--dui-accent-l-3); --dui-datatable-header-hover-bg-color: var(--dui-accent-l-5); --dui-datatable-border-color: var(--dui-accent-l-4); diff --git a/domino-ui/src/main/resources/org/dominokit/domino/ui/public/css/domino-ui/dui-components/domino-ui-datatable.css b/domino-ui/src/main/resources/org/dominokit/domino/ui/public/css/domino-ui/dui-components/domino-ui-datatable.css index fff5c0d2f..aaf020a34 100644 --- a/domino-ui/src/main/resources/org/dominokit/domino/ui/public/css/domino-ui/dui-components/domino-ui-datatable.css +++ b/domino-ui/src/main/resources/org/dominokit/domino/ui/public/css/domino-ui/dui-components/domino-ui-datatable.css @@ -52,6 +52,10 @@ background-color:var(--dui-bg-clr, var(--dui-bg, var(--dui-clr-dominant))); } +.dui-datatable-responsive:not(.dui-datatable-striped) tbody .dui-datatable-row.dui-datatable-row-selected{ + background-color: var(--dui-datatable-even-bg-color); +} + .dui-datatable-striped tbody .dui-datatable-row:nth-child(even) { background-color: var(--dui-datatable-even-bg-color); } @@ -129,6 +133,11 @@ .dui-datatable-row-selected.dui-datatable-row.dui-odd, .dui-datatable-row-selected.dui-datatable-row.dui-even { + --dui-datatable-even-bg-color: var(--dui-datatable-row-stripped-selected-bg-color); + --dui-datatable-odd-bg-color: var(--dui-datatable-row-stripped-selected-bg-color); +} + +.dui-datatable-responsive:not(.dui-datatable-striped) tbody .dui-datatable-row-selected.dui-datatable-row { --dui-datatable-even-bg-color: var(--dui-datatable-row-selected-bg-color); --dui-datatable-odd-bg-color: var(--dui-datatable-row-selected-bg-color); }