Skip to content

Commit

Permalink
Change collapsable add dropdown icon
Browse files Browse the repository at this point in the history
  • Loading branch information
alecsloan committed Mar 13, 2021
1 parent 905c32f commit f4fc381
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
18 changes: 10 additions & 8 deletions src/Components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'bootstrap/dist/css/bootstrap.min.css';
import 'font-awesome/css/font-awesome.min.css';
import '../styles/Header.css';
import IconButton from "@material-ui/core/IconButton";
import {Brightness2, Brightness7} from "@material-ui/icons";
import {Brightness2, Brightness7, KeyboardArrowDown, KeyboardArrowUp} from "@material-ui/icons";
import SettingsIcon from "@material-ui/icons/Settings";

class Header extends Component {
Expand Down Expand Up @@ -66,13 +66,15 @@ class Header extends Component {
<div className="header">
<div className="col-12">
<h2 className="title">
<FontAwesome
className={addIconClass}
name="plus"
onClick={() => this.toggleAddSection()}
pull="left"
title={addIconTitle}
/>
<IconButton
className={addIconClass}
color="inherit"
aria-label="mode"
onClick={() => this.toggleAddSection()}
title={addIconTitle}
>
{displayAddSection ? <KeyboardArrowDown /> : <KeyboardArrowUp />}
</IconButton>

CryptoDash

Expand Down
6 changes: 3 additions & 3 deletions src/styles/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ input {
}

.rotate {
-ms-transform: rotate(45deg); /* IE 9 */
-webkit-transform: rotate(45deg); /* Safari 3-8 */
transform: rotate(45deg);
-ms-transform: rotate(180deg); /* IE 9 */
-webkit-transform: rotate(180deg); /* Safari 3-8 */
transform: rotate(180deg);
}

.title {
Expand Down

0 comments on commit f4fc381

Please sign in to comment.