Skip to content

Commit

Permalink
Changed tone on action creation buttons (#1531)
Browse files Browse the repository at this point in the history
* changed tone on action creations buttons

* Update ActionStep.js

* Update style.scss

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
  • Loading branch information
yakkomajuri and paolodamico committed Sep 1, 2020
1 parent b7d639f commit 35e604e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/scenes/actions/ActionStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class ActionStep extends Component {
() => this.sendStep({ ...step, event: '$autocapture' })
)
}
className={'btn ' + (step.event === '$autocapture' ? 'btn-secondary' : 'btn-light')}
className={'btn ' + (step.event === '$autocapture' ? 'btn-secondary' : 'btn-light btn-action')}
>
Frontend element
</button>
Expand All @@ -199,7 +199,7 @@ export class ActionStep extends Component {
step.event !== '$autocapture' &&
step.event !== '$pageview'
? 'btn-secondary'
: 'btn-light')
: 'btn-light btn-action')
}
>
Custom event
Expand All @@ -220,7 +220,7 @@ export class ActionStep extends Component {
})
)
}}
className={'btn ' + (step.event === '$pageview' ? 'btn-secondary' : 'btn-light')}
className={'btn ' + (step.event === '$pageview' ? 'btn-secondary' : 'btn-light btn-action')}
data-attr="action-step-pageview"
>
Page view
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,7 @@ label.disabled {
font-weight: bold;
}
}

.btn-action {
background-color: #f0f0f0 !important;
}

0 comments on commit 35e604e

Please sign in to comment.