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

[Toolbar] Add dense variant #12075

Merged
merged 4 commits into from
Jul 14, 2018
Merged

Conversation

srilman
Copy link
Contributor

@srilman srilman commented Jul 6, 2018

Had this around from another project, so I thought I would create a PR.

Not completely sure if it is necessary to modify Typography to make sure that normal font (for titles and such) are smaller when using the dense Toolbar. It is also something that a user can perform manually.

Closes #11619.

capture d ecran 2018-07-14 a 12 47 49

@srilman srilman force-pushed the feature/dense_app_bar branch 3 times, most recently from b9f1f6b to 85902c7 Compare July 6, 2018 20:41
@mbrookes mbrookes changed the title Issue #11619. Added option for a dense Toolbar. [Toolbar] Add dense option Jul 6, 2018
@mbrookes
Copy link
Member

mbrookes commented Jul 6, 2018

Could you also add this to the type definitions?

@srilman
Copy link
Contributor Author

srilman commented Jul 10, 2018

Sure thing. Just added the type defintion

@oliviertassinari oliviertassinari self-assigned this Jul 13, 2018
@oliviertassinari oliviertassinari added the component: app bar This is the name of the generic UI component, not the React module! label Jul 14, 2018
@oliviertassinari oliviertassinari changed the title [Toolbar] Add dense option [Toolbar] Add dense variant Jul 14, 2018
@oliviertassinari oliviertassinari added new feature New feature or request design: material This is about Material Design, please involve a visual or UX designer in the process labels Jul 14, 2018
@oliviertassinari
Copy link
Member

oliviertassinari commented Jul 14, 2018

@srilman I have updated the pull request to use the variant property over a boolean. Looking at the specification, there is more variant we might want to support in the future.
The App Bar / Toolbar story isn't very great right now regarding matching the specification and in terms of feature. It was rushed to cut v1 out.

@oliviertassinari oliviertassinari merged commit 57644a1 into mui:master Jul 14, 2018
@oliviertassinari
Copy link
Member

@srilman It's a great first pull request on Material-UI 👌🏻. Thank you for giving it a shot!

acroyear pushed a commit to acroyear/material-ui that referenced this pull request Jul 14, 2018
* Address issue mui#11619. Added option for a dense Toolbar.

* Fixed actual errors with page

* Added type definitions to toolbar dense feature

* ready to be merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: app bar This is the name of the generic UI component, not the React module! design: material This is about Material Design, please involve a visual or UX designer in the process new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants