mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix not being able to switch metrics if none are available (#5430)
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
3d62d1c029
commit
57e4e29a16
4 files changed
+35
-11
No files matched your search
@@ -21,6 +21,11 @@
|
||||
white-space: nowrap;
|
||||
transition: 250ms color;
|
||||
|
||||
&.disabled {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&:not(.checked):not(.disabled) {
|
||||
cursor: pointer;
|
||||
&:not(:active):focus {
|
||||
|
||||
@@ -85,6 +85,7 @@ export function Radio<T>({
|
||||
type="radio"
|
||||
checked={checked}
|
||||
onChange={() => ctx.onSelect(value)}
|
||||
disabled={disabled || ctx.disabled}
|
||||
/>
|
||||
<i className="tick flex center"/>
|
||||
{label ? <div className="label">{label}</div> : null}
|
||||
|
||||
Reference in new issue
Block a user