Skip to content

Commit

Permalink
fix: remove zIndex from Textarea component
Browse files Browse the repository at this point in the history
  • Loading branch information
gndz07 authored Feb 7, 2023
1 parent a382075 commit 30bf169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const StyledTextarea = styled('textarea', {
WebkitTapHighlightColor: 'rgba(0,0,0,0)',

// Custom
zIndex: 1, // layer on top of before/after pseudo
p: '$3',
position: 'relative',
flexGrow: 1, // make sure to grow fully inside TextareaWrapper
Expand Down Expand Up @@ -154,13 +153,15 @@ const TextareaWrapper = styled('div', {
content: '""',
position: 'absolute',
inset: 0,
pointerEvents: 'none',
},
'&::after': {
boxSizing: 'border-box',
borderRadius: 'inherit',
content: '""',
position: 'absolute',
inset: 0,
pointerEvents: 'none',
},

'&:focus-visible': {
Expand Down Expand Up @@ -225,7 +226,6 @@ const AdornmentWrapperEnd = styled('div', {
right: '$3',
minWidth: '$5',
minHeight: '$5',
zIndex: 1,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
Expand Down

0 comments on commit 30bf169

Please sign in to comment.