Skip to content

Commit e1b5871

Browse files
committed
buttons utilise BEM style
1 parent 78b77e0 commit e1b5871

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

shared/components/Toolbar/Toolbar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ class Toolbar extends React.Component {
1010
render() {
1111
let playButtonClass = classNames({
1212
"toolbar__play-button": true,
13-
"playing": this.props.isPlaying
13+
"toolbar__play-button--selected": this.props.isPlaying
1414
});
1515
let stopButtonClass = classNames({
1616
"toolbar__stop-button": true,
17-
"stopped": !this.props.isPlaying
17+
"toolbar__stop-button--selected": !this.props.isPlaying
1818
});
1919

2020
return (

styles/components/_toolbar.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.toolbar__play-button {
22
@extend %toolbar-button;
33
margin-right: #{15 / $base-font-size}rem;
4-
&.playing {
4+
&--selected {
55
background-color: $light-button-background-hover-color;
66
& g {
77
fill: $light-button-hover-color;
@@ -11,7 +11,7 @@
1111

1212
.toolbar__stop-button {
1313
@extend %toolbar-button;
14-
&.stopped {
14+
&--selected {
1515
background-color: $light-button-background-hover-color;
1616
& g {
1717
fill: $light-button-hover-color;

0 commit comments

Comments
 (0)