mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing cluster dropdown focus state (#4377)
This commit is contained in:
parent
8bc936802b
commit
4121672838
@ -25,14 +25,21 @@
|
|||||||
padding: 1.25rem;
|
padding: 1.25rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:focus-visible {
|
|
||||||
background: var(--blue);
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--sidebarLogoBackground);
|
background: var(--sidebarLogoBackground);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
.dropdown {
|
||||||
|
box-shadow: 0 0 0 2px var(--focus-color);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown {
|
||||||
|
border-radius: 3px;
|
||||||
|
margin-left: var(--margin);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.clusterName {
|
.clusterName {
|
||||||
@ -47,8 +54,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu {
|
.menu {
|
||||||
width: 185px;
|
width: 200px;
|
||||||
margin-top: -10px;
|
margin-top: -1.25rem;
|
||||||
|
margin-left: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
|
|||||||
@ -116,7 +116,7 @@ export function SidebarCluster({ clusterEntity }: { clusterEntity: CatalogEntity
|
|||||||
<div className={styles.clusterName}>
|
<div className={styles.clusterName}>
|
||||||
{metadata.name}
|
{metadata.name}
|
||||||
</div>
|
</div>
|
||||||
<Icon material="arrow_drop_down"/>
|
<Icon material="arrow_drop_down" className={styles.dropdown}/>
|
||||||
<Menu
|
<Menu
|
||||||
usePortal
|
usePortal
|
||||||
htmlFor={id}
|
htmlFor={id}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user