-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPS-322: Support new Button markup #473
Conversation
d765d11
to
e8c03db
Compare
Just noting I tried this & it fixed the issue I see on 5.31 at http://dmaster.local/civicrm/admin/uf/group/update?action=update&id=1&context=group vs |
@eileenmcnaughton Thanks for checking. PR should be ready within the next week. |
be2a69b
to
308c999
Compare
308c999
to
af736e0
Compare
@@ -23,7 +23,7 @@ | |||
} | |||
|
|||
.form-layout-compressed { | |||
input.crm-form-submit { | |||
button.crm-form-submit { | |||
margin-left: 5px; | |||
padding: 4px 10px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In _contributions.scss
we changed the padding values from 4px 10px
to 8px 11px
. Why wasn't the same change applied here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. the previous one also should be 4px 10px
. Not sure why I made it like that.
@extend .btn-sm; | ||
margin-left: 20px !important; | ||
margin-top: -8px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we trying to fix a new issue or an existent one? changing from inputs to button misaligned the element?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the position was changed after changing to button. Because we have a long tree of styles being applied from different themes/css file(reset.css, civicrm.css etc).
But I found a better way of fixing this, that is by adding
float: none;
vertical-align: initial;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deb1990 also, why did the package-lock.json
file change?
I never knew how this works, but now I have a answer https://stackoverflow.com/a/50868741. |
@deb1990 can you please use |
5.31 drops tomorrow so you probably want to merge this & tag a 5.31 compatible release |
@eileenmcnaughton Thanks for the reminder. It will be merged today. |
@eileenmcnaughton This is the release to support CiviCRM 5.31 buttons. |
yay |
Overview
Recently in the Civicrm Core(civicrm/civicrm-core#18410), all the
input
type button markups has been changed tobutton
elements. This caused a lot of styles to break when using Shoreditch theme. So this PR fixes those UI related style issues.Before (Only showing some examples)
After (Only showing some examples)
Technical Details
input
tobutton
inscss/civicrm/administer/civi-case/_case-types.scss
. And this code was moved fromscss/civicrm/administer/common/_common.scss
.This style was moved to the
common.scss
in HW-382: Styled Individual casetype setting page #49. But now it is causing regressions in other pages. And other pages are working fine without these changes, so made it only for case type page.Comments
Backstop JS and manual test suites were run to ensure no regressions are present.