mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 15:28:12 +08:00
Use blueprint "disable" property to indicate disabled buttons (#1197)
* Use blueprint "disable" property to indicate that colorby disabled * Disable subset and reset buttons when action is not possible
This commit is contained in:
@@ -241,11 +241,10 @@ class Category extends React.Component {
|
||||
<Button
|
||||
data-testclass="colorby"
|
||||
data-testid={`colorby-${metadataField}`}
|
||||
onClick={() => {
|
||||
if (!isTruncated) this.handleColorChange();
|
||||
}}
|
||||
active={colorAccessor === metadataField || isTruncated}
|
||||
intent={colorAccessor === metadataField && !isTruncated ? "primary" : "none"}
|
||||
onClick={this.handleColorChange}
|
||||
active={colorAccessor === metadataField}
|
||||
intent={colorAccessor === metadataField ? "primary" : "none"}
|
||||
disabled={isTruncated}
|
||||
icon="tint"
|
||||
/>
|
||||
</Tooltip>
|
||||
|
||||
Reference in New Issue
Block a user