瀏覽代碼

removed ripple effect of disabled icon-buttons

Warafear 11 月之前
父節點
當前提交
3214d76e60
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/app/shared-components/icon-button/icon-button.component.html

+ 5 - 1
src/app/shared-components/icon-button/icon-button.component.html

@@ -1,3 +1,7 @@
-<button matRipple [class]="!disabled ? 'hover-effect' : ''">
+<button
+  matRipple
+  [class]="!disabled ? 'hover-effect' : ''"
+  [disabled]="disabled"
+>
   <img [src]="'assets/icons/UIIcons/' + icon + '.svg'" [alt]="icon" />
 </button>