-
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
base: main
Are you sure you want to change the base?
Conversation
…jecting classes into the button. Fixes button color being white instead fo blue.
Test Results 3 files ±0 3 suites ±0 18m 4s ⏱️ +7s Results for commit 5d48741. ± Comparison against base commit f76a5d5. This pull request removes 42 and adds 42 tests. Note that renamed tests count towards both.
♻️ 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. |
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