@odx/ui 3.4.0 → 3.4.2

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.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ce320b1: Automatically break words in card titles with long words
8
+
9
+ ## 3.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 523fde7: Fix z-index layer position of tooltips
14
+ - 8348bdb: Fix text overflow for tile menu items and card titles
15
+
3
16
  ## 3.4.0
4
17
 
5
18
  ### 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,15 @@ 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
+ overflow-wrap: anywhere;
3159
+ font-weight: var(--odx-typography-font-weight-medium);
3160
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
3161
+ -webkit-box-orient: block-axis;
3162
+ display: -webkit-box;
3163
+ -webkit-line-clamp: 3;
3164
+ overflow-y: clip;
3159
3165
  }
3160
3166
  @media (min-width: 480px) {
3161
3167
  .odx-card--launch-tile .odx-card__title, .odx-card--launch-tile-centered .odx-card__title {
@@ -3554,7 +3560,7 @@ html body .odx-fs-italic {
3554
3560
  user-select: none;
3555
3561
  }
3556
3562
  .odx-chip__content {
3557
- overflow: hidden;
3563
+ overflow-x: clip;
3558
3564
  text-overflow: ellipsis;
3559
3565
  white-space: nowrap;
3560
3566
  }
@@ -3787,10 +3793,10 @@ html body .odx-fs-italic {
3787
3793
  text-align: center;
3788
3794
  }
3789
3795
  .odx-error-page__icon-container {
3790
- margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 2);
3796
+ margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 1);
3791
3797
  }
3792
3798
  .odx-error-page__actions {
3793
- margin-top: calc(var(--odx-vertical-rythm-base-size) * 2);
3799
+ margin-top: calc(var(--odx-vertical-rythm-base-size) * 1);
3794
3800
  display: flex;
3795
3801
  flex-wrap: wrap;
3796
3802
  gap: var(--odx-grid-gutter);
@@ -3798,7 +3804,7 @@ html body .odx-fs-italic {
3798
3804
  width: 100%;
3799
3805
  }
3800
3806
  .odx-error-page__footer {
3801
- padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 2);
3807
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 1);
3802
3808
  text-align: center;
3803
3809
  }
3804
3810
 
@@ -3963,7 +3969,7 @@ html body .odx-fs-italic {
3963
3969
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
3964
3970
  }
3965
3971
  .odx-form-field:not(.odx-form-field--horizontal) .odx-form-field-label {
3966
- overflow: hidden;
3972
+ overflow-x: clip;
3967
3973
  text-overflow: ellipsis;
3968
3974
  white-space: nowrap;
3969
3975
  }
@@ -4218,7 +4224,7 @@ html body .odx-fs-italic {
4218
4224
  }
4219
4225
  }
4220
4226
  .odx-header__title {
4221
- overflow: hidden;
4227
+ overflow-x: clip;
4222
4228
  text-overflow: ellipsis;
4223
4229
  white-space: nowrap;
4224
4230
  }
@@ -4717,7 +4723,7 @@ html body .odx-fs-italic {
4717
4723
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4718
4724
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
4719
4725
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
4720
- overflow: hidden;
4726
+ overflow-x: clip;
4721
4727
  text-overflow: ellipsis;
4722
4728
  white-space: nowrap;
4723
4729
  background-color: var(--odx-input-control-background-color);
@@ -4802,7 +4808,7 @@ html body .odx-fs-italic {
4802
4808
  align-items: center;
4803
4809
  font-weight: var(--odx-typography-font-weight-medium);
4804
4810
  letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
4805
- overflow: hidden;
4811
+ overflow-x: clip;
4806
4812
  text-overflow: ellipsis;
4807
4813
  white-space: nowrap;
4808
4814
  background-color: transparent;
@@ -4872,7 +4878,7 @@ html body .odx-fs-italic {
4872
4878
  position: fixed;
4873
4879
  top: 0;
4874
4880
  width: 100%;
4875
- z-index: var(--odx-v-layer-4);
4881
+ z-index: var(--odx-v-layer-6);
4876
4882
  }
4877
4883
  .odx-main-menu__overlay {
4878
4884
  -webkit-backdrop-filter: blur(var(--odx-v-backdrop-blur));
@@ -4883,7 +4889,7 @@ html body .odx-fs-italic {
4883
4889
  position: fixed;
4884
4890
  top: 0;
4885
4891
  width: 100%;
4886
- z-index: calc(var(--odx-v-layer-4) - 1);
4892
+ z-index: calc(var(--odx-v-layer-6) - 1);
4887
4893
  }
4888
4894
  .odx-main-menu__actions {
4889
4895
  margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
@@ -4999,7 +5005,6 @@ html body .odx-fs-italic {
4999
5005
  height: unset;
5000
5006
  line-height: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
5001
5007
  padding: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5002
- white-space: unset;
5003
5008
  width: calc(var(--odx-vertical-rythm-base-size) * 4.1667);
5004
5009
  }
5005
5010
 
@@ -5018,7 +5023,7 @@ html body .odx-fs-italic {
5018
5023
  position: fixed;
5019
5024
  top: 0;
5020
5025
  width: 100dvw;
5021
- z-index: var(--odx-v-layer-5);
5026
+ z-index: var(--odx-v-layer-4);
5022
5027
  }
5023
5028
  @media (min-width: 480px) {
5024
5029
  .odx-modal {
@@ -5626,7 +5631,7 @@ html body .odx-fs-italic {
5626
5631
  pointer-events: none;
5627
5632
  }
5628
5633
  .odx-rail-navigation-item__container {
5629
- overflow: hidden;
5634
+ overflow-x: clip;
5630
5635
  text-overflow: ellipsis;
5631
5636
  white-space: nowrap;
5632
5637
  transition-delay: 0ms;
@@ -5637,14 +5642,15 @@ html body .odx-fs-italic {
5637
5642
  width: 0;
5638
5643
  }
5639
5644
  .odx-rail-navigation--bar .odx-rail-navigation-item__container {
5640
- -webkit-box-orient: vertical;
5641
- display: -webkit-box;
5642
- -webkit-line-clamp: 2;
5643
5645
  margin: auto 0;
5644
5646
  opacity: unset;
5645
5647
  padding: 0 !important;
5646
5648
  white-space: unset;
5647
5649
  width: unset !important;
5650
+ -webkit-box-orient: block-axis;
5651
+ display: -webkit-box;
5652
+ -webkit-line-clamp: 2;
5653
+ overflow-y: clip;
5648
5654
  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
5655
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
5650
5656
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
@@ -5770,7 +5776,7 @@ html body .odx-fs-italic {
5770
5776
  .odx-select__placeholder, .odx-select__value {
5771
5777
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
5772
5778
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
5773
- overflow: hidden;
5779
+ overflow-x: clip;
5774
5780
  text-overflow: ellipsis;
5775
5781
  white-space: nowrap;
5776
5782
  flex: 1 1 auto;
@@ -6777,7 +6783,7 @@ html body .odx-fs-italic {
6777
6783
  display: inline-flex;
6778
6784
  }
6779
6785
  .odx-wizard-step__label {
6780
- overflow: hidden;
6786
+ overflow-x: clip;
6781
6787
  text-overflow: ellipsis;
6782
6788
  white-space: nowrap;
6783
6789
  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.2",
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,11 +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));
89
+ overflow-wrap: anywhere;
90
+
91
+ @include typography.font-weight(medium);
92
+ @include typography.line-clamp(3);
92
93
 
93
94
  @include breakpoints.up(phone) {
94
95
  @include dimensions.margin-y(math.div(9, 24));
@@ -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