@olenbetong/appframe-ds 1.13.0 → 1.13.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @olenbetong/appframe-ds
2
2
 
3
+ ## 1.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6235575: Selects in a grid cell being edited no longer draw a field border and background; they fill the cell like the text editor.
8
+
3
9
  ## 1.13.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olenbetong/appframe-ds",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "Components that bind Designsystemet components to Appframe data objects",
5
5
  "type": "module",
6
6
  "types": "./es/index.d.ts",
@@ -12,6 +12,31 @@
12
12
  width: 100%;
13
13
  }
14
14
 
15
+ /* In a cell being edited the select fills the cell like the grid's own text editor: the cell's
16
+ outline already marks the edit, so a field border inside it only looks cramped. */
17
+ .MuiDataGrid-cell--editing .AfGrid-select {
18
+ --dsc-input-background: transparent;
19
+ --dsc-input-border-color: transparent;
20
+ --dsc-input-border-radius: 0;
21
+ --dsc-input-outline-color--hover: transparent;
22
+
23
+ block-size: 100%;
24
+ }
25
+
26
+ /* The open list takes its colours from the select, which is transparent here; without its own
27
+ background it falls back to white under the theme's text colour. */
28
+ .MuiDataGrid-cell--editing .AfGrid-select option {
29
+ background-color: var(--ds-color-neutral-surface-default);
30
+ color: var(--ds-color-neutral-text-default);
31
+ }
32
+
33
+ /* The grid outlines the focused cell, as it does for the text editor; Designsystemet's focus
34
+ ring on top of it would read as a second, mismatched border. */
35
+ .MuiDataGrid-cell--editing .AfGrid-select:focus-visible {
36
+ outline: none;
37
+ box-shadow: none;
38
+ }
39
+
15
40
  /* Sort-order and filter-count badges on header icon buttons: a compact number
16
41
  pinned to the button corner instead of Designsystemet's default 1.5rem badge. */
17
42
  .AfGrid-badge .ds-badge {