Skip to content

Commit

Permalink
fix(text-area): style resize knob (VIV-1620) (#1626)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelbt authored Mar 7, 2024
1 parent 65e342d commit 9c9a9fc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions libs/components/src/lib/text-area/text-area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,21 @@ $outline-width: 2px;
resize: none;
transition: box-shadow .2s, background-color .2s, color .2s;

@supports selector(::-webkit-resizer) {
&::-webkit-resizer {
$resizer-size: 10px;

background-image: linear-gradient(315deg, transparent 0, transparent 2px,
var(#{constants.$vvd-color-canvas-text}) 2px, var(#{constants.$vvd-color-canvas-text}) 3px,
transparent 3px, transparent 5px, var(#{constants.$vvd-color-canvas-text}) 5px,
var(#{constants.$vvd-color-canvas-text}) 6px, transparent 6px, transparent 8px, transparent 100%);
background-repeat: no-repeat;
background-size: $resizer-size $resizer-size;
block-size: $resizer-size;
inline-size: $resizer-size;
}
}

&:disabled {
opacity: 1; /* 2. correct opacity on iOS */
pointer-events: none;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9c9a9fc

Please sign in to comment.