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

mdFabSpeedDial - Missing the "md-fab-bottom-right" to put it in the bottom right corner #3220

Closed
carab opened this issue Jun 11, 2015 · 11 comments
Assignees
Labels
pr: merge ready This PR is ready for a caretaker to review
Milestone

Comments

@carab
Copy link

carab commented Jun 11, 2015

Hello everyone,

Using a simple md-fab button, we are able to place it in the bottom right corner by using "md-fab-bottom-right" class.

It would be nice if it was also possible for the mdFabSpeedDial component without writing custom CSS.

Thank you,
Carab.

@EladBezalel
Copy link
Member

👍

@ghost
Copy link

ghost commented Jun 11, 2015

It needs to support all of the position classes.

@ThomasBurleson ThomasBurleson self-assigned this Jun 16, 2015
@ThomasBurleson ThomasBurleson modified the milestone: 0.11.0 Jun 16, 2015
@ajd394
Copy link

ajd394 commented Jul 6, 2015

does anyone have a good workaround for this in the mean time?

@topherfangio
Copy link
Contributor

You should be able to use absolute positioning to put it anywhere on the page that you want. Something like this should work:

<style>
#my-speed-dial {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
</style>

<md-fab-speed-dial id="my-speed-dial" class="md-fling">
  ...
</md-fab-speed-dial>

@ajd394
Copy link

ajd394 commented Jul 6, 2015

you were right!
this link describes it in detail
https://groups.google.com/d/msg/ngmaterial/j-Jovmag2NA/aSce1Sp-CAkJ

@ghost
Copy link

ghost commented Jul 7, 2015

Should be straight forward, is there a reason why this isn't done yet? @topherfangio

md-fab-speed-dial.md-fab-bottom-right {
    top: auto;
    right: 20px;
    bottom: 20px;
    left: auto;
    position: absolute;
}

md-fab-speed-dial.md-fab-bottom-left {
    top: auto;
    right: auto;
    bottom: 20px;
    left: 20px;
    position: absolute;
}

@topherfangio
Copy link
Contributor

@robertbaker Honestly, just been a bit busy as one of my contracts is coming to a close :-)

Also wanted to check if there were any top positions I needed to support, and I haven't had a chance to look. Will do so tonight.

topherfangio added a commit that referenced this issue Jul 10, 2015
refactor button.scss to share fab position variables/mixins; would
LOVE feedback on whether or not this is the best approach

references #3220
topherfangio added a commit that referenced this issue Jul 12, 2015
refactor button.scss to share fab position variables/mixins; would
LOVE feedback on whether or not this is the best approach

references #3220
topherfangio added a commit that referenced this issue Jul 12, 2015
…lasses

refactor button.scss to share fab position variables/mixins; would
LOVE feedback on whether or not this is the best approach

references #3220
@topherfangio topherfangio added the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label Jul 12, 2015
@ThomasBurleson ThomasBurleson added needs: investigation The cause of this issue is not well understood and needs to be investigated by the team or community and removed needs: work labels Jul 13, 2015
topherfangio added a commit that referenced this issue Aug 3, 2015
…lasses

refactor button.scss and fab*.scss to share fab position variables/mixins

fixes #3220
@topherfangio topherfangio added pr: merge ready This PR is ready for a caretaker to review and removed in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs needs: investigation The cause of this issue is not well understood and needs to be investigated by the team or community labels Aug 6, 2015
@topherfangio
Copy link
Contributor

I have a PR (#3693) to fix this that should be merged soon.

@carab
Copy link
Author

carab commented Aug 6, 2015

Glad to hear that ;)

topherfangio added a commit that referenced this issue Aug 7, 2015
…lasses

refactor button.scss and fab*.scss to share fab position variables/mixins

fixes #3220
topherfangio added a commit that referenced this issue Aug 11, 2015
…lasses

refactor button.scss and fab*.scss to share fab position variables/mixins

fixes #3220
topherfangio added a commit that referenced this issue Aug 14, 2015
…lasses

refactor button.scss and fab*.scss to share fab position variables/mixins

fixes #3220. closes #3693.
@listepo
Copy link

listepo commented Aug 23, 2015

+1

@topherfangio
Copy link
Contributor

@listepo This is now available in master.

kennethcachia pushed a commit to kennethcachia/material that referenced this issue Sep 23, 2015
…lasses

refactor button.scss and fab*.scss to share fab position variables/mixins

fixes angular#3220. closes angular#3693.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

No branches or pull requests

6 participants