@odx/ui 3.4.0 → 3.4.1

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,12 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 523fde7: Fix z-index layer position of tooltips
8
+ - 8348bdb: Fix text overflow for tile menu items and card titles
9
+
3
10
  ## 3.4.0
4
11
 
5
12
  ### Minor Changes
package/core-theme.css CHANGED
@@ -2226,7 +2226,7 @@ html body .odx-fs-italic {
2226
2226
  justify-content: center;
2227
2227
  font-weight: var(--odx-typography-font-weight-medium);
2228
2228
  letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
2229
- overflow: hidden;
2229
+ overflow-x: clip;
2230
2230
  text-overflow: ellipsis;
2231
2231
  white-space: nowrap;
2232
2232
  background-color: var(--blue-700-10);
@@ -2388,6 +2388,8 @@ html body .odx-fs-italic {
2388
2388
  appearance: none;
2389
2389
  border-radius: var(--odx-v-border-radius-controls);
2390
2390
  min-width: calc(var(--odx-vertical-rythm-base-size) * 1.5);
2391
+ overflow-wrap: anywhere;
2392
+ overflow-y: clip;
2391
2393
  vertical-align: middle;
2392
2394
  }
2393
2395
  .odx-button:focus-visible {
@@ -2722,7 +2724,7 @@ html body .odx-fs-italic {
2722
2724
  color: var(--odx-area-header-title-color);
2723
2725
  }
2724
2726
  .odx-area-header__subtitle {
2725
- overflow: hidden;
2727
+ overflow-x: clip;
2726
2728
  text-overflow: ellipsis;
2727
2729
  white-space: nowrap;
2728
2730
  color: var(--odx-area-header-subtitle-color);
@@ -3151,11 +3153,14 @@ html body .odx-fs-italic {
3151
3153
  }
3152
3154
  }
3153
3155
  .odx-card--launch-tile .odx-card__title, .odx-card--launch-tile-centered .odx-card__title {
3154
- font-weight: var(--odx-typography-font-weight-medium);
3155
- letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
3156
- display: block;
3157
3156
  font-size: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
3158
3157
  line-height: calc(var(--odx-vertical-rythm-base-size) * 1.25);
3158
+ font-weight: var(--odx-typography-font-weight-medium);
3159
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
3160
+ -webkit-box-orient: block-axis;
3161
+ display: -webkit-box;
3162
+ -webkit-line-clamp: 3;
3163
+ overflow-y: clip;
3159
3164
  }
3160
3165
  @media (min-width: 480px) {
3161
3166
  .odx-card--launch-tile .odx-card__title, .odx-card--launch-tile-centered .odx-card__title {
@@ -3554,7 +3559,7 @@ html body .odx-fs-italic {
3554
3559
  user-select: none;
3555
3560
  }
3556
3561
  .odx-chip__content {
3557
- overflow: hidden;
3562
+ overflow-x: clip;
3558
3563
  text-overflow: ellipsis;
3559
3564
  white-space: nowrap;
3560
3565
  }
@@ -3787,10 +3792,10 @@ html body .odx-fs-italic {
3787
3792
  text-align: center;
3788
3793
  }
3789
3794
  .odx-error-page__icon-container {
3790
- margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 2);
3795
+ margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 1);
3791
3796
  }
3792
3797
  .odx-error-page__actions {
3793
- margin-top: calc(var(--odx-vertical-rythm-base-size) * 2);
3798
+ margin-top: calc(var(--odx-vertical-rythm-base-size) * 1);
3794
3799
  display: flex;
3795
3800
  flex-wrap: wrap;
3796
3801
  gap: var(--odx-grid-gutter);
@@ -3798,7 +3803,7 @@ html body .odx-fs-italic {
3798
3803
  width: 100%;
3799
3804
  }
3800
3805
  .odx-error-page__footer {
3801
- padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 2);
3806
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 1);
3802
3807
  text-align: center;
3803
3808
  }
3804
3809
 
@@ -3963,7 +3968,7 @@ html body .odx-fs-italic {
3963
3968
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
3964
3969
  }
3965
3970
  .odx-form-field:not(.odx-form-field--horizontal) .odx-form-field-label {
3966
- overflow: hidden;
3971
+ overflow-x: clip;
3967
3972
  text-overflow: ellipsis;
3968
3973
  white-space: nowrap;
3969
3974
  }
@@ -4218,7 +4223,7 @@ html body .odx-fs-italic {
4218
4223
  }
4219
4224
  }
4220
4225
  .odx-header__title {
4221
- overflow: hidden;
4226
+ overflow-x: clip;
4222
4227
  text-overflow: ellipsis;
4223
4228
  white-space: nowrap;
4224
4229
  }
@@ -4717,7 +4722,7 @@ html body .odx-fs-italic {
4717
4722
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4718
4723
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
4719
4724
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
4720
- overflow: hidden;
4725
+ overflow-x: clip;
4721
4726
  text-overflow: ellipsis;
4722
4727
  white-space: nowrap;
4723
4728
  background-color: var(--odx-input-control-background-color);
@@ -4802,7 +4807,7 @@ html body .odx-fs-italic {
4802
4807
  align-items: center;
4803
4808
  font-weight: var(--odx-typography-font-weight-medium);
4804
4809
  letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
4805
- overflow: hidden;
4810
+ overflow-x: clip;
4806
4811
  text-overflow: ellipsis;
4807
4812
  white-space: nowrap;
4808
4813
  background-color: transparent;
@@ -4872,7 +4877,7 @@ html body .odx-fs-italic {
4872
4877
  position: fixed;
4873
4878
  top: 0;
4874
4879
  width: 100%;
4875
- z-index: var(--odx-v-layer-4);
4880
+ z-index: var(--odx-v-layer-6);
4876
4881
  }
4877
4882
  .odx-main-menu__overlay {
4878
4883
  -webkit-backdrop-filter: blur(var(--odx-v-backdrop-blur));
@@ -4883,7 +4888,7 @@ html body .odx-fs-italic {
4883
4888
  position: fixed;
4884
4889
  top: 0;
4885
4890
  width: 100%;
4886
- z-index: calc(var(--odx-v-layer-4) - 1);
4891
+ z-index: calc(var(--odx-v-layer-6) - 1);
4887
4892
  }
4888
4893
  .odx-main-menu__actions {
4889
4894
  margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
@@ -4999,7 +5004,6 @@ html body .odx-fs-italic {
4999
5004
  height: unset;
5000
5005
  line-height: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
5001
5006
  padding: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5002
- white-space: unset;
5003
5007
  width: calc(var(--odx-vertical-rythm-base-size) * 4.1667);
5004
5008
  }
5005
5009
 
@@ -5018,7 +5022,7 @@ html body .odx-fs-italic {
5018
5022
  position: fixed;
5019
5023
  top: 0;
5020
5024
  width: 100dvw;
5021
- z-index: var(--odx-v-layer-5);
5025
+ z-index: var(--odx-v-layer-4);
5022
5026
  }
5023
5027
  @media (min-width: 480px) {
5024
5028
  .odx-modal {
@@ -5626,7 +5630,7 @@ html body .odx-fs-italic {
5626
5630
  pointer-events: none;
5627
5631
  }
5628
5632
  .odx-rail-navigation-item__container {
5629
- overflow: hidden;
5633
+ overflow-x: clip;
5630
5634
  text-overflow: ellipsis;
5631
5635
  white-space: nowrap;
5632
5636
  transition-delay: 0ms;
@@ -5637,14 +5641,15 @@ html body .odx-fs-italic {
5637
5641
  width: 0;
5638
5642
  }
5639
5643
  .odx-rail-navigation--bar .odx-rail-navigation-item__container {
5640
- -webkit-box-orient: vertical;
5641
- display: -webkit-box;
5642
- -webkit-line-clamp: 2;
5643
5644
  margin: auto 0;
5644
5645
  opacity: unset;
5645
5646
  padding: 0 !important;
5646
5647
  white-space: unset;
5647
5648
  width: unset !important;
5649
+ -webkit-box-orient: block-axis;
5650
+ display: -webkit-box;
5651
+ -webkit-line-clamp: 2;
5652
+ overflow-y: clip;
5648
5653
  font-size: calc(var(--odx-typography-base-size) * (1*1/var(--odx-typography-negative-font-scaling-factor)*1/var(--odx-typography-negative-font-scaling-factor)));
5649
5654
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
5650
5655
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
@@ -5770,7 +5775,7 @@ html body .odx-fs-italic {
5770
5775
  .odx-select__placeholder, .odx-select__value {
5771
5776
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
5772
5777
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
5773
- overflow: hidden;
5778
+ overflow-x: clip;
5774
5779
  text-overflow: ellipsis;
5775
5780
  white-space: nowrap;
5776
5781
  flex: 1 1 auto;
@@ -6777,7 +6782,7 @@ html body .odx-fs-italic {
6777
6782
  display: inline-flex;
6778
6783
  }
6779
6784
  .odx-wizard-step__label {
6780
- overflow: hidden;
6785
+ overflow-x: clip;
6781
6786
  text-overflow: ellipsis;
6782
6787
  white-space: nowrap;
6783
6788
  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.4.0",
3
+ "version": "3.4.1",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -22,8 +22,15 @@
22
22
  letter-spacing: var(--odx-typography-font-weight-#{$value}-letter-spacing);
23
23
  }
24
24
 
25
+ @mixin line-clamp($value) {
26
+ -webkit-box-orient: block-axis;
27
+ display: -webkit-box;
28
+ -webkit-line-clamp: $value;
29
+ overflow-y: clip;
30
+ }
31
+
25
32
  @mixin prevent-text-overflow() {
26
- overflow: hidden;
33
+ overflow-x: clip;
27
34
  text-overflow: ellipsis;
28
35
  white-space: nowrap;
29
36
  }
@@ -26,6 +26,8 @@
26
26
  appearance: none;
27
27
  border-radius: var(--odx-v-border-radius-controls);
28
28
  min-width: dimensions.get-size(1.5);
29
+ overflow-wrap: anywhere;
30
+ overflow-y: clip;
29
31
  vertical-align: middle;
30
32
 
31
33
  &:not(:has(> .odx-icon, > .odx-avatar)) {
@@ -84,12 +84,12 @@
84
84
  }
85
85
 
86
86
  #{$root}__title {
87
- @include typography.font-weight(medium);
88
-
89
- display: block;
90
87
  font-size: dimensions.get-size(math.div(20, 24));
91
88
  line-height: dimensions.get-size(math.div(30, 24));
92
89
 
90
+ @include typography.font-weight(medium);
91
+ @include typography.line-clamp(3);
92
+
93
93
  @include breakpoints.up(phone) {
94
94
  @include dimensions.margin-y(math.div(9, 24));
95
95
 
@@ -25,11 +25,11 @@
25
25
  }
26
26
 
27
27
  &__icon-container {
28
- @include dimensions.margin(2, bottom);
28
+ @include dimensions.margin(1, bottom);
29
29
  }
30
30
 
31
31
  &__actions {
32
- @include dimensions.margin(2, top);
32
+ @include dimensions.margin(1, top);
33
33
 
34
34
  display: flex;
35
35
  flex-wrap: wrap;
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  &__footer {
42
- @include dimensions.padding(2, bottom);
42
+ @include dimensions.padding(1, bottom);
43
43
 
44
44
  text-align: center;
45
45
  }
@@ -42,7 +42,7 @@
42
42
  position: fixed;
43
43
  top: 0;
44
44
  width: 100%;
45
- z-index: var(--odx-v-layer-4);
45
+ z-index: var(--odx-v-layer-6);
46
46
  }
47
47
 
48
48
  &__overlay {
@@ -53,7 +53,7 @@
53
53
  position: fixed;
54
54
  top: 0;
55
55
  width: 100%;
56
- z-index: calc(var(--odx-v-layer-4) - 1);
56
+ z-index: calc(var(--odx-v-layer-6) - 1);
57
57
  }
58
58
 
59
59
  &__actions {
@@ -44,7 +44,6 @@
44
44
  height: unset;
45
45
  line-height: dimensions.get-size(math.div(20, 24));
46
46
  padding: $grid-gap;
47
- white-space: unset;
48
47
  width: dimensions.get-size(math.div(100, 24));
49
48
  }
50
49
  }
@@ -23,7 +23,7 @@ $modal-padding: math.div(12, 24);
23
23
  position: fixed;
24
24
  top: 0;
25
25
  width: 100dvw;
26
- z-index: var(--odx-v-layer-5);
26
+ z-index: var(--odx-v-layer-4);
27
27
 
28
28
  @include breakpoints.up(phone) {
29
29
  --odx-modal-margin-y: #{dimensions.get-size(3)};
@@ -47,15 +47,13 @@
47
47
  width: 0;
48
48
 
49
49
  .odx-rail-navigation--bar & {
50
- -webkit-box-orient: vertical;
51
- display: -webkit-box;
52
- -webkit-line-clamp: 2;
53
50
  margin: auto 0;
54
51
  opacity: unset;
55
52
  padding: 0 !important;
56
53
  white-space: unset;
57
54
  width: unset !important;
58
55
 
56
+ @include typography.line-clamp(2);
59
57
  @include typography.font-size(-2);
60
58
  @include dimensions.line-height(math.div(2, 3));
61
59