Skip to content

Commit 8a20857

Browse files
author
Hannah Dunsmore
committed
changed scroll bar styling
1 parent cba09bc commit 8a20857

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/Components/RoverDetails/RoverDetails.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,20 @@
8181
gap: 1rem;
8282
padding: 1rem;
8383
scroll-snap-type: x mandatory;
84+
-webkit-overflow-scrolling: touch;
85+
white-space: nowrap;
86+
87+
&::-webkit-scrollbar {
88+
height: 10px;
89+
}
90+
91+
&::-webkit-scrollbar-track {
92+
background: transparent;
93+
}
94+
95+
&::-webkit-scrollbar-thumb {
96+
background: #999;
97+
}
8498

8599
button {
86100
flex: 0 0 auto;

src/Components/RoverDetails/RoverDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function RoverDetails() {
3737
return (
3838
<div id="rover-information-container">
3939
<h2 id="rover-header">CHOOSE A ROVER</h2>
40-
<span id="scroll-message">Scroll to pick a rover!</span>
40+
<span id="scroll-message">Scroll to pick!</span>
4141
<div id="rover-button-container" className="button-carousel">
4242
<button
4343
className={

0 commit comments

Comments
 (0)