Skip to content

Commit

Permalink
fix(experimental): Fade fix line height issue (#5617)
Browse files Browse the repository at this point in the history
Co-authored-by: a.inkin <[email protected]>
  • Loading branch information
waterplea and a.inkin authored Oct 12, 2023
1 parent 473c3b5 commit a85ee21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions projects/experimental/directives/fade/fade.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ import {TuiFadeComponent} from './fade.component';
],
})
export class TuiFadeDirective {
// TODO: Remove when lh CSS units are supported: https://caniuse.com/mdn-css_types_length_lh
@Input('tuiFadeHeight')
@HostBinding('style.line-height')
@HostBinding('style.--line-height')
lineHeight: string | null = null;

Expand Down
1 change: 0 additions & 1 deletion projects/experimental/directives/fade/fade.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
mask-repeat: no-repeat;

&:not([data-orientation='vertical']) {
line-height: var(--line-height, inherit) !important;
mask-image:
linear-gradient(to right, transparent var(--fade-offset), #000 calc(var(--fade-size) + var(--fade-offset))),
linear-gradient(to left, transparent var(--fade-offset), #000 calc(var(--fade-size) + var(--fade-offset))),
Expand Down

0 comments on commit a85ee21

Please sign in to comment.