@odx/ui 4.6.0 → 4.6.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,17 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 4.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ee17aeb: fix: set minimal width for tab bar item in tab bar component
8
+
9
+ ## 4.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 7976ed5: fix: main menu item label do not truncate
14
+
3
15
  ## 4.6.0
4
16
 
5
17
  ### Minor Changes
package/core-theme.css CHANGED
@@ -5057,10 +5057,9 @@ html body .odx-fs-italic {
5057
5057
  }
5058
5058
 
5059
5059
  .odx-main-menu-item {
5060
- margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5061
- margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5062
- height: calc(var(--odx-vertical-rythm-base-size) * 2.3334);
5060
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
5063
5061
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
5062
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
5064
5063
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
5065
5064
  transition-delay: 0ms;
5066
5065
  transition-duration: var(--odx-v-transition-duration);
@@ -5072,8 +5071,6 @@ html body .odx-fs-italic {
5072
5071
  -webkit-user-select: none;
5073
5072
  -moz-user-select: none;
5074
5073
  user-select: none;
5075
- display: flex;
5076
- align-items: center;
5077
5074
  font-weight: var(--odx-typography-font-weight-medium);
5078
5075
  letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
5079
5076
  overflow: clip;
@@ -5082,6 +5079,7 @@ html body .odx-fs-italic {
5082
5079
  background-color: transparent;
5083
5080
  border-radius: var(--odx-v-border-radius);
5084
5081
  color: var(--odx-main-menu-item-text-color);
5082
+ line-height: 1;
5085
5083
  }
5086
5084
  .odx-main-menu-item:focus-visible {
5087
5085
  outline-color: var(--odx-c-focus-outline);
@@ -6615,10 +6613,14 @@ html body .odx-fs-italic {
6615
6613
  background-color: transparent;
6616
6614
  border-radius: var(--odx-v-border-radius-controls);
6617
6615
  cursor: pointer;
6616
+ min-inline-size: calc(var(--odx-vertical-rythm-base-size) * 3);
6618
6617
  -webkit-user-select: none;
6619
6618
  -moz-user-select: none;
6620
6619
  user-select: none;
6621
6620
  }
6621
+ .odx-tab-bar-item__label {
6622
+ flex: 1;
6623
+ }
6622
6624
  @media (hover: hover){
6623
6625
  .odx-tab-bar-item:hover {
6624
6626
  background-color: var(--blue-700-5);
@@ -6634,14 +6636,14 @@ html body .odx-fs-italic {
6634
6636
  font-size: calc(var(--odx-vertical-rythm-base-size) * 1);
6635
6637
  }
6636
6638
  .odx-tab-bar-item .odx-icon:first-child {
6637
- margin-left: 0;
6639
+ margin-inline-start: 0;
6638
6640
  }
6639
6641
  .odx-tab-bar-item .odx-icon:last-child:not(:first-child) {
6640
6642
  transition-delay: 0ms;
6641
6643
  transition-duration: var(--odx-v-transition-duration);
6642
6644
  transition-property: color;
6643
6645
  transition-timing-function: var(--odx-v-transition-easing-fn);
6644
- margin-right: 0;
6646
+ margin-inline-end: 0;
6645
6647
  }
6646
6648
  @media (hover: hover){
6647
6649
  .odx-tab-bar-item .odx-icon:last-child:not(:first-child):hover {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "4.6.0",
3
+ "version": "4.6.2",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -18,17 +18,16 @@
18
18
  }
19
19
 
20
20
  .odx-main-menu-item {
21
- @include dimensions.height(3, math.div(7, 3));
22
- @include dimensions.padding-x(math.div(2, 3));
21
+ @include dimensions.padding(math.div(2, 3));
23
22
  @include motion.transition(color background-color outline);
24
23
  @include utils.interactive(false);
25
- @include utils.vertical-center-content();
26
24
  @include typography.font-weight(medium);
27
25
  @include typography.prevent-text-overflow();
28
26
 
29
27
  background-color: transparent;
30
28
  border-radius: var(--odx-v-border-radius);
31
29
  color: var(--odx-main-menu-item-text-color);
30
+ line-height: 1;
32
31
 
33
32
  &:hover {
34
33
  background-color: var(--odx-main-menu-item-background-color-hover);
@@ -15,8 +15,13 @@
15
15
  background-color: transparent;
16
16
  border-radius: var(--odx-v-border-radius-controls);
17
17
  cursor: pointer;
18
+ min-inline-size: dimensions.get-size(math.div(72, 24));
18
19
  user-select: none;
19
20
 
21
+ &__label {
22
+ flex: 1;
23
+ }
24
+
20
25
  &:hover {
21
26
  background-color: var(--blue-700-5);
22
27
  }
@@ -28,13 +33,13 @@
28
33
  font-size: dimensions.get-size(1);
29
34
 
30
35
  &:first-child {
31
- margin-left: 0;
36
+ margin-inline-start: 0;
32
37
  }
33
38
 
34
39
  &:last-child:not(:first-child) {
35
40
  @include motion.transition(color);
36
41
 
37
- margin-right: 0;
42
+ margin-inline-end: 0;
38
43
 
39
44
  &:hover {
40
45
  color: var(--odx-c-highlight);