@itwin/itwinui-css 0.46.0 → 0.48.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.
@@ -17,10 +17,27 @@ $iui-expander-button-width: ($iui-icons-default) + ($iui-expander-inline-padding
17
17
  list-style: none;
18
18
  }
19
19
 
20
+ @mixin iui-tree-item {
21
+ @include focus-visible {
22
+ outline: none;
23
+
24
+ > .iui-tree-node {
25
+ outline: 1px solid var(--iui-color-foreground-primary);
26
+ outline-offset: -1px;
27
+
28
+ &.iui-active {
29
+ outline: 2px solid var(--iui-color-foreground-primary);
30
+ outline-offset: -2px;
31
+ }
32
+ }
33
+ }
34
+ }
35
+
20
36
  @mixin iui-tree-node {
21
37
  display: flex;
22
38
  cursor: pointer;
23
39
  padding: 0 $iui-s;
40
+ align-items: center;
24
41
 
25
42
  &-checkbox {
26
43
  margin-right: $iui-s;
@@ -83,8 +100,6 @@ $iui-expander-button-width: ($iui-icons-default) + ($iui-expander-inline-padding
83
100
  }
84
101
  }
85
102
 
86
- @include iui-focus;
87
-
88
103
  &:hover {
89
104
  @include themed {
90
105
  background-color: rgba(t(iui-color-foreground-primary-rgb), t(iui-opacity-6));
@@ -104,8 +119,6 @@ $iui-expander-button-width: ($iui-icons-default) + ($iui-expander-inline-padding
104
119
  outline: $iui-active-outline;
105
120
  outline-offset: -1px;
106
121
  }
107
-
108
- @include iui-focus($offset: -2px, $thickness: $iui-xxs);
109
122
  }
110
123
 
111
124
  &.iui-disabled {