Skip to content

Commit

Permalink
Fixed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelena committed Jan 27, 2022
1 parent 0e008e8 commit 302dba7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@import "./sass_partials/day_styles";
@import "./sass_partials/header_styles";
@import "./sass_partials/overrides";
@import "./sass_partials/month_and_year_styles";

.flatpickr-wrapper {
display: block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ const datePickerHelper = (config) => {
}

// Adding dropdown icons to year and month selects
// picker.monthElements[0].insertAdjacentHTML('afterend', '<i class="far fa-angle-down month-dropdown-icon"></i>')
// dropdown.insertAdjacentHTML('afterend', '<i class="far fa-angle-down year-dropdown-icon" id="test-id"></i>')
dropdown.insertAdjacentHTML('afterend', '<i class="far fa-angle-down year-dropdown-icon" id="test-id"></i>')
if (picker.monthElements[0].parentElement) {
return picker.monthElements[0].insertAdjacentHTML('afterend', '<i class="far fa-angle-down month-dropdown-icon"></i>')
}

// Remove readonly attribute for validation and or text input
if (allowInput){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.numInput {
border-left: none !important;
}

// Manual Import
.flatpickr-monthSelect-months {
margin: 10px 1px 3px 1px;
flex-wrap: wrap;
Expand Down Expand Up @@ -83,10 +88,10 @@
.flatpickr-monthSelect-month.selected,
.flatpickr-monthSelect-month.startRange,
.flatpickr-monthSelect-month.endRange {
background-color: #569ff7;
background-color: $primary;
box-shadow: none;
color: #fff;
border-color: #569ff7;
border-color: $primary;
}

.flatpickr-monthSelect-month.startRange {
Expand Down

0 comments on commit 302dba7

Please sign in to comment.