Skip to content

Commit

Permalink
made scroll only verticall on the sample area and styled it
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-Duarte committed Jan 31, 2022
1 parent 75b23d7 commit 2e16206
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/SampleArea/SampleArea.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,24 @@ export const TextArea = styled.textarea<TextAreaProps>`
margin-top: 10px;
font-size: ${p => p.fontSize}px;
color: var(--color-main-copy);
overflow: scroll;
overflow-y: scroll;
resize: none;
&::-webkit-scrollbar {
width: 12px; /* width of the entire scrollbar */
}
&::-webkit-scrollbar-track {
background: transparent; /* color of the tracking area */
}
&::-webkit-scrollbar-thumb {
background-color:var(--color-focus); /* color of the scroll thumb */
border-radius: 20px; /* roundness of the scroll thumb */
border: 3px solid transparent; /* creates padding around scroll thumb */
cursor: pointer;
}
&:focus {
outline: none;
}
Expand Down

0 comments on commit 2e16206

Please sign in to comment.