Skip to content

Commit 7126d9e

Browse files
caitlinchan23Nkmailind-taniartviner
committed
changed margin to 0 on tab dropdown menu, brought back fiery rose empty button background
Co-authored-by: Nkmai <[email protected]> Co-authored-by: lind-tania <[email protected]> Co-authored-by: rtviner <[email protected]> Co-authored-by: caitlinchan23 <[email protected]>
1 parent a18efde commit 7126d9e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/app/components/SwitchApp.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,21 @@ const SwitchAppDropdown = () => {
1818
label: tabs[currentTab].title,
1919
};
2020

21+
const customStyles = {
22+
menu: (provided, state) => {
23+
const outline = state.isSelected ? 'transparent' : 'transparent';
24+
const margin = 0;
25+
26+
return {...provided, outline, margin};
27+
}
28+
}
29+
2130
return (
2231
<Select
2332
className="tab-select-container"
2433
classNamePrefix="tab-select"
2534
value={currTab}
35+
styles={customStyles}
2636
onChange={e => {
2737
dispatch(setTab(parseInt(e.value, 10)));
2838
}}

src/app/styles/components/_buttons.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
font: 300 14px 'Roboto', sans-serif;
1515
font-size: $button-text-size;
1616
width: 120px;
17-
background-color: transparent;
17+
background: linear-gradient(145deg, #ff6569, #e65558);
1818
}
1919
.empty-button:hover {
2020
color: black;
21-
background: linear-gradient(145deg, #ff6569, #e65558);
2221
box-shadow: inset 5px 5px 10px #d95053, inset -5px -5px 10px #ff6c71;
2322
}
2423

0 commit comments

Comments
 (0)