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:
Sebastian MaltonandAlex Andreev authored and GitHub committed 2022-08-02 10:05:15 -04:00
1 parent 3d62d1c029
commit 57e4e29a16
4 files changed
+35 -11

No files matched your search

+5
View File
@@ -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 {
+1
View File
@@ -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}