@odx/ui 3.5.3 → 3.5.5

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - fe01672: Fix avatar image overflow
8
+ - 7327b27: Remove avatar background if avatar image is present
9
+
10
+ ## 3.5.4
11
+
12
+ ### Patch Changes
13
+
14
+ - e3a4eb8: Prevent datepicker, daterangepicker and timepicker dropdown content from overflowing
15
+
3
16
  ## 3.5.3
4
17
 
5
18
  ### Patch Changes
package/core-theme.css CHANGED
@@ -2079,7 +2079,7 @@ html body .odx-fs-italic {
2079
2079
  top: 0 !important;
2080
2080
  }
2081
2081
  .odx-cdk-connected-overlay__content > * {
2082
- max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
2082
+ max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
2083
2083
  }
2084
2084
 
2085
2085
  .odx-cdk-connected-overlay-arrow {
@@ -2227,7 +2227,7 @@ html body .odx-fs-italic {
2227
2227
  justify-content: center;
2228
2228
  font-weight: var(--odx-typography-font-weight-medium);
2229
2229
  letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
2230
- overflow-x: clip;
2230
+ overflow: clip;
2231
2231
  text-overflow: ellipsis;
2232
2232
  white-space: nowrap;
2233
2233
  background-color: var(--blue-700-10);
@@ -2321,6 +2321,9 @@ html body .odx-fs-italic {
2321
2321
  .odx-avatar--rectangle {
2322
2322
  border-radius: var(--odx-v-border-radius-controls);
2323
2323
  }
2324
+ .odx-avatar:has(img) {
2325
+ background-color: transparent;
2326
+ }
2324
2327
  .odx-avatar img {
2325
2328
  height: 100%;
2326
2329
  left: 0;
@@ -2337,15 +2340,15 @@ html body .odx-fs-italic {
2337
2340
  border-radius: var(--odx-v-border-radius);
2338
2341
  box-shadow: var(--odx-v-box-shadow-layer-1);
2339
2342
  display: block;
2340
- min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
2343
+ min-height: inherit;
2341
2344
  }
2342
2345
  .odx-dropdown__inner {
2343
2346
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
2344
2347
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
2345
2348
  border-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.5) solid transparent;
2346
2349
  border-top: calc(var(--odx-vertical-rythm-base-size) * 0.5) solid transparent;
2347
- max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
2348
- min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
2350
+ max-height: inherit;
2351
+ min-height: inherit;
2349
2352
  overflow: auto;
2350
2353
  overscroll-behavior: contain;
2351
2354
  }
@@ -2725,7 +2728,7 @@ html body .odx-fs-italic {
2725
2728
  color: var(--odx-area-header-title-color);
2726
2729
  }
2727
2730
  .odx-area-header__subtitle {
2728
- overflow-x: clip;
2731
+ overflow: clip;
2729
2732
  text-overflow: ellipsis;
2730
2733
  white-space: nowrap;
2731
2734
  color: var(--odx-area-header-subtitle-color);
@@ -3624,7 +3627,7 @@ html body .odx-fs-italic {
3624
3627
  user-select: none;
3625
3628
  }
3626
3629
  .odx-chip__content {
3627
- overflow-x: clip;
3630
+ overflow: clip;
3628
3631
  text-overflow: ellipsis;
3629
3632
  white-space: nowrap;
3630
3633
  }
@@ -3838,7 +3841,7 @@ html body .odx-fs-italic {
3838
3841
  display: none;
3839
3842
  }
3840
3843
  .odx-datepicker .odx-dropdown {
3841
- max-height: 359px;
3844
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), 359px);
3842
3845
  }
3843
3846
 
3844
3847
  .odx-daterangepicker {
@@ -3869,7 +3872,7 @@ html body .odx-fs-italic {
3869
3872
  margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.25);
3870
3873
  }
3871
3874
  .odx-daterangepicker .odx-dropdown {
3872
- max-height: 359px;
3875
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), 359px);
3873
3876
  }
3874
3877
 
3875
3878
  .odx-error-page {
@@ -4064,7 +4067,7 @@ html body .odx-fs-italic {
4064
4067
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
4065
4068
  }
4066
4069
  .odx-form-field:not(.odx-form-field--horizontal) .odx-form-field-label {
4067
- overflow-x: clip;
4070
+ overflow: clip;
4068
4071
  text-overflow: ellipsis;
4069
4072
  white-space: nowrap;
4070
4073
  }
@@ -4319,7 +4322,7 @@ html body .odx-fs-italic {
4319
4322
  }
4320
4323
  }
4321
4324
  .odx-header__title {
4322
- overflow-x: clip;
4325
+ overflow: clip;
4323
4326
  text-overflow: ellipsis;
4324
4327
  white-space: nowrap;
4325
4328
  }
@@ -4832,7 +4835,7 @@ html body .odx-fs-italic {
4832
4835
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4833
4836
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
4834
4837
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
4835
- overflow-x: clip;
4838
+ overflow: clip;
4836
4839
  text-overflow: ellipsis;
4837
4840
  white-space: nowrap;
4838
4841
  background-color: var(--odx-input-control-background-color);
@@ -4917,7 +4920,7 @@ html body .odx-fs-italic {
4917
4920
  align-items: center;
4918
4921
  font-weight: var(--odx-typography-font-weight-medium);
4919
4922
  letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
4920
- overflow-x: clip;
4923
+ overflow: clip;
4921
4924
  text-overflow: ellipsis;
4922
4925
  white-space: nowrap;
4923
4926
  background-color: transparent;
@@ -5307,11 +5310,8 @@ html body .odx-fs-italic {
5307
5310
  }
5308
5311
 
5309
5312
  .odx-notification-center-overlay {
5310
- --odx-cdk-connected-overlay-min-height: calc(var(--odx-vertical-rythm-base-size) * 9);
5311
- --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), calc(var(--odx-vertical-rythm-base-size) * 18));
5312
- }
5313
- .odx-notification-center-overlay .odx-dropdown {
5314
- --odx-cdk-connected-overlay-max-height: var(--odx-cdk-connected-overlay-max-height-modified);
5313
+ --odx-cdk-connected-overlay-min-height-modified: calc(var(--odx-vertical-rythm-base-size) * 9);
5314
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), calc(var(--odx-vertical-rythm-base-size) * 15));
5315
5315
  }
5316
5316
 
5317
5317
  .odx-notification-center {
@@ -5320,7 +5320,6 @@ html body .odx-fs-italic {
5320
5320
  --odx-notification-center-header-height: calc(var(--odx-vertical-rythm-base-size) * 2);
5321
5321
  --odx-notification-center-footer-height: calc(var(--odx-vertical-rythm-base-size) * 2.5);
5322
5322
  background-color: var(--odx-c-background-content);
5323
- max-height: min(var(--odx-cdk-connected-overlay-max-height), calc(var(--odx-vertical-rythm-base-size) * 15));
5324
5323
  }
5325
5324
  .odx-notification-center__header, .odx-notification-center__footer {
5326
5325
  background-color: inherit;
@@ -5740,7 +5739,7 @@ html body .odx-fs-italic {
5740
5739
  pointer-events: none;
5741
5740
  }
5742
5741
  .odx-rail-navigation-item__container {
5743
- overflow-x: clip;
5742
+ overflow: clip;
5744
5743
  text-overflow: ellipsis;
5745
5744
  white-space: nowrap;
5746
5745
  transition-delay: 0ms;
@@ -5885,7 +5884,7 @@ html body .odx-fs-italic {
5885
5884
  .odx-select__placeholder, .odx-select__value {
5886
5885
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
5887
5886
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
5888
- overflow-x: clip;
5887
+ overflow: clip;
5889
5888
  text-overflow: ellipsis;
5890
5889
  white-space: nowrap;
5891
5890
  flex: 1 1 auto;
@@ -6941,7 +6940,7 @@ html body .odx-fs-italic {
6941
6940
  display: inline-flex;
6942
6941
  }
6943
6942
  .odx-wizard-step__label {
6944
- overflow-x: clip;
6943
+ overflow: clip;
6945
6944
  text-overflow: ellipsis;
6946
6945
  white-space: nowrap;
6947
6946
  outline: var(--odx-v-outline-width) solid transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "3.5.3",
3
+ "version": "3.5.5",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  @mixin prevent-text-overflow() {
33
- overflow-x: clip;
33
+ overflow: clip;
34
34
  text-overflow: ellipsis;
35
35
  white-space: nowrap;
36
36
  }
@@ -30,7 +30,7 @@
30
30
  top: 0 !important;
31
31
 
32
32
  > * {
33
- max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
33
+ max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
34
34
  }
35
35
  }
36
36
  }
@@ -52,6 +52,10 @@
52
52
  border-radius: var(--odx-v-border-radius-controls);
53
53
  }
54
54
 
55
+ &:has(img) {
56
+ background-color: transparent;
57
+ }
58
+
55
59
  img {
56
60
  height: 100%;
57
61
  left: 0;
@@ -2,7 +2,6 @@
2
2
 
3
3
  .odx-datepicker {
4
4
  $root: &;
5
- $dropdown-max-height: 359px;
6
5
 
7
6
  @include utils.vertical-center-content();
8
7
 
@@ -25,6 +24,6 @@
25
24
  }
26
25
 
27
26
  .odx-dropdown {
28
- max-height: $dropdown-max-height;
27
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), 359px);
29
28
  }
30
29
  }
@@ -3,7 +3,6 @@
3
3
 
4
4
  .odx-daterangepicker {
5
5
  $root: &;
6
- $dropdown-max-height: 359px;
7
6
 
8
7
  @include utils.vertical-center-content();
9
8
 
@@ -39,6 +38,6 @@
39
38
  }
40
39
 
41
40
  .odx-dropdown {
42
- max-height: $dropdown-max-height;
41
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), 359px);
43
42
  }
44
43
  }
@@ -8,15 +8,15 @@ $dropdown-open-selector: '.odx-dropdown-host[aria-expanded="true"]';
8
8
  border-radius: var(--odx-v-border-radius);
9
9
  box-shadow: var(--odx-v-box-shadow-layer-1);
10
10
  display: block;
11
- min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
11
+ min-height: inherit;
12
12
 
13
13
  &__inner {
14
14
  @include dimensions.padding-x(0.5);
15
15
 
16
16
  border-bottom: dimensions.get-size(0.5) solid transparent;
17
17
  border-top: dimensions.get-size(0.5) solid transparent;
18
- max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
19
- min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
18
+ max-height: inherit;
19
+ min-height: inherit;
20
20
  overflow: auto;
21
21
  overscroll-behavior: contain;
22
22
  }
@@ -2,12 +2,8 @@
2
2
  @use '../abstract/typography';
3
3
 
4
4
  .odx-notification-center-overlay {
5
- --odx-cdk-connected-overlay-min-height: #{dimensions.get-size(9)};
6
- --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), #{dimensions.get-size(18)});
7
-
8
- .odx-dropdown {
9
- --odx-cdk-connected-overlay-max-height: var(--odx-cdk-connected-overlay-max-height-modified);
10
- }
5
+ --odx-cdk-connected-overlay-min-height-modified: #{dimensions.get-size(9)};
6
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), #{dimensions.get-size(15)});
11
7
  }
12
8
 
13
9
  .odx-notification-center {
@@ -17,7 +13,6 @@
17
13
  --odx-notification-center-footer-height: #{dimensions.get-size(2.5)};
18
14
 
19
15
  background-color: var(--odx-c-background-content);
20
- max-height: min(var(--odx-cdk-connected-overlay-max-height), #{dimensions.get-size(15)});
21
16
 
22
17
  &__header,
23
18
  &__footer {