-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unifying buttons #5567
Comments
Just marking this as "needs discussion" for the moment, as we'll need to flesh this out more before doing anything. |
Moving this out of the milestone as I don't think we'll prioritize for this release. |
Just a note from a recent discussion with @alyblenkin: it's likely that we want to up the text size (and potentially padding to match) of all Material 3 button styles. This might mean just bumping the font size on the |
Blocking this on #5607 as it won't make sense to implement until after. |
Notes:
|
@seadowg, I may have gone over the top with this story 😅. Let me know if I missed anything or if I should clarify anything. |
I've added some parenthesis on how default vs full-width is implemented. This is ready to go! |
Unblocking as we'll do this as part of the same PR as #5607. |
@alyblenkin one thing I'm not sure about: dialogs in Material use text button for dialog options. Do you really want to switch them to filled? |
Let's keep our custom exit / save as draft dialog as is! For the others, we should have the action as a filled button, and a text button to link back. For the example below, we would have a text button for "Cancel" and a filled button for "Save." I know they want to use two text buttons, but that's not giving the user the correct feedback. Happy to chat about this, if it will be a lot of work! It's not the end of the world if we can't do it, but it would make it a better user experience.
Figma example | Article about this UX pattern |
Makes sense! I just wanted to check seeing as we're deviating from Material 3 itself. I'll give this a go. |
Blocked by #5607Unify all buttons styles with M3. There are five types of common buttons: elevated, filled, filled tonal, outlined, and text in their guidelines. We will use all of the button styles apart from "tonal", as I haven't figured out a good use case for this usage.
It would be great to also increase the text size to
LabelLarge
text appearance (and potentially padding to match) of all Material 3 button styles because our layouts are very text heavy in comparison to the mockups M3 uses.In the example actions below, I've called out where the buttons are full-width (currently implemented using
MainMenuButton
andStartNewFormButton
) vs default (usingButton
orMaterialButton
), and where we are using high-emphasis/primary buttons (filled) and medium-emphasis secondary buttons (outline).Other notes:
In some places, we have two primary buttons, which we want to avoid. An example of this is when the user is deleting saved drafts, "select all" and "delete selected" are both filled. The primary / high-emphasis is on the "delete selected" action, and "select all" is a secondary outlined button.
The text was updated successfully, but these errors were encountered: