Skip to content
Snippets Groups Projects
Commit 370d66e4 authored by Ray Schamp's avatar Ray Schamp
Browse files

Adhere to Trello CSS guide in green flag/stop

parent 6ae2fbb6
No related branches found
No related tags found
No related merge requests found
.green-flag { .green-flag {
position: absolute;
top: 8px;
right: calc(480px - 16px);
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
.green-flag.is-active {
.active {
filter: saturate(200%) brightness(150%); filter: saturate(200%) brightness(150%);
} }
...@@ -15,7 +15,7 @@ const GreenFlagComponent = function (props) { ...@@ -15,7 +15,7 @@ const GreenFlagComponent = function (props) {
<img <img
className={classNames({ className={classNames({
[styles.greenFlag]: true, [styles.greenFlag]: true,
[styles.active]: active [styles.isActive]: active
})} })}
src={greenFlagIcon} src={greenFlagIcon}
title={title} title={title}
...@@ -24,16 +24,13 @@ const GreenFlagComponent = function (props) { ...@@ -24,16 +24,13 @@ const GreenFlagComponent = function (props) {
/> />
); );
}; };
GreenFlagComponent.propTypes = { GreenFlagComponent.propTypes = {
active: React.PropTypes.bool, active: React.PropTypes.bool,
onClick: React.PropTypes.func, onClick: React.PropTypes.func,
title: React.PropTypes.string title: React.PropTypes.string
}; };
GreenFlagComponent.defaultProps = { GreenFlagComponent.defaultProps = {
active: false, active: false,
title: 'Go' title: 'Go'
}; };
module.exports = GreenFlagComponent; module.exports = GreenFlagComponent;
.stop-all { .stop-all {
position: absolute;
top: 8px;
right: calc(480px - 16px - 12px - 16px);
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
.stop-all.is-active {
.active {
filter: saturate(200%) brightness(150%); filter: saturate(200%) brightness(150%);
} }
...@@ -15,7 +15,7 @@ const StopAllComponent = function (props) { ...@@ -15,7 +15,7 @@ const StopAllComponent = function (props) {
<img <img
className={classNames({ className={classNames({
[styles.stopAll]: true, [styles.stopAll]: true,
[styles.active]: active [styles.isActive]: active
})} })}
src={stopAllIcon} src={stopAllIcon}
title={title} title={title}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment