mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 05:38:11 +08:00
font awesome icon arrows
This commit is contained in:
@@ -8,6 +8,11 @@ import SectionHeader from "../framework/sectionHeader"
|
|||||||
import Value from "./value";
|
import Value from "./value";
|
||||||
import { alphabeticallySortedValues } from "./util";
|
import { alphabeticallySortedValues } from "./util";
|
||||||
|
|
||||||
|
import FaArrowRight from 'react-icons/lib/fa/angle-right';
|
||||||
|
import FaArrowDown from 'react-icons/lib/fa/angle-down';
|
||||||
|
import FaPaintBrush from 'react-icons/lib/fa/paint-brush';
|
||||||
|
|
||||||
|
|
||||||
@connect((state) => {
|
@connect((state) => {
|
||||||
return {
|
return {
|
||||||
colorAccessor: state.controls.colorAccessor
|
colorAccessor: state.controls.colorAccessor
|
||||||
@@ -77,11 +82,11 @@ class Category extends React.Component {
|
|||||||
margin: "3px 10px 3px 0px",
|
margin: "3px 10px 3px 0px",
|
||||||
}}>
|
}}>
|
||||||
<span
|
<span
|
||||||
style={{cursor: "pointer"}}
|
style={{cursor: "pointer", display: "inline-block", position: "relative", top: 2}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
this.setState({isExpanded: !this.state.isExpanded})
|
this.setState({isExpanded: !this.state.isExpanded})
|
||||||
}}>
|
}}>
|
||||||
{this.state.isExpanded ? "⯆ " : "⯈ "}
|
{this.state.isExpanded ? <FaArrowDown /> : <FaArrowRight/> }
|
||||||
</span>
|
</span>
|
||||||
{this.props.metadataField}
|
{this.props.metadataField}
|
||||||
<input
|
<input
|
||||||
@@ -93,11 +98,16 @@ class Category extends React.Component {
|
|||||||
style={{
|
style={{
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
marginLeft: 4,
|
marginLeft: 4,
|
||||||
|
// padding: this.props.colorAccessor === this.props.metadataField ? 3 : "auto",
|
||||||
|
borderRadius: 3,
|
||||||
|
color: this.props.colorAccessor === this.props.metadataField ? globals.brightBlue : "black",
|
||||||
|
// backgroundColor: this.props.colorAccessor === this.props.metadataField ? globals.brightBlue : "inherit",
|
||||||
|
display: "inline-block",
|
||||||
position: "relative",
|
position: "relative",
|
||||||
top: 2,
|
top: 2,
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
}}>
|
}}>
|
||||||
🖌️
|
<FaPaintBrush/>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user