@olenbetong/appframe-ds 1.13.1 → 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 +6 -0
- package/package.json +1 -1
- package/src/layout/ButtonLoading.css +16 -0
- package/src/layout/index.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 1.13.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|