Looking to create some breathing room between the scrollbar and the right border of my text area. I've tried adjusting the margin-right/left values in -webkit-scrollbar with no success. Here's my style component:
const FormTextArea = styled.textarea`
display: flex;
flex-direction: row;
align-items: center;
padding: 12px;
width: 316px;
height: 216px;
background: #FFFFFF;
border: 1px solid ${props => props.error ? '#B42F08' : '#809BAF'};
border-radius: 4px;
margin-top: 16px;
margin-left: 20px;
&:focus {
border: 1px solid #3BB0C9 ;
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-thumb {
background-color: #B3B4B6;
border-radius: 10px;
}
resize:none;
&::placeholder {
color:#808285
}
&:focus , &:active {
outline: none !important;
}
`;
This is how my current text area appears:
https://i.stack.imgur.com/pO2D2.png
Wanting to keep the scrollbar as it is now, but add a 4px margin from the border. Any suggestions? Thanks!