This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fabSpeedDial): fix ability to use ng-hide
the animations were not properly calling the `done()` callback, so the `ng-animate` class was never being removed closes #3313
- Loading branch information
1 parent
78fcf18
commit 37cfe91
Showing
5 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<div ng-controller="DemoCtrl as demo" layout="column"> | ||
<md-content class="md-padding" layout="column"> | ||
<p> | ||
You can also hide the speed dial programmatically. | ||
</p> | ||
|
||
<md-checkbox ng-model="demo.hidden"> | ||
Hide the speed dial. | ||
</md-checkbox> | ||
|
||
<div class="lock-size" layout="row" layout-align="center center"> | ||
<md-fab-speed-dial ng-hide="demo.hidden" md-direction="down" class="md-fling"> | ||
<md-fab-trigger> | ||
<md-button aria-label="menu" class="md-fab md-warn"> | ||
<md-icon md-svg-src="img/icons/menu.svg"></md-icon> | ||
</md-button> | ||
</md-fab-trigger> | ||
|
||
<md-fab-actions> | ||
<md-button aria-label="twitter" class="md-fab md-raised md-mini"> | ||
<md-icon md-svg-src="img/icons/twitter.svg"></md-icon> | ||
</md-button> | ||
|
||
<md-button aria-label="facebook" class="md-fab md-raised md-mini"> | ||
<md-icon md-svg-src="img/icons/facebook.svg"></md-icon> | ||
</md-button> | ||
|
||
<md-button aria-label="Google Hangout" class="md-fab md-raised md-mini"> | ||
<md-icon md-svg-src="img/icons/hangout.svg"></md-icon> | ||
</md-button> | ||
</md-fab-actions> | ||
</md-fab-speed-dial> | ||
</div> | ||
</md-content> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(function() { | ||
'use strict'; | ||
|
||
angular.module('fabSpeedDialHidingDemo', ['ngMaterial']) | ||
.controller('DemoCtrl', function() { | ||
this.hidden = false; | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.text-capitalize { | ||
text-transform: capitalize; | ||
} | ||
|
||
.md-fab:hover, .md-fab.md-focused { | ||
background-color: #000 !important; | ||
} | ||
|
||
p.note { | ||
font-size: 1.2rem; | ||
} | ||
|
||
.lock-size { | ||
min-width: 300px; | ||
min-height: 300px; | ||
width: 300px; | ||
height: 300px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters