@visns-studio/visns-components 6.23.1 → 6.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -93,7 +93,7 @@
93
93
  "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
94
94
  },
95
95
  "name": "@visns-studio/visns-components",
96
- "version": "6.23.1",
96
+ "version": "6.23.2",
97
97
  "description": "Various packages to assist in the development of our Custom Applications.",
98
98
  "main": "src/index.js",
99
99
  "files": [
@@ -1431,7 +1431,14 @@ const DataGrid = forwardRef(
1431
1431
  // A rowColours tint is an inline background on the row
1432
1432
  // element; the class lets the stylesheet clear the zebra
1433
1433
  // band that would otherwise paint over it on odd rows.
1434
- findRowColour(rowProps?.data) ? styles.tintedRow : '',
1434
+ // The literal twin exists for global-datagrid.css, which
1435
+ // cannot see the hashed module class: the 2026-pass row
1436
+ // surface there is `!important` (it has to outrank the
1437
+ // vendored theme) and would beat the inline tint, so that
1438
+ // rule stands down on rows carrying this class.
1439
+ findRowColour(rowProps?.data)
1440
+ ? `${styles.tintedRow} vs-datagrid--row-tinted`
1441
+ : '',
1435
1442
  ]
1436
1443
  .filter(Boolean)
1437
1444
  .join(' '),
@@ -647,10 +647,23 @@ body.tablet-mode .InovuaReactDataGrid__cell.cell-word-wrap > div {
647
647
  .InovuaReactDataGrid__row {
648
648
  min-height: 44px !important;
649
649
  border: 0 !important;
650
- background: var(--dgx-surface) !important;
651
650
  transition: background 140ms cubic-bezier(0.4, 0, 0.2, 1) !important;
652
651
  }
653
652
 
653
+ /* The surface is on its own rule so it can stand down for a `rowColours`
654
+ tint. That tint arrives as an INLINE background set by rowStyle in
655
+ DataGrid.jsx, and inline loses to any `!important` — so painting the
656
+ surface `!important` on every row silently killed the priority/urgency
657
+ colours projects configure (tasks grids and the like). Rows with a tint
658
+ are marked `vs-datagrid--row-tinted` (the literal twin of the module's
659
+ hashed `.tintedRow`); on those rows nothing is declared here and the
660
+ inline tint wins over the vendored theme's non-important zebra.
661
+ Hover and selected below stay `!important` on every row by design —
662
+ they have always outranked the tint. */
663
+ .InovuaReactDataGrid__row:not(.vs-datagrid--row-tinted) {
664
+ background: var(--dgx-surface) !important;
665
+ }
666
+
654
667
  .InovuaReactDataGrid__row:hover,
655
668
  .InovuaReactDataGrid__row--hover-target:hover {
656
669
  background: var(--dgx-hover) !important;