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