Skip to content

Commit 600328b

Browse files
committed
tab dropdown styling
1 parent 3981927 commit 600328b

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

src/app/components/SwitchApp.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const SwitchAppDropdown = () => {
2020

2121
return (
2222
<Select
23-
className="react-select-container"
24-
classNamePrefix="react-select"
23+
className="tab-select-container"
24+
classNamePrefix="tab-select"
2525
value={currTab}
2626
onChange={e => {
2727
dispatch(setTab(parseInt(e.value, 10)));

src/app/containers/MainContainer.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function MainContainer() {
5050
});
5151

5252
if (!npmExists) return <div style={{ color: 'black' }}>please install our npm package in your app</div>;
53+
console.log('tabs', tabs)
5354
const { viewIndex, sliderIndex, snapshots } = tabs[currentTab];
5455

5556
// if viewIndex is -1, then use the sliderIndex instead

src/app/styles/layout/_headContainer.scss

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,39 @@
66
.head-container {
77
display: flex;
88
flex-direction: row-reverse;
9-
justify-content: space-around;
10-
}
9+
align-items: center;
10+
justify-content: space-between;
11+
padding: 5px;
12+
}
13+
14+
.tab-select-container {
15+
font-size: 12px;
16+
min-width: 90px;
17+
margin: 10px;
18+
}
19+
20+
.tab-select-container {
21+
.tab-select__control,
22+
.tab-select__menu {
23+
border-style: none;
24+
width: 300px;
25+
background-color: $light-grey-one;
26+
z-index: 2;
27+
@extend %disable-highlight;
28+
}
29+
.tab-select__single-value {
30+
color: white;
31+
}
32+
.tab-select__option:hover {
33+
background-color: #2683ff;
34+
}
35+
.tab-select__option--is-selected,
36+
.tab-select__option--is-focused {
37+
background-color: transparent;
38+
}
39+
40+
// removes the cursor from blinking
41+
.css-w8afj7-Input {
42+
color: transparent;
43+
}
44+
}

0 commit comments

Comments
 (0)