Skip to content

Commit

Permalink
πŸ”© fixed the select domain button for light theme (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiffpixels authored May 15, 2024
1 parent 524cddc commit e813bee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/src/pages/Home/components/JoinUsForm/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ export const JoinUsForm = (props) => {
value={domains} // Preselected value to persist in dropdown
onChange={setDomains} // Function will trigger on change event
labelledBy={"Domains"} // Property name to display in the dropdown options
className={dark ? styles["dropdown"] : ""}
className={
dark ? styles["dropdown-dark"] : styles["dropdown"]
}
/>

<div
Expand Down
13 changes: 12 additions & 1 deletion frontend/src/pages/Home/components/JoinUsForm/form.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@
height: 80px;
}

.dropdown {
//for dark theme
.dropdown-dark {
--rmsc-main: #4285f4 !important;
--rmsc-hover: #333333 !important;
--rmsc-selected: #474343 !important;
Expand All @@ -205,6 +206,16 @@
--rmsc-h: 38px !important; /* Height */
}

.dropdown {
--rmsc-main: #4285f4 !important;
--rmsc-selected: #474343 !important;
--rmsc-border: #838383 !important;
--rmsc-bg: #e7e7e7 !important;
--rmsc-p: 10px !important; /* Spacing */
--rmsc-radius: 4px !important; /* Radius */
--rmsc-h: 38px !important; /* Height */
}

.valid {
display: flex;
justify-content: center;
Expand Down

0 comments on commit e813bee

Please sign in to comment.