@@ -114,9 +114,11 @@ export const DocSubPageItem = (props: TreeViewNodeProps<Doc>) => {
114
114
aria-selected = { isSelected }
115
115
aria-expanded = { hasChildren ? isExpanded : undefined }
116
116
$css = { css `
117
- background-color : ${ isActive
118
- ? 'var(--c--theme--colors--greyscale-100)'
119
- : 'var(--c--theme--colors--greyscale-000)' } ;
117
+ /* Ensure the outline (handled by TreeView) matches the visual area */
118
+ .c__tree-view--node {
119
+ padding : ${ spacingsTokens [ '3xs' ] } ;
120
+ border-radius : 4px ;
121
+ }
120
122
121
123
.light-doc-item-actions {
122
124
display : flex;
@@ -125,35 +127,18 @@ export const DocSubPageItem = (props: TreeViewNodeProps<Doc>) => {
125
127
right : 0 ;
126
128
top : 0 ;
127
129
height : 100% ;
128
- background : ${ isDesktop
129
- ? 'var(--c--theme--colors--greyscale-100)'
130
- : 'var(--c--theme--colors--greyscale-000)' } ;
131
130
z-index : 10 ;
132
131
}
133
132
134
- & : focus-within .light-doc-item-actions {
135
- display : flex;
136
- opacity : 1 ;
137
- visibility : visible;
138
- background : var (--c--theme--colors--greyscale-100 );
139
- }
140
-
141
- .c__tree-view--node .isSelected {
142
- .light-doc-item-actions {
143
- background : var (--c--theme--colors--greyscale-100 );
144
- }
145
- }
146
-
147
- & : hover ,
148
- & : focus-within {
133
+ .c__tree-view--node : hover ,
134
+ .c__tree-view--node .isFocused {
149
135
background-color : var (--c--theme--colors--greyscale-100 );
150
- border-radius : 4px ;
151
136
152
137
.light-doc-item-actions {
153
138
display : flex;
154
139
opacity : 1 ;
155
140
visibility : visible;
156
- background : var (--c--theme--colors--greyscale-100 );
141
+ /* background: var(--c--theme--colors--greyscale-100); */
157
142
}
158
143
}
159
144
0 commit comments