1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Making cluster area hoverable

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-11-08 16:47:25 +03:00
parent 90d4899ece
commit a9c06da121
2 changed files with 15 additions and 2 deletions

View File

@ -42,7 +42,19 @@
}
.cluster {
@apply flex items-center m-5;
display: flex;
align-items: center;
padding: 1.25rem;
cursor: pointer;
&:focus-visible {
background: var(--blue);
color: white;
}
&:hover {
background: var(--sidebarLogoBackground);
}
}
.clusterName {

View File

@ -206,7 +206,7 @@ export class Sidebar extends React.Component<Props> {
const { metadata, spec } = this.clusterEntity;
return (
<div className={styles.cluster}>
<div className={styles.cluster} tabIndex={0}>
<HotbarIcon
uid={metadata.uid}
title={metadata.name}
@ -232,6 +232,7 @@ export class Sidebar extends React.Component<Props> {
<div className={styles.clusterName}>
{metadata.name}
</div>
<Icon material="arrow_drop_down"/>
</div>
);
}