Skip to content
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

how to change the font size of ok and cancel button? #31

Closed
longdw opened this issue Jan 31, 2018 · 3 comments
Closed

how to change the font size of ok and cancel button? #31

longdw opened this issue Jan 31, 2018 · 3 comments
Assignees

Comments

@longdw
Copy link

longdw commented Jan 31, 2018

how to change the font size of ok and cancel button?
how to hide cancel button that has only one ok button show?

@hectahertz
Copy link
Owner

hectahertz commented Jan 31, 2018

Hi @longdw,

Hiding the cancel button is not recommended by the Material Design guidelines.

It's not considered a good UX practice as you can also press the back button or click outside the dialog to close it.

As per the font size, it's not supported as this library just follows the Material Design guidelines.

Thanks for your questions!

@peacechen
Copy link

@hectahertz
There are cases where only a single button is needed. For example, my app pops up a dialog to notify the user if the internet connection has dropped. The only button needed is an acknowledgement.

Indeed, Google's Material Design guidelines state the same thing about acknowledgement actions.

Acknowledgement actions
When user acknowledgement is required to proceed, a single action may be presented. Alternatively, use a snackbar to communicate this type of information.

https://material.io/design/components/dialogs.html#actions

@hectahertz
Copy link
Owner

hectahertz commented Aug 27, 2018

Hi @peacechen ,

There's a more appropriate issue for that, please continue the discussion here: #39

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants