Skip to content

Commit

Permalink
fix(kit): icon hover on readonly (#8469)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlufy authored Aug 13, 2024
1 parent 9a09e32 commit f191f9a
Show file tree
Hide file tree
Showing 5 changed files with 8 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 @@ -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 f191f9a

Please sign in to comment.