From 0b0b258d49eb33ee50575b42180b93445d92b49e Mon Sep 17 00:00:00 2001 From: Chukwumdiebube Date: Wed, 8 Feb 2023 18:51:12 +0100 Subject: [PATCH] Added rounded edges on select boxes --- src/components/Reminders/AddEditReminder.jsx | 10 ++++---- src/index.css | 25 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/components/Reminders/AddEditReminder.jsx b/src/components/Reminders/AddEditReminder.jsx index dfc7eae..bc24f50 100644 --- a/src/components/Reminders/AddEditReminder.jsx +++ b/src/components/Reminders/AddEditReminder.jsx @@ -5,10 +5,8 @@ import { Link, useNavigate, useLocation, useParams } from 'react-router-dom' // import { toast } from 'react-toastify'; import InputCom from "../Helpers/Inputs/InputCom"; - import Calendar from 'react-calendar'; import 'react-calendar/dist/Calendar.css'; - import usersService from "../../services/UsersService"; @@ -132,7 +130,7 @@ export default function AddEditReminder({ className }) { {/* first name and last name */}
-
+
{/* */} - {category.length > 0 && <> @@ -153,7 +151,7 @@ export default function AddEditReminder({ className }) { }
-
+
{/* */} - {category.length > 0 && <> diff --git a/src/index.css b/src/index.css index 0741929..baba928 100755 --- a/src/index.css +++ b/src/index.css @@ -712,3 +712,28 @@ TODO: Responsive =========================== height: 4.813rem !important; transition: all 500ms; } + +.reminder-select select{ + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background: url("data:image/svg+xml,") no-repeat #fafafa; + background-position: calc(100% - 0.75rem) center !important; + box-shadow: 0 0 0.5em 0 rgba(194, 194, 194, 0.2); +} + +.reminder-select select::-ms-expand { + display: none; /* Remove default arrow in Internet Explorer 10 and 11 */ +} + +.reminder-select select option{ + color: inherit; +} + +/* Target Internet Explorer 9 to undo the custom arrow */ +@media screen and (min-width:0\0) { + .reminder-select select { + background: none\9; + padding: 5px\9; + } +} \ No newline at end of file