@olenbetong/appframe-ds 1.13.0 → 1.13.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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/grid/slots/slots.css +25 -0
- package/src/layout/ButtonLoading.css +16 -0
- package/src/layout/index.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @olenbetong/appframe-ds
|
|
2
2
|
|
|
3
|
+
## 1.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 73900fe: A loading Designsystemet button keeps its size: the spinner lies on top of the label instead of beside it, so nothing shifts when loading starts and stops.
|
|
8
|
+
|
|
9
|
+
## 1.13.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6235575: Selects in a grid cell being edited no longer draw a field border and background; they fill the cell like the text editor.
|
|
14
|
+
|
|
3
15
|
## 1.13.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
package/src/grid/slots/slots.css
CHANGED
|
@@ -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 {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A loading Designsystemet button keeps its size. Designsystemet puts the spinner in front of the
|
|
3
|
+
* label, which widens the button and moves everything beside it when loading starts and stops.
|
|
4
|
+
* Here the spinner lies on top of the label instead, and the label is hidden but still takes its
|
|
5
|
+
* space. An icon button is left alone: there the spinner already replaces the icon.
|
|
6
|
+
*/
|
|
7
|
+
.ds-button[aria-busy="true"]:not([data-icon]) {
|
|
8
|
+
position: relative;
|
|
9
|
+
color: transparent;
|
|
10
|
+
|
|
11
|
+
> .ds-spinner {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
margin: auto;
|
|
15
|
+
}
|
|
16
|
+
}
|