Making cluster area hoverable

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

No files matched your search

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