Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

md-fab-toolbar height is not set properly with the default Angular Material styles #3384

Closed
chrislambe opened this issue Jun 22, 2015 · 3 comments
Assignees
Milestone

Comments

@chrislambe
Copy link

The md-fab-toolbar component seems to work well enough in the docs demo, but in a vanilla Angular Material app it's strangely tall. Turns out it relies on the font-size being set to 62.5% on the html element of the docs demo. That font-size is set by docs.css and so can't be relied upon in a normal Angular Material app.

The height of the FAB toolbar is determined by the md-fab-toolbar-wrapper class which has a height of 6.8rem.

You can see the abnormal height in the codepen demo provided in the docs: http://codepen.io/anon/pen/eNGXpb

@chrislambe
Copy link
Author

This could be solved for vanilla Angular Material by setting the height to 4.25rem but that seems like a bandaid. @topherfangio is there any particular reason the height needs to be set? And more specifically why was it set in rem when the other elements in Angular Material are sized in px?

@topherfangio
Copy link
Contributor

@chrislambe Sorry for the delay, I recall there being a reason to set the height, but if I'm basing it off of something in the docs, that's definitely wrong. I will take a look and figure out how to fix this :-)

@chrislambe
Copy link
Author

Awesome! Thanks, @topherfangio!

@topherfangio topherfangio self-assigned this Jun 29, 2015
@ThomasBurleson ThomasBurleson modified the milestone: 0.10.1 Jun 30, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 0.10.1, 1.0-beta1 Jul 31, 2015
@topherfangio topherfangio modified the milestones: 0.11.0, 1.0-beta1 Aug 3, 2015
@topherfangio topherfangio added in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs and removed REVISIT labels Aug 3, 2015
topherfangio added a commit that referenced this issue Aug 3, 2015
Fab Toolbar incorrectly used 6.8rem instead of the rem(6.8) SCSS function.
Also updated it to use button.scss variables instead of hard-coded values.

closes #3384
kennethcachia pushed a commit to kennethcachia/material that referenced this issue Sep 23, 2015
Fab Toolbar incorrectly used 6.8rem instead of the rem(6.8) SCSS function.
Also updated it to use button.scss variables instead of hard-coded values.

BREAKING CHANGE: md-fab-toolbar now uses variables for height

```css
md-fab-toolbar {
  height: $button-fab-width + ($icon-button-margin * 2);
}
```

closes angular#3384. closes angular#4007.
@ThomasBurleson ThomasBurleson removed the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label Jan 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants