@qtoggle/qui 1.20.0-beta.2 → 1.20.0

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.
@@ -57,38 +57,50 @@ div.qui-icon-label-view {
57
57
  &.qui-base-button {
58
58
  background: @background-color;
59
59
  color: @interactive-color;
60
+ transition: color @transition-duration ease,
61
+ opacity @transition-duration ease;
60
62
 
61
- /* The pressed shade is an overlay faded by opacity, which the compositor animates without repainting the row. A
62
- * background transition repaints it on every frame, and slow devices feel that as tap lag. */
63
+ /* The selected fill and the pressed shade are overlays faded by opacity, which the compositor animates without
64
+ * repainting the row. Chrome sometimes shows a background transition's first frame again once it ends. */
63
65
  position: relative;
66
+ z-index: 0;
64
67
 
65
- &::before {
68
+ /* Negative z-index keeps both overlays above the row's background but below its content */
69
+ &::before,
70
+ &::after {
66
71
  content: '';
67
72
  position: absolute;
68
73
  top: 0;
69
74
  right: 0;
70
75
  bottom: 0;
71
76
  left: 0;
72
- background: @background-active-color;
73
77
  opacity: 0;
74
78
  transition: opacity @transition-duration ease;
75
79
  pointer-events: none;
76
80
  }
77
81
 
78
- /* Keeps the icon and labels above the overlay */
79
- & > * {
80
- position: relative;
82
+ &::before {
83
+ background: @interactive-color;
84
+ z-index: -2;
85
+ }
86
+
87
+ &::after {
88
+ background: @background-active-color;
89
+ z-index: -1;
81
90
  }
82
91
 
83
- &.active::before {
92
+ &.active::after {
84
93
  opacity: 1;
85
94
  }
86
95
 
87
96
  &.selected {
88
- background: @interactive-color;
89
97
  color: @background-color;
90
98
 
91
99
  &::before {
100
+ opacity: 1;
101
+ }
102
+
103
+ &::after {
92
104
  background: @interactive-active-color;
93
105
  }
94
106
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qtoggle/qui",
3
3
  "description": "A JavaScript UI library with batteries included.",
4
- "version": "1.20.0-beta.2",
4
+ "version": "1.20.0",
5
5
  "author": {
6
6
  "name": "Calin Crisan",
7
7
  "email": "ccrisan@gmail.com"
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qui-server"
3
- version = "1.20.0-beta.2"
3
+ version = "1.20.0"
4
4
  description = "A fully fledged qToggle implementation written in Python"
5
5
  authors = [
6
6
  {name = "Calin Crisan", email = "ccrisan@gmail.com"},