@@ -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,27 @@ 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
133
& : focus-within .light-doc-item-actions {
135
134
display : flex;
136
135
opacity : 1 ;
137
136
visibility : visible;
138
- background : var (--c--theme--colors--greyscale-100 );
139
137
}
140
138
141
139
.c__tree-view--node .isSelected {
142
- .light-doc-item-actions {
143
- background : var (--c--theme--colors--greyscale-100 );
144
- }
145
140
}
146
141
147
- & : hover ,
148
- & : focus-within {
142
+ . c__tree-view--node : hover ,
143
+ . c__tree-view--node : focus-within {
149
144
background-color : var (--c--theme--colors--greyscale-100 );
150
- border-radius : 4px ;
151
145
152
146
.light-doc-item-actions {
153
147
display : flex;
154
148
opacity : 1 ;
155
149
visibility : visible;
156
- background : var (--c--theme--colors--greyscale-100 );
150
+ /* background: var(--c--theme--colors--greyscale-100); */
157
151
}
158
152
}
159
153
0 commit comments