Ariel Weinberger pushed to branch master at cms-community / hippo-addon-channel-manager
Commits: e1dedc09 by Ariel Weinberger at 2017-09-13T12:01:55+02:00 CHANNELMGR-1428 Fix icon opacity for disabled menu items - - - - - 2 changed files: - frontend-ng/src/angularjs/channel/menu/menu.html - frontend-ng/src/angularjs/channel/menu/menu.scss Changes: ===================================== frontend-ng/src/angularjs/channel/menu/menu.html ===================================== --- a/frontend-ng/src/angularjs/channel/menu/menu.html +++ b/frontend-ng/src/angularjs/channel/menu/menu.html @@ -28,8 +28,8 @@ <md-menu-item ng-class="{'md-indent': menu.hasIcons()}" ng-repeat-start="item in menu.items track by item.name" ng-if="item.type === 'action' && item.isVisible()"> - <md-icon ng-if="item.hasIconName() && item.isIconVisible()">{{::item.iconName}}</md-icon> - <md-icon ng-if="item.hasIconSvg() && item.isIconVisible()" md-svg-icon="{{ ::item.iconSvg}}"></md-icon> + <md-icon ng-if="item.hasIconName() && item.isIconVisible()" ng-class="{ disabled: !item.isEnabled() }">{{::item.iconName}}</md-icon> + <md-icon ng-if="item.hasIconSvg() && item.isIconVisible()" md-svg-icon="{{ ::item.iconSvg}}" ng-class="{ disabled: !item.isEnabled() }"></md-icon> <md-button class="qa-{{ ::menu.name }}-menu-{{ ::item.name }}-action" aria-label="{{ ::item.translationKey | translate }}" ng-disabled="!item.isEnabled() || !menu.isEnabled()" ===================================== frontend-ng/src/angularjs/channel/menu/menu.scss ===================================== --- a/frontend-ng/src/angularjs/channel/menu/menu.scss +++ b/frontend-ng/src/angularjs/channel/menu/menu.scss @@ -16,6 +16,10 @@ > md-icon { left: 16px; + + &.disabled { + opacity: .38; + } } > .md-button { View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/e1dedc091137b34eab0e99991ec7526d093c4f80 --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/e1dedc091137b34eab0e99991ec7526d093c4f80 You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn