Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Rubin authored and Ben Rubin committed Dec 6, 2016
1 parent d48dd3e commit 98fb8d4
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-material-expansion-panel",
"version": "0.7.0",
"version": "0.7.1",
"description": "Material Design Expansion Panels.",
"main": [
"dist/md-expansion-panel.js",
Expand Down
5 changes: 4 additions & 1 deletion dist/md-expansion-panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ md-expansion-panel {
border-color: #DDD; }
md-expansion-panel .md-expansion-panel-icon svg {
fill: #999; }
md-expansion-panel[disabled] md-expansion-panel-collapsed {
md-expansion-panel[disabled] md-expansion-panel-collapsed .md-title,
md-expansion-panel[disabled] md-expansion-panel-collapsed .md-summary {
color: #DDD; }
md-expansion-panel[disabled] .md-expansion-panel-icon svg {
fill: #DDD; }
md-expansion-panel:not(.md-open):not([disabled]):focus,
md-expansion-panel:not(.md-open):not([disabled]):focus md-expansion-panel-collapsed {
background: #EEE; }
Expand Down
18 changes: 9 additions & 9 deletions dist/md-expansion-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ function expansionPanelDirective() {
vm.onRemove = onRemove;
vm.init = init;

$attrs.$observe('disabled', function(disabled) {
isDisabled = (typeof disabled === 'string' && disabled !== 'false') ? true : false;

if (isDisabled === true) {
$element.attr('tabindex', '-1');
} else {
$element.attr('tabindex', '0');
}
});
if ($attrs.ngDisabled !== undefined) {
$scope.$watch($attrs.ngDisabled, function(value) {
isDisabled = value;
$element.attr('tabindex', isDisabled ? -1 : 0);
});
} else if ($attrs.disabled !== undefined) {
isDisabled = ($attrs.disabled !== undefined && $attrs.disabled !== 'false' && $attrs.disabled !== false);
$element.attr('tabindex', isDisabled ? -1 : 0);
}

$element
.on('focus', function (ev) {
Expand Down
2 changes: 1 addition & 1 deletion dist/md-expansion-panel.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 98fb8d4

Please sign in to comment.