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

Small toolbar buttons #68

Closed
DesignyourCode opened this issue Dec 17, 2019 · 7 comments
Closed

Small toolbar buttons #68

DesignyourCode opened this issue Dec 17, 2019 · 7 comments
Labels
enhancement New feature or request

Comments

@DesignyourCode
Copy link

Is there a way to set the toolbar button as small using the Material UI size attribute?

@niuware niuware added the enhancement New feature or request label Dec 19, 2019
@niuware
Copy link
Owner

niuware commented Dec 19, 2019

@DesignyourCode Currently there is no property to set the size of the IconButton. I will add it on a next release.

@DesignyourCode
Copy link
Author

Brilliant, thank you

@niuware
Copy link
Owner

niuware commented Dec 26, 2019

This is added on version 1.11.0

@niuware niuware closed this as completed Dec 26, 2019
@DesignyourCode
Copy link
Author

DesignyourCode commented Jan 8, 2020

Amazing, thank you.

I have just tried this though and it doesn't appear to be making them smaller.

@niuware
Copy link
Owner

niuware commented Jan 17, 2020

@DesignyourCode Are you setting the toolbarButtonSize property?

@DesignyourCode
Copy link
Author

Sorry yes I am setting it, but it's not shrinking the icons at all.

@niuware
Copy link
Owner

niuware commented Feb 11, 2020

The default component for a ToolbarButton is an IconButton, so the small size is the one provided by material-ui which basically just removes the padding from the IconButton. You can still use custom toolbar button components if you require a smaller size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants