font awesome icon arrows

This commit is contained in:
Colin Megill
2018-04-19 00:42:47 -07:00
parent 61437b3457
commit c4e994f2db
+13 -3
View File
@@ -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>