Skip to content

feature: extended FAB (Floating Action Button) #12246

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

Closed
donroyco opened this issue Jul 17, 2018 · 10 comments
Closed

feature: extended FAB (Floating Action Button) #12246

donroyco opened this issue Jul 17, 2018 · 10 comments
Assignees
Labels
area: material/button feature This issue represents a new feature or feature request rather than a bug or bug fix new component This issue is tracking a new component to be added to the library P5 The team acknowledges the request but does not plan to address it, it remains open for discussion

Comments

@donroyco
Copy link
Contributor

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

To have the Extended FAB (Floating Action Button) as a Material component, as designed in the Google Material Design.

Google Material Design preview - Extended FAB
See for more examples the Google Material Design documentation.

What is the current behavior?

There's currently no (extended) FAB to use when you can't explain an action with only an icon (as the FAB itself is designed for).

What is the use-case or motivation for changing an existing behavior?

To follow the Google Material Design and its components. There's now no component to provide the kind of interaction a FAB has plus a text label.

Is there anything else we should know?

It was already mentioned before in #11534, but it was closed due to not following the issue template.

@josephperrott josephperrott added feature This issue represents a new feature or feature request rather than a bug or bug fix new component This issue is tracking a new component to be added to the library discussion labels Jul 17, 2018
@JaxonWright
Copy link

This would be a great addition. Really, anything introduced in Material Design 2.0 would be amazing if added.

@kill33
Copy link

kill33 commented Aug 14, 2018

That's a great addition.
And there is some implemention and discussion in #860 md-fab-speed-dial.

@JWess
Copy link

JWess commented Mar 6, 2019

Workaround that looks pretty close:

<button class="extended-fab-button" mat-fab color="primary">
  <mat-icon>speaker_notes</mat-icon>
  <span class="extended-fab-button__text">Notes</span>
</button>
.extended-fab-button {
  width: unset;
  padding: 0 26px;
  border-radius: 29px;

  .mat-icon {
    margin-right: 10px;
  }

  .extended-fab-button__text {
    font-weight: 300;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
}

image

@dshukertjr
Copy link

Is this feature not coming?

@mmalerba mmalerba added needs: discussion Further discussion with the team is needed before proceeding and removed discussion labels Mar 3, 2020
@BobDankert
Copy link

Any updates on this? Are there any particular challenges with this issue?

@mmalerba mmalerba added the needs triage This issue needs to be triaged by the team label May 20, 2020
@josephperrott josephperrott added area: material/button and removed needs triage This issue needs to be triaged by the team labels May 29, 2020
@jelbourn jelbourn added P5 The team acknowledges the request but does not plan to address it, it remains open for discussion and removed needs: discussion Further discussion with the team is needed before proceeding labels Jun 26, 2020
@guss77
Copy link

guss77 commented Aug 20, 2020

Workaround works well, but I would love to see this supported by the MatButton component itself. What happened with #15645? looks like a lot of good work?

@evilangelmd
Copy link

any information about #15645 @josephperrott , @jelbourn ?

@JaxonWright
Copy link

@JWess in order for your workaround to work in IE11, you need to change width from unset to auto, which is the default value.

@crisbeto
Copy link
Member

This is supported in the MDC version of the FAB which will become the default eventually. If you want to start using it now, you can import the MatButtonModule from @angular/material-experimental/mdc-button and use an extended FAB like this:

<button mat-fab extended>
  <mat-icon>check</mat-icon>
  Search
</button>

@crisbeto crisbeto self-assigned this Jun 29, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: material/button feature This issue represents a new feature or feature request rather than a bug or bug fix new component This issue is tracking a new component to be added to the library P5 The team acknowledges the request but does not plan to address it, it remains open for discussion
Projects
None yet
Development

No branches or pull requests