@ihk-gfi/lux-components-theme 21.5.0 → 21.6.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.
@@ -107,7 +107,7 @@ lux-filter-load-dialog {
107
107
  max-width: 100%;
108
108
  box-sizing: border-box;
109
109
  gap: 12px;
110
- place-content: center end;
110
+ place-content: center center;
111
111
  align-items: center;
112
112
  }
113
113
  }
@@ -1,3 +1,5 @@
1
+ @use "@angular/material" as mat;
2
+
1
3
  // Muss der Wrapper sein, da Input-Elemente auch in anderen Komponenten (z.B. lux-autocomplete) genutzt werden
2
4
  lux-form-control-wrapper {
3
5
  input {
@@ -18,9 +20,44 @@ lux-form-control-wrapper {
18
20
 
19
21
  lux-input-ac {
20
22
  // Theming des Prefix- und Suffix-Containers
21
- lux-input-ac-prefix,
22
- lux-input-ac-suffix {
23
- display: flex;
24
- white-space: nowrap;
23
+ lux-input-ac-prefix,
24
+ lux-input-ac-suffix {
25
+ display: flex;
26
+ white-space: nowrap;
27
+ }
28
+ }
29
+
30
+ @mixin input-clear-button($touchSize, $containerSize) {
31
+ lux-button.lux-icon-button.lux-input-clear-btn {
32
+ display: flex;
33
+
34
+ @include mat.icon-button-overrides(
35
+ (
36
+ container-shape: var(--lux-theme-button-icon-container-shape),
37
+ icon-color: var(--lux-theme-primary-color),
38
+ icon-size: var(--mat-icon-button-icon-size),
39
+ state-layer-size: #{$containerSize},
40
+ state-layer-color: var(--mat-sys-on-surface-variant),
41
+ touch-target-size: #{$touchSize}
42
+ )
43
+ );
44
+
45
+ lux-icon,
46
+ .lux-icon {
47
+ width: var(--mat-icon-button-icon-size);
48
+ height: var(--mat-icon-button-icon-size);
49
+ }
50
+
51
+ button:not([disabled]):focus,
52
+ button:not([disabled]):focus-visible {
53
+ outline-color: transparent !important; // In V22 wieder entfernen, wenn alle !important entfernt wurden
54
+ }
25
55
  }
26
56
  }
57
+
58
+ //Clear-Button für Input-Felder
59
+ @include input-clear-button(calc(var(--lux-theme-form-min-height) - 2 * var(--lux-theme-form-border-width)), "40px");
60
+
61
+ .lux-dense-authentic {
62
+ @include input-clear-button(calc(var(--lux-theme-form-dense-min-height) - 2 * var(--lux-theme-form-border-width)), "36px");
63
+ }
@@ -1,6 +1,5 @@
1
1
  @use "@angular/material" as mat;
2
2
  @use "../common/luxSvgIcons" as luxicons;
3
- @use "../common/luxfocus" as luxfocus;
4
3
 
5
4
  .mat-mdc-menu-panel {
6
5
  .mat-mdc-menu-item-text {
@@ -139,7 +138,9 @@ lux-menu {
139
138
  }
140
139
 
141
140
  .lux-menu-item-icon {
142
- display: inline-block;
141
+ display: inline-flex;
142
+ align-items: center;
143
+ justify-content: center;
143
144
  align-self: center;
144
145
  vertical-align: middle;
145
146
  width: var(--lux-theme-menu-item-icon-size);
@@ -147,13 +148,25 @@ lux-menu {
147
148
 
148
149
  .lux-icon,
149
150
  mat-icon {
151
+ display: inline-flex;
152
+ align-items: center;
153
+ justify-content: center;
150
154
  width: 100%;
151
155
  height: 100%;
156
+ max-width: var(--lux-theme-menu-item-icon-size);
157
+ max-height: var(--lux-theme-menu-item-icon-size);
152
158
  font-size: var(--lux-theme-menu-item-icon-size);
153
159
  }
154
160
 
155
161
  mat-icon {
156
162
  margin: 0;
163
+
164
+ svg {
165
+ width: 100%;
166
+ height: 100%;
167
+ max-width: var(--lux-theme-menu-item-icon-size);
168
+ max-height: var(--lux-theme-menu-item-icon-size);
169
+ }
157
170
  }
158
171
  }
159
172
  }
@@ -287,8 +300,17 @@ lux-menu {
287
300
 
288
301
  .lux-icon,
289
302
  mat-icon {
303
+ max-width: var(--lux-theme-menu-item-icon-size-large);
304
+ max-height: var(--lux-theme-menu-item-icon-size-large);
290
305
  font-size: var(--lux-theme-menu-item-icon-size-large);
291
306
  }
307
+
308
+ mat-icon {
309
+ svg {
310
+ max-width: var(--lux-theme-menu-item-icon-size-large);
311
+ max-height: var(--lux-theme-menu-item-icon-size-large);
312
+ }
313
+ }
292
314
  }
293
315
  }
294
316
  }
@@ -1,7 +1,39 @@
1
1
  @use "@angular/material" as mat;
2
2
 
3
- :root {
4
- @include mat.paginator-overrides((
5
- container-background-color: transparent,
6
- ));
7
- }
3
+ lux-paginator {
4
+ @include mat.paginator-overrides(
5
+ (
6
+ container-background-color: transparent
7
+ )
8
+ );
9
+
10
+ // Override the form field styles for the paginator's page size select
11
+ @include mat.form-field-overrides(
12
+ (
13
+ filled-container-color: transparent
14
+ )
15
+ );
16
+
17
+ mat-paginator.lux-no-wrap .mat-mdc-paginator-container {
18
+ flex-wrap: nowrap;
19
+ }
20
+
21
+ mat-paginator {
22
+ .mat-mdc-paginator-range-label {
23
+ margin-left: 0.25rem;
24
+ margin-right: 0.25rem;
25
+ }
26
+
27
+ &.lux-dense {
28
+ .mat-mdc-form-field-infix {
29
+ min-height: 0;
30
+ }
31
+
32
+ @include mat.form-field-overrides(
33
+ (
34
+ container-vertical-padding: 4px
35
+ )
36
+ );
37
+ }
38
+ }
39
+ }