-
Notifications
You must be signed in to change notification settings - Fork 3.4k
mdSpeedDial: Implement floating-action-button menu #1416
Comments
Looks great ... |
+10 would love to see this. I'll probably have to roll my own in the mean time. I'll share if it turns out good. |
👍 |
If anyone has implemented this (using the md directives), please share! Waiting for this and md-menu in 0.10, waiting for .9.0! |
These guys have it down pretty nice http://ui.lumapps.com/css/fab |
@imjoeybrennan unless you're using a keyboard or a screen reader. |
@marcysutton yas queen. angular material is boss. |
Awesome ++1 |
please +1 |
A start: http://codepen.io/ionic/pen/xbNrzV |
@ajoslin Looks good. I don't know if it's going to a be a 1:1 with inbox but if it is they show the mini fabs whenever you hover anywhere in the blue box(basically the mini-fabs area + some margin). |
Then fix it and open a PR 😉 |
Material Design Specifcation released for SpeedDial Includes both FAB buttons and toolbar slideouts: |
Hi folks. I've just created a basic prototype using MD so that we can begin discussing some thoughts. You can view the demo and get the code at http://profoundry-us.github.io/md-fab-test/ Of note, here are some of my thoughts:
So, the basic usage code looks something like this: <md-fab md-direction="up">
<md-fab-trigger>
<md-button><md-icon path="/images/plus.svg"></md-icon></md-button>
</md-fab-trigger>
<md-fab-speed-dial>
<md-button><md-icon path="/images/pencil.svg"></md-icon></md-button>
<md-button><md-icon path="/images/user.svg"></md-icon></md-button>
<md-button><md-icon path="/images/group.svg"></md-icon></md-button>
</md-fab-speed-dial>
</md-fab> In theory, this actually allows any HTML inside of the trigger or speed dial (perhaps a search box or other input field), but I haven't tried it since it seemed kinda silly. In any case, I would love some feedback! I actually have today and tomorrow off so I could spend some time getting a basic component working if we think this approach is good. |
@topherfangio - This looks very interesting. Perhaps you could:
|
++1 |
@ThomasBurleson I am definitely great with adding the additional suggestions you mentioned, however, I was hoping to get some feedback on the actual architectural choices (such has how I've broken out the directives, and whether to use CSS for the ordering, etc) before investing a significant amount of time in it. As this is the first component I would be contributing, I'd like to hear some other people's thoughts on how to make sure it fits best with your existing ecosystem to make sure I'm not doing something really wonky :-) Also, is there a document describing what browsers MD officially supports? I've only tested this with Chrome... |
+1 Keep up the awesome work, @topherfangio! |
What about touc support? Is the aim is to create a "mobile-focused component" the the current (0.10.0) implementation isn't really there yet. Also, is there a built-in to support tooltips like the Google Inbox one does? I have done implemented tooltips myself and could share some code/contribute if need be since using the native |
@mismith I am currently working to bring the SpeedDial many new features including touch support. I have already fixed the issue with the hover/mouse events and tooltips, I just haven't submitted a PR quite yet; so it should be coming soon and should be a much more robust component in the near future :-) |
Amazing, let me know if I can help! |
@mismith PRs are always welcome ;-) Here is the current list of issues that I am working through: https://github.com/angular/material/issues/assigned/topherfangio The team and I are attempting to assign everything dealing with speed dial/toolbar to me, so if you see one somewhere else, please ping me about it. |
Any updates to this recently? Would love to use the floating text in my app. |
@sjlynch I am slowly but steadily working on it. I am finishing up a huge contract this week and should have a lot more time after that to finish this out (including next week when I am on vacation). I'm hoping to get everything squared away ASAP, but I'm looking at a potential redesign due to how awkward it is sometimes to use. I will be pushing to have this component as production-ready as possible by 0.11.0. In the meantime, the latest master speed dial is mostly working :-) |
@topherfangio When the speed dial is open, you should display the tool-tips like it does on android/inbox. |
@topherfangio Hey great news! But try to take it easy on your vacation, unless that is how you relax haha. Love the speed dial thus far. |
@sjlynch I unfortunately took it a bit easier than I planned on my vacation and didn't get much done. Apparently, chasing a toddler around a cabin in the woods is harder than I thought (especially when there are two other kids he is chasing after). In any case, I am now 100% focused on material and will be pushing to get a bunch of stuff done this week :-) |
How's it going? Did 0.10.1 push any changes here? |
I think there were a few small fixes in 0.10.1, but the majority of fixes will be pushed in 0.11 which we are working on now. I actually just finished what should be my last PR for the speed dial/toolbar for a while, so as soon as it is merged, it will be available and should be mostly ready. We have some plans post 1.0, but will likely only have bug fixes until then. |
Cool, thanks for the update. And cheers for all your efforts! |
Thanks for the great effort so far, looking forward to the update... really, need it now, but no complaints ! 👍 |
Speed dial should now be feature complete and was merged into master this morning. Please let us know if you find more issues! |
@topherfangio The tooltips look great, thanks for your work! Edit: Is there any way to show the tooltips automatically expanded e.g. without first hovering over them? |
Fixed in 545582d. |
The "speed dial" component inspired by Google Inbox allows for a small number of items to animate out from a floating action button (FAB). In the Material Design spec although there isn't any detail for this specific component, there are a few patterns and requirements noted for items animating out of FABs:
There are a few inspirations:
Implementation: http://nobitagit.github.io/ng-material-floating-button/ (needs accessibility)
Design: https://dribbble.com/shots/1788016-Inbox-Speed-Dial-Animation
Google Inbox SpeedDial UX: MP4
Similar to a Bottom Sheet, the speed dial component is a mobile-focused component, and should be noted in the docs.
h/t to #1368.
The text was updated successfully, but these errors were encountered: