Skip to content

Commit

Permalink
Merge pull request #492 from civicrm/CPS-332-support-new-button-markup
Browse files Browse the repository at this point in the history
CPS-480: Fix broken buttons
  • Loading branch information
reneolivo authored Mar 16, 2021
2 parents 20584ee + ef0a299 commit 225dfa3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 1 addition & 3 deletions scss/bootstrap/overrides/crm/_button.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Makes next and upload buttons look like primary buttons:
.crm-button-type-next,
.crm-button-type-upload {

.crm-button-type-next {
@include button-outline-variant(white, $brand-primary);

.crm-i { display: none; }
Expand Down
12 changes: 12 additions & 0 deletions scss/civicrm/common/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ $button-border-radius: 2px;
border-color: $brand-primary;
border-radius: $border-radius-base;
box-sizing: content-box;
color: $crm-white;
font-family: $font-family-base;
margin-right: 0;
padding: 8px 12px;
Expand Down Expand Up @@ -427,3 +428,14 @@ button {
margin-top: 7px;
}
}

// Ensure these components look well in conjunction with Bootstrap:
#bootstrap-theme .crm-form-submit,
#bootstrap-theme .crm-button {
color: $crm-white;
text-transform: uppercase;
}

#bootstrap-theme .crm-button:not(:last-child) {
margin-right: $crm-gap-small * 2;
}

0 comments on commit 225dfa3

Please sign in to comment.