@itwin/itwinui-css 0.40.0 → 0.42.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/css/table.css CHANGED
@@ -12,9 +12,6 @@
12
12
  flex-direction:column; }
13
13
  .iui-table *{
14
14
  box-sizing:border-box; }
15
- .iui-table.iui-zebra-striping > .iui-table-body > .iui-row:nth-child(even):not(.iui-selected){
16
- background:rgba(0, 0, 0, 0.02);
17
- background:rgba(var(--iui-color-foreground-body-rgb), 0.02); }
18
15
  .iui-table .iui-cell-end-icon,
19
16
  .iui-table .iui-cell-start-icon{
20
17
  flex-shrink:0;
@@ -129,6 +126,9 @@
129
126
  scroll-snap-type:y mandatory; }
130
127
  .iui-table-body.iui-scroll-snapping .iui-row{
131
128
  scroll-snap-align:start; }
129
+ .iui-table-body.iui-zebra-striping > .iui-row:nth-child(even):not(.iui-selected){
130
+ background-color:rgba(0, 0, 0, 0.02);
131
+ background-color:rgba(var(--iui-color-foreground-body-rgb), 0.02); }
132
132
  .iui-table-body .iui-row{
133
133
  display:flex;
134
134
  border:solid 1px transparent;
@@ -304,6 +304,8 @@
304
304
  justify-content:center;
305
305
  align-items:center;
306
306
  flex-basis:48px; }
307
+ .iui-cell:not(.iui-slot):last-child{
308
+ padding-right:16px; }
307
309
  .iui-cell.iui-positive{
308
310
  background-color:rgba(83, 162, 26, 0.1);
309
311
  background-color:rgba(var(--iui-color-foreground-positive-rgb), var(--iui-opacity-6)); }
@@ -346,7 +348,7 @@
346
348
  border:none;
347
349
  vertical-align:baseline;
348
350
  display:flex;
349
- justify-content:space-around;
351
+ justify-content:space-between;
350
352
  align-items:center;
351
353
  min-height:55px;
352
354
  padding:0 16px;
@@ -371,25 +373,33 @@
371
373
  color:var(--iui-text-color); }
372
374
  .iui-paginator > .iui-center .iui-button-group{
373
375
  margin:0 8px; }
374
- .iui-paginator > .iui-center .iui-button-group > .iui-button,
375
- .iui-paginator > .iui-center .iui-button-group > .iui-ellipsis{
376
- width:38px; }
377
- .iui-paginator > .iui-center .iui-button-group > .iui-button.iui-small,
378
- .iui-paginator > .iui-center .iui-button-group > .iui-ellipsis.iui-small{
379
- width:27px; }
380
- .iui-paginator > .iui-center .iui-button-group > .iui-button{
381
- transition:none; }
382
- .iui-paginator > .iui-center .iui-button-group > .iui-ellipsis{
383
- display:flex;
384
- justify-content:center;
385
- align-items:center;
386
- color:rgba(0, 0, 0, 0.4);
387
- color:var(--iui-text-color-muted); }
388
- .iui-paginator > .iui-center .iui-button-group > .iui-active::after{
389
- top:auto;
390
- bottom:2px; }
376
+ .iui-paginator > .iui-center .iui-button-group > *{
377
+ margin-right:0; }
378
+ .iui-paginator > .iui-center .iui-button-group > * > .iui-button,
379
+ .iui-paginator > .iui-center .iui-button-group > * > .iui-ellipsis{
380
+ width:38px; }
381
+ .iui-paginator > .iui-center .iui-button-group > * > .iui-button.iui-small,
382
+ .iui-paginator > .iui-center .iui-button-group > * > .iui-ellipsis.iui-small{
383
+ width:27px; }
384
+ .iui-paginator > .iui-center .iui-button-group > * > .iui-button{
385
+ transition:none; }
386
+ .iui-paginator > .iui-center .iui-button-group > * > .iui-ellipsis{
387
+ display:flex;
388
+ justify-content:center;
389
+ align-items:center;
390
+ color:rgba(0, 0, 0, 0.4);
391
+ color:var(--iui-text-color-muted); }
392
+ .iui-paginator > .iui-center .iui-button-group > * > .iui-active::after{
393
+ top:auto;
394
+ bottom:2px; }
391
395
  .iui-paginator > .iui-right{
392
396
  justify-content:flex-end; }
397
+ .iui-paginator-page-size-label{
398
+ color:rgba(0, 0, 0, 0.4);
399
+ color:var(--iui-text-color-muted);
400
+ white-space:nowrap;
401
+ overflow:hidden;
402
+ text-overflow:ellipsis; }
393
403
 
394
404
  .iui-column-filter{
395
405
  margin:0;
package/css/tile.css CHANGED
@@ -47,21 +47,26 @@
47
47
  .iui-tile .iui-thumbnail > .iui-quick-action > .iui-button-icon:only-child{
48
48
  margin-left:3px;
49
49
  margin-right:3px; }
50
- .iui-tile .iui-thumbnail > .iui-type-indicator:hover, .iui-tile .iui-thumbnail > .iui-type-indicator:focus,
51
- .iui-tile .iui-thumbnail > .iui-quick-action:hover,
50
+ .iui-tile .iui-thumbnail > .iui-type-indicator:focus,
52
51
  .iui-tile .iui-thumbnail > .iui-quick-action:focus{
53
52
  background-color:rgba(0, 0, 0, 0.1);
54
53
  border-color:transparent;
55
54
  background-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-6));
56
55
  border-color:transparent; }
57
- .iui-tile .iui-thumbnail > .iui-type-indicator:focus:not(:focus-visible),
58
- .iui-tile .iui-thumbnail > .iui-quick-action:focus:not(:focus-visible){
56
+ .iui-tile .iui-thumbnail > .iui-type-indicator:focus:where(:not(:focus-visible)),
57
+ .iui-tile .iui-thumbnail > .iui-quick-action:focus:where(:not(:focus-visible)){
58
+ border-color:transparent;
59
+ background-color:transparent; }
60
+ .iui-tile .iui-thumbnail > .iui-type-indicator:focus:where(:not(:focus-visible)) > .iui-button-icon:only-child,
61
+ .iui-tile .iui-thumbnail > .iui-quick-action:focus:where(:not(:focus-visible)) > .iui-button-icon:only-child{
62
+ margin-left:3px;
63
+ margin-right:3px; }
64
+ .iui-tile .iui-thumbnail > .iui-type-indicator:hover,
65
+ .iui-tile .iui-thumbnail > .iui-quick-action:hover{
66
+ background-color:rgba(0, 0, 0, 0.1);
59
67
  border-color:transparent;
60
- background-color:transparent; }
61
- .iui-tile .iui-thumbnail > .iui-type-indicator:focus:not(:focus-visible) > .iui-button-icon:only-child,
62
- .iui-tile .iui-thumbnail > .iui-quick-action:focus:not(:focus-visible) > .iui-button-icon:only-child{
63
- margin-left:3px;
64
- margin-right:3px; }
68
+ background-color:rgba(var(--iui-color-foreground-body-rgb), var(--iui-opacity-6));
69
+ border-color:transparent; }
65
70
  .iui-tile .iui-thumbnail > .iui-type-indicator.iui-active,
66
71
  .iui-tile .iui-thumbnail > .iui-quick-action.iui-active{
67
72
  background-color:rgba(0, 139, 225, 0.1);
package/css/tree.css ADDED
@@ -0,0 +1,107 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ .iui-tree{
6
+ margin:0;
7
+ padding:0;
8
+ border:none;
9
+ vertical-align:baseline;
10
+ list-style:none; }
11
+
12
+ .iui-sub-tree{
13
+ margin:0;
14
+ padding:0;
15
+ border:none;
16
+ vertical-align:baseline;
17
+ list-style:none; }
18
+
19
+ .iui-tree-node{
20
+ display:flex;
21
+ cursor:pointer;
22
+ padding:0 8px; }
23
+ .iui-tree-node-checkbox{
24
+ margin-right:8px; }
25
+ .iui-tree-node-content{
26
+ display:flex;
27
+ align-items:center;
28
+ box-sizing:border-box;
29
+ min-height:33px;
30
+ margin-left:calc(28px * (var(--level, 0)));
31
+ overflow:hidden;
32
+ padding-left:2px; }
33
+ .iui-tree-node-content-icon{
34
+ fill:rgba(0, 0, 0, 0.4);
35
+ fill:var(--iui-icons-color);
36
+ display:inline-flex;
37
+ width:16px;
38
+ height:16px;
39
+ padding:0 6px;
40
+ flex-shrink:0; }
41
+ .iui-tree-node-content-icon.iui-informational{
42
+ fill:#008BE1;
43
+ fill:var(--iui-icons-color-primary); }
44
+ .iui-tree-node-content-icon.iui-positive{
45
+ fill:#53A21A;
46
+ fill:var(--iui-icons-color-positive); }
47
+ .iui-tree-node-content-icon.iui-warning{
48
+ fill:#F18B12;
49
+ fill:var(--iui-icons-color-warning); }
50
+ .iui-tree-node-content-icon.iui-negative{
51
+ fill:#D30A0A;
52
+ fill:var(--iui-icons-color-negative); }
53
+ .iui-tree-node-content-icon:first-child{
54
+ margin-left:28px; }
55
+ @media (prefers-reduced-motion: no-preference){
56
+ .iui-tree-node-content-expander-icon{
57
+ transition:transform 0.2s ease-out; } }
58
+ .iui-tree-node-content-expander-icon-expanded{
59
+ transform:rotate(90deg); }
60
+ .iui-tree-node-content-label{
61
+ min-width:0;
62
+ padding-left:6px; }
63
+ .iui-tree-node-content-label:first-child{
64
+ margin-left:28px; }
65
+ .iui-tree-node-content-title, .iui-tree-node-content-caption{
66
+ white-space:nowrap;
67
+ overflow:hidden;
68
+ text-overflow:ellipsis; }
69
+ .iui-tree-node-content-title{
70
+ font-size:14px; }
71
+ .iui-tree-node-content-caption{
72
+ font-size:12px;
73
+ color:rgba(0, 0, 0, 0.4);
74
+ color:var(--iui-text-color-muted); }
75
+ .iui-tree-node:focus{
76
+ outline:thin solid rgba(0, 139, 225, 0.4);
77
+ outline-offset:-1px;
78
+ outline:thin solid rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-4));
79
+ outline-offset:-1px; }
80
+ .iui-tree-node:focus:not(:focus-visible){
81
+ outline-offset:-2px; }
82
+ .iui-tree-node:hover{
83
+ background-color:rgba(0, 139, 225, 0.1);
84
+ background-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-6)); }
85
+ .iui-tree-node:hover .iui-tree-node-content-caption{
86
+ color:#000;
87
+ color:var(--iui-color-foreground-body);
88
+ transition:color 0.2s ease; }
89
+ .iui-tree-node.iui-active{
90
+ background-color:rgba(0, 139, 225, 0.2);
91
+ outline:thin solid var(--iui-color-foreground-primary);
92
+ outline-offset:-1px;
93
+ background-color:rgba(var(--iui-color-foreground-primary-rgb), var(--iui-opacity-5));
94
+ outline:thin solid var(--iui-color-foreground-primary);
95
+ outline-offset:-1px; }
96
+ .iui-tree-node.iui-active:focus{
97
+ outline-width:2px;
98
+ outline-offset:-2px; }
99
+ .iui-tree-node.iui-disabled{
100
+ cursor:not-allowed;
101
+ outline:none;
102
+ background-color:transparent;
103
+ color:rgba(0, 0, 0, 0.2);
104
+ color:var(--iui-text-color-placeholder); }
105
+ .iui-tree-node.iui-disabled .iui-tree-node-content-caption{
106
+ color:rgba(0, 0, 0, 0.2);
107
+ color:var(--iui-text-color-placeholder); }
package/css/user-icon.css CHANGED
@@ -65,7 +65,9 @@
65
65
  width:100%;
66
66
  height:100%;
67
67
  border-width:0;
68
- border-radius:50%; }
68
+ border-radius:50%;
69
+ background-color:#FFF;
70
+ background-color:var(--iui-color-background-1); }
69
71
  .iui-user-icon > .iui-status{
70
72
  display:flex;
71
73
  align-items:center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-css",
3
- "version": "0.40.0",
3
+ "version": "0.42.1",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "src/index.scss",
@@ -9,16 +9,16 @@
9
9
  @include iui-button-borderless-base;
10
10
  @include iui-button-size(medium, borderless);
11
11
 
12
- &:hover,
13
12
  &:focus {
14
- @include themed {
15
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
16
- border-color: transparent;
13
+ @include iui-button-borderless-hover-focus;
14
+
15
+ &:where(:not(:focus-visible)) {
16
+ @include iui-button-borderless-base;
17
17
  }
18
18
  }
19
19
 
20
- &:focus:not(:focus-visible) {
21
- @include iui-button-borderless-base;
20
+ &:hover {
21
+ @include iui-button-borderless-hover-focus;
22
22
  }
23
23
 
24
24
  &.iui-active {
@@ -46,6 +46,13 @@
46
46
  }
47
47
  }
48
48
 
49
+ @mixin iui-button-borderless-hover-focus {
50
+ @include themed {
51
+ background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-6));
52
+ border-color: transparent;
53
+ }
54
+ }
55
+
49
56
  @mixin iui-button-borderless-base {
50
57
  border-color: transparent;
51
58
  background-color: transparent;
@@ -5,72 +5,85 @@
5
5
  @mixin iui-button-group {
6
6
  display: inline-flex;
7
7
  align-items: center;
8
+ isolation: isolate;
8
9
 
9
- > .iui-button {
10
- &:not(.iui-borderless) {
11
- border-radius: 0;
12
- }
10
+ $childSelector: 'input, button'; // target nested inputs and buttons
13
11
 
14
- &:first-of-type:not(.iui-borderless) {
15
- border-top-left-radius: $iui-border-radius;
16
- border-bottom-left-radius: $iui-border-radius;
17
- }
12
+ > * {
13
+ display: flex;
18
14
 
19
- &:last-of-type:not(.iui-borderless) {
20
- border-top-right-radius: $iui-border-radius;
21
- border-bottom-right-radius: $iui-border-radius;
22
- }
15
+ #{$childSelector} {
16
+ &:hover {
17
+ z-index: 1;
18
+ }
23
19
 
24
- &.iui-default:not(:last-of-type) {
25
- border-right: none;
26
- }
20
+ &:focus {
21
+ z-index: 2;
27
22
 
28
- &.iui-default {
29
- // Border trick for grouped default & disabled buttons
30
- &:not(:disabled) {
31
- + :disabled {
23
+ &:where(:not(:focus-visible):not(:hover)) {
24
+ z-index: revert;
25
+ }
26
+ }
27
+
28
+ &:disabled {
29
+ z-index: -1;
30
+ }
31
+
32
+ // Adds stripe above active button
33
+ &.iui-active {
34
+ &::after {
35
+ content: '';
36
+ position: absolute;
37
+ height: $iui-xxs;
38
+ opacity: 1;
39
+ top: $iui-xxs;
40
+ left: $iui-xxs;
41
+ width: calc(100% - #{$iui-xs});
32
42
  @include themed {
33
- border-left-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
43
+ background-color: t(iui-color-foreground-primary);
34
44
  }
35
45
  }
36
46
 
37
- &:hover + .iui-button,
38
- &:active + .iui-button,
39
- &:focus-visible + .iui-button {
40
- @include themed {
41
- border-left-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
47
+ &:disabled {
48
+ &::after {
49
+ @include themed {
50
+ background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
51
+ }
42
52
  }
43
53
  }
44
54
  }
45
55
 
46
- // Border between 2 side-by-side disabled buttons
47
- &:disabled + .iui-button:disabled {
48
- @include themed {
49
- border-left-color: t(iui-color-background-4);
50
- }
56
+ // Reset border radius only for non-borderless items
57
+ &:not(.iui-borderless) {
58
+ border-radius: 0;
59
+ }
60
+ }
61
+
62
+ // Add rounded corners to first and last items
63
+ &:first-child {
64
+ #{$childSelector}:not(.iui-borderless) {
65
+ border-top-left-radius: $iui-border-radius;
66
+ border-bottom-left-radius: $iui-border-radius;
51
67
  }
52
68
  }
53
- }
54
69
 
55
- // Adds stripe above active button
56
- > .iui-active {
57
- &::after {
58
- content: '';
59
- position: absolute;
60
- height: $iui-xxs;
61
- opacity: 1;
62
- top: $iui-xxs;
63
- left: $iui-xxs;
64
- width: calc(100% - #{$iui-xs});
65
- @include themed {
66
- background-color: t(iui-color-foreground-primary);
70
+ &:last-child {
71
+ #{$childSelector}:not(.iui-borderless) {
72
+ border-top-right-radius: $iui-border-radius;
73
+ border-bottom-right-radius: $iui-border-radius;
67
74
  }
68
75
  }
69
76
 
70
- &:disabled {
71
- &::after {
77
+ // Use negative margin to make adjacent borders overlap
78
+ &:not(:last-child) {
79
+ margin-right: -1px;
80
+ }
81
+
82
+ // Add slight border between disabled items
83
+ &:not(:first-child) {
84
+ .iui-default:disabled {
72
85
  @include themed {
73
- background-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-5));
86
+ border-left-color: t(iui-color-background-4);
74
87
  }
75
88
  }
76
89
  }
@@ -8,18 +8,17 @@
8
8
  @mixin iui-button-cta {
9
9
  @include iui-button-cta-base;
10
10
 
11
- &:hover,
12
- &:active,
13
11
  &:focus {
14
- @include themed {
15
- background-color: t(iui-color-background-positive-overlay);
16
- border-color: t(iui-color-background-positive-overlay);
17
- color: t(iui-color-foreground-accessory);
12
+ @include iui-button-cta-hover-focus;
13
+
14
+ &:where(:not(:focus-visible)) {
15
+ @include iui-button-cta-base;
18
16
  }
19
17
  }
20
18
 
21
- &:focus:not(:focus-visible) {
22
- @include iui-button-cta-base;
19
+ &:hover,
20
+ &:active {
21
+ @include iui-button-cta-hover-focus;
23
22
  }
24
23
 
25
24
  &[disabled],
@@ -28,6 +27,14 @@
28
27
  }
29
28
  }
30
29
 
30
+ @mixin iui-button-cta-hover-focus {
31
+ @include themed {
32
+ background-color: t(iui-color-background-positive-overlay);
33
+ border-color: t(iui-color-background-positive-overlay);
34
+ color: t(iui-color-foreground-accessory);
35
+ }
36
+ }
37
+
31
38
  @mixin iui-button-cta-base {
32
39
  @include themed {
33
40
  background-color: t(iui-color-background-positive);
@@ -9,19 +9,17 @@
9
9
  @mixin iui-button-default {
10
10
  @include iui-button-default-base;
11
11
 
12
- &:hover,
13
- &:active,
14
12
  &:focus {
15
- @include themed {
16
- background-color: t(iui-color-background-1-overlay);
17
- border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
18
- color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
13
+ @include iui-button-default-hover-focus;
14
+
15
+ &:where(:not(:focus-visible)) {
16
+ @include iui-button-default-base;
19
17
  }
20
- @include iui-notification-marker-hover;
21
18
  }
22
19
 
23
- &:focus:not(:focus-visible) {
24
- @include iui-button-default-base;
20
+ &:hover,
21
+ &:active {
22
+ @include iui-button-default-hover-focus;
25
23
  }
26
24
 
27
25
  &.iui-dropdown {
@@ -54,6 +52,15 @@
54
52
  }
55
53
  }
56
54
 
55
+ @mixin iui-button-default-hover-focus {
56
+ @include themed {
57
+ background-color: t(iui-color-background-1-overlay);
58
+ border-color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
59
+ color: rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-1));
60
+ }
61
+ @include iui-notification-marker-hover;
62
+ }
63
+
57
64
  @mixin iui-button-default-base {
58
65
  @include themed {
59
66
  background-color: t(iui-color-background-1);
@@ -8,18 +8,17 @@
8
8
  @mixin iui-button-high-visibility {
9
9
  @include iui-button-high-visibility-base;
10
10
 
11
- &:hover,
12
- &:active,
13
11
  &:focus {
14
- @include themed {
15
- background-color: t(iui-color-background-primary-overlay);
16
- border-color: t(iui-color-background-primary-overlay);
17
- color: t(iui-color-foreground-accessory);
12
+ @include iui-button-high-visibility-hover-focus;
13
+
14
+ &:where(:not(:focus-visible)) {
15
+ @include iui-button-high-visibility-base;
18
16
  }
19
17
  }
20
18
 
21
- &:focus:not(:focus-visible) {
22
- @include iui-button-high-visibility-base;
19
+ &:hover,
20
+ &:active {
21
+ @include iui-button-high-visibility-hover-focus;
23
22
  }
24
23
 
25
24
  &[disabled],
@@ -28,6 +27,14 @@
28
27
  }
29
28
  }
30
29
 
30
+ @mixin iui-button-high-visibility-hover-focus {
31
+ @include themed {
32
+ background-color: t(iui-color-background-primary-overlay);
33
+ border-color: t(iui-color-background-primary-overlay);
34
+ color: t(iui-color-foreground-accessory);
35
+ }
36
+ }
37
+
31
38
  @mixin iui-button-high-visibility-base {
32
39
  @include themed {
33
40
  background-color: t(iui-color-background-primary);
@@ -11,31 +11,45 @@
11
11
  }
12
12
  }
13
13
 
14
- .iui-button:first-child {
15
- &.iui-borderless:hover {
16
- background-color: transparent;
14
+ > * {
15
+ &:first-child {
16
+ > .iui-borderless:hover {
17
+ background-color: transparent;
18
+ }
17
19
  }
18
- }
19
20
 
20
- // Sizes
21
- > .iui-button + .iui-button {
22
- padding: $iui-xs;
23
- }
21
+ // Sizes
22
+ &:last-child {
23
+ > .iui-button {
24
+ padding: $iui-xs;
25
+ }
24
26
 
25
- > .iui-small + .iui-small {
26
- padding: $iui-xxs;
27
- }
27
+ > .iui-small {
28
+ padding: $iui-xxs;
29
+ }
28
30
 
29
- > .iui-large + .iui-large {
30
- padding: $iui-s;
31
- }
31
+ > .iui-large {
32
+ padding: $iui-s;
33
+ }
34
+ }
32
35
 
33
- > .iui-high-visibility + .iui-high-visibility,
34
- > .iui-high-visibility + .iui-high-visibility:hover,
35
- > .iui-cta + .iui-cta,
36
- > .iui-cta + .iui-cta:hover {
37
- @include themed {
38
- border-left-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
36
+ // Border between buttons for high-visibility and cta
37
+ &:first-child {
38
+ > .iui-high-visibility,
39
+ > .iui-cta {
40
+ @include themed {
41
+ border-right-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
42
+ }
43
+ }
44
+ }
45
+
46
+ &:last-child {
47
+ > .iui-high-visibility,
48
+ > .iui-cta {
49
+ @include themed {
50
+ border-left-color: rgba(t(iui-color-foreground-accessory-rgb), t(iui-opacity-4));
51
+ }
52
+ }
39
53
  }
40
54
  }
41
55
 
package/scss/classes.scss CHANGED
@@ -36,5 +36,6 @@
36
36
  @import './toast-notification/classes';
37
37
  @import './toggle-switch/classes';
38
38
  @import './tooltip/classes';
39
+ @import './tree/classes';
39
40
  @import './user-icon/classes';
40
41
  @import './wizard/classes';
@@ -314,9 +314,13 @@
314
314
  }
315
315
 
316
316
  @mixin iui-header-split-button {
317
- height: 100%;
318
- display: flex;
319
- overflow: hidden;
317
+ &,
318
+ > * {
319
+ height: 100%;
320
+ display: flex;
321
+ overflow: hidden;
322
+ }
323
+
320
324
  max-width: 25vw;
321
325
 
322
326
  .iui-button {
@@ -324,8 +328,10 @@
324
328
  padding: 0 $iui-xs;
325
329
  }
326
330
 
327
- .iui-button:first-child {
328
- padding-left: $iui-sm;
331
+ > *:first-child {
332
+ .iui-button {
333
+ padding-left: $iui-sm;
334
+ }
329
335
  }
330
336
 
331
337
  &.iui-active {
@@ -343,8 +349,10 @@
343
349
  display: none;
344
350
  }
345
351
  }
352
+ }
346
353
 
347
- &:last-child:hover {
354
+ > *:last-child {
355
+ > .iui-button:hover {
348
356
  @include themed {
349
357
  background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
350
358
  }
@@ -415,13 +423,13 @@
415
423
  box-shadow: 0 $iui-xxs 0 0 rgba(t(iui-color-foreground-body-rgb), t(iui-opacity-4));
416
424
  }
417
425
 
418
- .iui-label {
426
+ .iui-button-label {
419
427
  @include themed {
420
428
  color: t(iui-icons-color-actionable-disabled);
421
429
  }
422
430
  }
423
431
 
424
- .iui-icon,
432
+ .iui-button-icon,
425
433
  svg {
426
434
  @include themed {
427
435
  fill: t(iui-icons-color-actionable-disabled);