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
Change btn-primary class of email buttons in campaign send email action to btn-default #10837
Change btn-primary class of email buttons in campaign send email action to btn-default #10837
Conversation
Thanks for the PR @volha-pivavarchyk - is there a reason why you think that we should not make the buttons visually stand out using the current CSS class? |
Codecov Report
@@ Coverage Diff @@
## 4.x #10837 +/- ##
=========================================
Coverage 47.32% 47.32%
Complexity 35044 35044
=========================================
Files 2104 2104
Lines 117731 117731
=========================================
Hits 55719 55719
Misses 62012 62012
|
I do not see benefits by this change. |
@RCheesley From a UX perspective, there should always be one button that is the "primary". One button the user should click to go to the next step. With the current code we have 3 buttons as primary, and none of them is the default action that takes the user to the next step. That would be the "add button". |
That depends, really doesn't it? If you are not selecting an email from the dropdown, your next step is to create an email. I do see what you mean about the Add button being the main 'next step' button in the grand scheme of things, I wonder if these are using the primary class to make them visually stand out among the other fields. |
@RCheesley of course this depends. If this is a greenfield I would take another approach. The way I look at it right now the button that gets the most clicks should be the primary. To me, this is the add button. But to change the save button is a bit more complex. It would have an impact on many forms (at least I think so). I think it is defined here for many buttons: app/bundles/CoreBundle/Form/Type/FormButtonsType.php So I suggest merging this, and looking at the other issue for a major release. |
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.
After this comment #10837 (comment) and check visual again, I am okay with change and like it.
Less primary buttons on modal window is better for me
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 sounds like a good approach @adiux and thanks for the explanation - I feel like we may have a UX standardisation project on the not-too-distant horizon!
Description:
The 3 buttons on the send email action are using the class btn-default instead of btn-primary
The current view:
The suggestion:
Steps to test this PR: