File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/frontend/apps/impress/src/features/docs/doc-tree/components Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -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,9 +128,6 @@ 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
@@ -145,16 +144,15 @@ export const DocSubPageItem = (props: TreeViewNodeProps<Doc>) => {
145
144
}
146
145
}
147
146
148
- & : hover ,
149
- & : focus-within {
147
+ . c__tree-view--node : hover ,
148
+ . c__tree-view--node : focus-within {
150
149
background-color : var (--c--theme--colors--greyscale-100 );
151
- border-radius : 4px ;
152
150
153
151
.light-doc-item-actions {
154
152
display : flex;
155
153
opacity : 1 ;
156
154
visibility : visible;
157
- background : var (--c--theme--colors--greyscale-100 );
155
+ /* background: var(--c--theme--colors--greyscale-100); */
158
156
}
159
157
}
160
158
You can’t perform that action at this time.
0 commit comments