SimpleDatePicker Input Styled

master
Pedram Keshavarzi 3 years ago
parent 4f2d52e18f
commit a7a5616438
  1. 15
      src/components/Calendar/index.css
  2. 2
      src/components/SimpleDatePicker/index.js

@ -6,11 +6,17 @@
.DatePicker__input { .DatePicker__input {
background: #fff; background: #fff;
border: 1px solid #ddd; border: 1px solid rgba(0, 0, 0, 0.4);
padding: 0.4em 0.8em; padding: 0.6em 1.2em;
font-family: inherit; font-family:'iranSans';
text-align: center; text-align: center;
font-size: 12px; font-size: 12px;
border-radius: 7px;
}
.DatePicker__input:focus{
outline:1px solid #06BACE;
color: #06BACE;
} }
.DatePicker__input.-rtl { .DatePicker__input.-rtl {
@ -20,6 +26,9 @@
.DatePicker__input::placeholder { .DatePicker__input::placeholder {
color: #979797; color: #979797;
} }
.DatePicker__input:focus::placeholder{
color: #06BACE;
}
.DatePicker__calendarContainer.-top + .DatePicker__calendarArrow { .DatePicker__calendarContainer.-top + .DatePicker__calendarArrow {
top: auto; top: auto;

@ -8,7 +8,7 @@ const SimpleDatePicker = () =>{
<DatePicker <DatePicker
value={selectedDay} value={selectedDay}
onChange={setSelectedDay} onChange={setSelectedDay}
inputPlaceholder="Select a day" inputPlaceholder="انتخاب تاریخ"
shouldHighlightWeekends shouldHighlightWeekends
locale='fa' locale='fa'
/> />

Loading…
Cancel
Save