@odx/ui 4.6.1 → 4.6.3

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.3
4
+
5
+ ### Patch Changes
6
+
7
+ - a4ad27f: chore: added styles for icon in togglebutton group button
8
+
9
+ ## 4.6.2
10
+
11
+ ### Patch Changes
12
+
13
+ - ee17aeb: fix: set minimal width for tab bar item in tab bar component
14
+
3
15
  ## 4.6.1
4
16
 
5
17
  ### Patch Changes
package/core-theme.css CHANGED
@@ -6613,10 +6613,14 @@ html body .odx-fs-italic {
6613
6613
  background-color: transparent;
6614
6614
  border-radius: var(--odx-v-border-radius-controls);
6615
6615
  cursor: pointer;
6616
+ min-inline-size: calc(var(--odx-vertical-rythm-base-size) * 3);
6616
6617
  -webkit-user-select: none;
6617
6618
  -moz-user-select: none;
6618
6619
  user-select: none;
6619
6620
  }
6621
+ .odx-tab-bar-item__label {
6622
+ flex: 1;
6623
+ }
6620
6624
  @media (hover: hover){
6621
6625
  .odx-tab-bar-item:hover {
6622
6626
  background-color: var(--blue-700-5);
@@ -6632,14 +6636,14 @@ html body .odx-fs-italic {
6632
6636
  font-size: calc(var(--odx-vertical-rythm-base-size) * 1);
6633
6637
  }
6634
6638
  .odx-tab-bar-item .odx-icon:first-child {
6635
- margin-left: 0;
6639
+ margin-inline-start: 0;
6636
6640
  }
6637
6641
  .odx-tab-bar-item .odx-icon:last-child:not(:first-child) {
6638
6642
  transition-delay: 0ms;
6639
6643
  transition-duration: var(--odx-v-transition-duration);
6640
6644
  transition-property: color;
6641
6645
  transition-timing-function: var(--odx-v-transition-easing-fn);
6642
- margin-right: 0;
6646
+ margin-inline-end: 0;
6643
6647
  }
6644
6648
  @media (hover: hover){
6645
6649
  .odx-tab-bar-item .odx-icon:last-child:not(:first-child):hover {
@@ -6998,9 +7002,6 @@ html body .odx-fs-italic {
6998
7002
  }
6999
7003
 
7000
7004
  .odx-toggle-button {
7001
- padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.25);
7002
- padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.25);
7003
- line-height: calc(var(--odx-vertical-rythm-base-size) * 1);
7004
7005
  transition-delay: 0ms;
7005
7006
  transition-duration: var(--odx-v-transition-duration);
7006
7007
  transition-property: color;
@@ -7031,13 +7032,18 @@ html body .odx-fs-italic {
7031
7032
  pointer-events: none;
7032
7033
  }
7033
7034
  .odx-toggle-button__indicator {
7034
- border-radius: var(--odx-toggle-button-border-radius);
7035
7035
  transition-delay: 0ms;
7036
7036
  transition-duration: var(--odx-v-transition-duration);
7037
7037
  transition-property: background-color, outline-color;
7038
7038
  transition-timing-function: var(--odx-v-transition-easing-fn);
7039
7039
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
7040
7040
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
7041
+ display: flex;
7042
+ align-items: center;
7043
+ block-size: calc(var(--odx-vertical-rythm-base-size) * 1.1667);
7044
+ border-radius: var(--odx-toggle-button-border-radius);
7045
+ -moz-column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
7046
+ column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
7041
7047
  }
7042
7048
  .odx-toggle-button.is-readonly .odx-toggle-button__indicator, .odx-toggle-button.is-disabled .odx-toggle-button__indicator, .odx-toggle-button-group.is-active .odx-toggle-button__indicator, .odx-toggle-button-group.has-error .odx-toggle-button__indicator {
7043
7049
  background-color: transparent;
@@ -7067,8 +7073,8 @@ html body .odx-fs-italic {
7067
7073
  pointer-events: none;
7068
7074
  }
7069
7075
  .odx-toggle-button__label {
7070
- padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.25);
7071
- padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.25);
7076
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
7077
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
7072
7078
  cursor: pointer;
7073
7079
  text-align: center;
7074
7080
  width: 100%;
@@ -7107,12 +7113,10 @@ html body .odx-fs-italic {
7107
7113
  z-index: var(--odx-v-layer-1);
7108
7114
  }
7109
7115
  .odx-toggle-button-group__indicator {
7110
- margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.5);
7111
- margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.5);
7112
- height: calc(var(--odx-vertical-rythm-base-size) * 1);
7113
7116
  outline: var(--odx-v-outline-width) solid transparent;
7114
7117
  outline-offset: calc(-1 * var(--odx-v-outline-width));
7115
7118
  background-color: var(--odx-c-highlight);
7119
+ block-size: calc(var(--odx-vertical-rythm-base-size) * 1.1667);
7116
7120
  border-radius: var(--odx-toggle-button-border-radius);
7117
7121
  }
7118
7122
  .odx-toggle-button-group.is-disabled .odx-toggle-button-group__indicator {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "4.6.1",
3
+ "version": "4.6.3",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -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);
@@ -20,10 +20,10 @@
20
20
  z-index: var(--odx-v-layer-1);
21
21
 
22
22
  &__indicator {
23
- @include dimensions.height(2, 1);
24
23
  @include utils.with-outline();
25
24
 
26
25
  background-color: var(--odx-c-highlight);
26
+ block-size: dimensions.get-size(math.div(28, 24));
27
27
  border-radius: var(--odx-toggle-button-border-radius);
28
28
 
29
29
  #{$root}.is-disabled & {
@@ -7,7 +7,6 @@
7
7
  .odx-toggle-button {
8
8
  $root: &;
9
9
 
10
- @include dimensions.line-height(1.5, 1);
11
10
  @include motion.transition(color);
12
11
  @include typography.font-size(0);
13
12
  @include typography.font-weight(medium);
@@ -38,10 +37,13 @@
38
37
  }
39
38
 
40
39
  &__indicator {
41
- border-radius: var(--odx-toggle-button-border-radius);
42
-
43
40
  @include motion.transition(background-color outline-color);
44
41
  @include dimensions.padding-x(math.div(1, 3));
42
+ @include utils.vertical-center-content();
43
+
44
+ block-size: dimensions.get-size(math.div(28, 24));
45
+ border-radius: var(--odx-toggle-button-border-radius);
46
+ column-gap: dimensions.get-size(math.div(1, 6));
45
47
 
46
48
  #{$root}.is-readonly &,
47
49
  #{$root}.is-disabled &,
@@ -58,7 +60,7 @@
58
60
  }
59
61
 
60
62
  &__label {
61
- @include dimensions.padding-y(0.25);
63
+ @include dimensions.padding-y(math.div(1, 6));
62
64
 
63
65
  cursor: pointer;
64
66
  text-align: center;