Skip to content

Commit

Permalink
fix(kit): icon hover on readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlufy committed Aug 12, 2024
1 parent ef7e6f1 commit b82162e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/core/styles/theme/wrapper/icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@
.wrapper-disabled({
opacity: calc(0.5 * var(--tui-disabled-opacity));
});

.wrapper-readonly({
pointer-events: none;
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
tuiWrapper
class="t-icon"
[disabled]="!value"
[readOnly]="readOnly"
[src]="src"
[tuiHint]="hint"
[tuiHintAppearance]="messageAppearance"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
appearance="icon"
tuiWrapper
[class.t-icon]="!computedDisabled"
[readOnly]="readOnly"
[src]="src"
(click)="onIconClick()"
></tui-svg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
automation-id="tui-input-date-range__icon"
tuiWrapper
[class.t-icon]="!computedDisabled"
[readOnly]="readOnly"
[src]="src"
(click)="onIconClick()"
></tui-svg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
appearance="icon"
tuiWrapper
[class.t-icon]="!computedDisabled"
[readOnly]="readOnly"
[src]="src"
></tui-svg>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
automation-id="tui-input-date-range__icon"
tuiWrapper
[class.t-icon]="!computedDisabled"
[readOnly]="readOnly"
[src]="src"
(click)="onIconClick()"
></tui-svg>
Expand Down

0 comments on commit b82162e

Please sign in to comment.