-
Notifications
You must be signed in to change notification settings - Fork 48
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
Fix incorrectly colored save button #2393
Conversation
…jecting classes into the button. Fixes button color being white instead fo blue.
Test Results 3 files ±0 3 suites ±0 17m 36s ⏱️ -21s Results for commit eb21c2e. ± Comparison against base commit f76a5d5. This pull request removes 45 and adds 45 tests. Note that renamed tests count towards both.
This pull request skips 3 tests.
♻️ This comment has been updated with latest results. |
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.
Thanks for the PR!
The way you've described the issue makes me wonder if this is happening elsewhere in Hyku as well... if the fundamental issue is a conflict between Hyku theming and simpleform, I think changing the class names Hyku uses would make more sense. Would something like prefixing the classes Hyku uses with hyku_
be enough to prevent the conflict?
The classes that I am referring to are the bootstrap classes so it is part of a library that we can't really change. |
@bkiahstroud Just wanted to add that I tried new classes and the result is the same, it seems that it has something to do with the order in which the classes are, that it gives priority to the injected classes. The other option is to disable it in the config but then it removes it from all the buttons that use it which would cause us to have to do a lot of work when simply using |
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.
That makes sense to me. In that case, would you just mind adding some OVERRIDE
comments around the lines that changed? We often grep
for OVERRIDE
when doing Hyrax upgrades
Co-authored-by: Kiah Stroud <[email protected]>
Simpleform injects css classes into its button tags and those classes conflict with what is used in Hyku. The forms on the Pages page were using the button tag instead of the submit tag and causing the classes to be duplicated and conflict with each other. By using the submit tag it doesn't inject classes and only applies the classes specified in the tag.
Button color for "Save changes" button was white instead of blue like the rest of Hyku. This fixes that issue as well as issues in the future stemming from this "class injection".
@samvera/hyku-code-reviewers