@siemens/element-theme 49.0.0-rc.3 → 49.0.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.
package/LICENSE.md ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License
2
+
3
+ Copyright (c) Siemens 2016 - 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the “Software”), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siemens/element-theme",
3
- "version": "49.0.0-rc.3",
3
+ "version": "49.0.0",
4
4
  "description": "Element CSS theme.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -76,6 +76,10 @@ $btn-size-sm: 24px !default;
76
76
  &.btn-lg {
77
77
  inline-size: $btn-size-lg;
78
78
  }
79
+
80
+ &.btn-sm {
81
+ inline-size: $btn-size-sm;
82
+ }
79
83
  }
80
84
 
81
85
  // Dropdown toggle styling for split buttons
@@ -95,10 +99,11 @@ $btn-size-sm: 24px !default;
95
99
  &[inert] {
96
100
  opacity: semantic-tokens.$element-action-disabled-opacity;
97
101
  }
98
- }
99
102
 
100
- .btn-group .btn-check {
101
- + .btn {
103
+ // Selection buttons
104
+ .btn-check + .btn,
105
+ label.btn:has(.btn-check) {
106
+ cursor: pointer;
102
107
  background: transparent;
103
108
  color: semantic-tokens.$element-text-primary;
104
109
  padding-block: calc(variables.$btn-padding-y - 1px);
@@ -121,16 +126,17 @@ $btn-size-sm: 24px !default;
121
126
  margin-inline: 0;
122
127
  }
123
128
  }
124
- }
125
129
 
126
- &:checked + .btn,
127
- + .btn:hover {
128
- color: semantic-tokens.$element-ui-0-hover;
130
+ &:hover {
131
+ color: semantic-tokens.$element-ui-0-hover;
132
+ }
129
133
  }
130
134
 
131
- &:checked + .btn {
135
+ .btn-check:checked + .btn,
136
+ label.btn:has(.btn-check:checked) {
132
137
  background: semantic-tokens.$element-action-secondary-active;
133
138
  border-color: semantic-tokens.$element-action-secondary-border-hover;
139
+ color: semantic-tokens.$element-ui-0-hover;
134
140
  z-index: 2;
135
141
 
136
142
  &:hover {
@@ -138,7 +144,8 @@ $btn-size-sm: 24px !default;
138
144
  }
139
145
  }
140
146
 
141
- &:focus-visible + .btn {
147
+ .btn-check:focus-visible + .btn,
148
+ label.btn:has(.btn-check:focus-visible) {
142
149
  @include focus.make-outline-focus();
143
150
  z-index: 3;
144
151
  }
@@ -215,6 +215,19 @@ $form-check-label-start: $form-check-size + map.get(spacers.$spacers, 4);
215
215
  }
216
216
 
217
217
  // button group
218
+ .btn-group label:has(.btn-check) {
219
+ position: relative;
220
+
221
+ .btn-check {
222
+ inset: 0;
223
+ z-index: 3;
224
+ cursor: pointer;
225
+ opacity: 0;
226
+ clip: auto;
227
+ pointer-events: all;
228
+ }
229
+ }
230
+
218
231
  .btn-check {
219
232
  position: absolute;
220
233
  clip: rect(0, 0, 0, 0);