Skip to content

Commit

Permalink
Button colors (#227) (#228)
Browse files Browse the repository at this point in the history
* revert css button changes, add new class

* fix color to white

* wip

* login action
  • Loading branch information
Findeton authored Jul 1, 2022
1 parent f8beca8 commit c6f75d0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
4 changes: 2 additions & 2 deletions avRegistration/login-directive/login-directive.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</div>
<button
type="submit"
class="btn btn-block btn-success"
class="btn btn-block btn-success-action"
ng-if="!isCensusQuery"
ng-i18next="avRegistration.loginButton"
ng-click="loginUser(form.$valid)"
Expand All @@ -55,7 +55,7 @@
</button>
<button
type="submit"
class="btn btn-block btn-success"
class="btn btn-block btn-success-action"
ng-if="!!isCensusQuery"
ng-i18next="avRegistration.checkCensusButton"
ng-click="checkCensus(form.$valid)"
Expand Down
15 changes: 13 additions & 2 deletions dist/themes/default/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,22 @@

.btn-success {
border: 0;
background-color: @av-secondary-contrast;
background-color: @av-primary-contrast;
}

.btn-success:hover {
background-color: @av-primary-contrast;
background-color: darken(@av-primary-contrast, 25%);
}

.btn-success-action {
border: 0;
background-color: @av-secondary-contrast;
color: @av-primary;
}

.btn-success-action:hover {
background-color: @av-secondary;
color: @av-primary;
}

.btn-transparent {
Expand Down
2 changes: 1 addition & 1 deletion dist/themes/default/app.min.css

Large diffs are not rendered by default.

15 changes: 13 additions & 2 deletions themes/default/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,22 @@

.btn-success {
border: 0;
background-color: @av-secondary-contrast;
background-color: @av-primary-contrast;
}

.btn-success:hover {
background-color: @av-primary-contrast;
background-color: darken(@av-primary-contrast, 25%);
}

.btn-success-action {
border: 0;
background-color: @av-secondary-contrast;
color: @av-primary;
}

.btn-success-action:hover {
background-color: @av-secondary;
color: @av-primary;
}

.btn-transparent {
Expand Down

0 comments on commit c6f75d0

Please sign in to comment.