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
Replacing old button with crayon buttons to make it more visible #11080
Conversation
app/views/admin/mods/index.html.erb
Outdated
| @@ -48,7 +48,7 @@ | |||
| <% if params[:state] == "potential" %> | |||
| <td> | |||
| <%= form_with model: [:admin, mod], url: admin_mod_path(mod.id), method: :patch, local: true do |f| %> | |||
| <%= f.submit "Make Trusted", class: "btn btn-light js-add-to-mod-channel" %> | |||
| <%= f.submit "Make Trusted", class: "crayons-btn js-add-to-mod-channel" %> | |||
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.
| <%= f.submit "Make Trusted", class: "crayons-btn js-add-to-mod-channel" %> | |
| <%= f.submit "Make Trusted", class: "crayons-btn crayons-btn--secondary js-add-to-mod-channel" %> |
I think this button shouldn't be "prmiary" one (purple) but secondary. Primary button should be "reserved" for the most important action on a page (or within certain area).
I do agree that the button you have fixed originally could be a bit more visible and I think crayons-btn--secondary will be a better replacement in this case.
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.
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.
🙌

What type of PR is this?
Description
Replaces old button with crayon button it also improves button visibility
Related Tickets & Documents
Closes #11081
QA Instructions, Screenshots, Recordings
Before
After
Added tests?
Added to documentation?