feat: focus
This commit is contained in:
parent
f51322a556
commit
17c62d6446
|
@ -105,6 +105,7 @@ const Sidebar = () => {
|
|||
canNodeHaveChildren={(node) => !node.uri}
|
||||
generateNodeProps={({node}) => ({
|
||||
onClick: (event) => {
|
||||
event.target.focus();
|
||||
if (node.uri) {
|
||||
dispatch(setActiveResourceUri(node.uri));
|
||||
}
|
||||
|
@ -124,6 +125,7 @@ const Sidebar = () => {
|
|||
}));
|
||||
}
|
||||
},
|
||||
tabIndex: 0,
|
||||
})}
|
||||
// eslint-disable-next-line no-shadow
|
||||
onChange={(treeData) => setTreeData(treeData)}
|
||||
|
|
|
@ -62,7 +62,13 @@ h2 {
|
|||
.rstcustom__node {
|
||||
padding: 0 0.5em;
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.025);
|
||||
background-color: rgba(102, 85, 255, 0.025);
|
||||
}
|
||||
&:focus-within {
|
||||
background-color: #353e7d;
|
||||
}
|
||||
> :focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
button {
|
||||
top: 0.75em;
|
||||
|
|
Loading…
Reference in New Issue
Block a user