Skip to content

Commit

Permalink
fix(styling): flatpickr bg-color should be using SASS variable (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 28, 2020
1 parent 07bd99a commit 8a613d4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class DateRangeFilter implements Filter {
// private functions
// ------------------
private buildDatePickerInput(searchTerms?: SearchTerm | SearchTerm[]) {
const columnId = this.columnDef && this.columnDef.id;
const columnId = this.columnDef && this.columnDef.id || '';
const inputFormat = mapFlatpickrDateFormatWithFieldType(this.columnFilter.type || this.columnDef.type || FieldType.dateIso);
const outputFormat = mapFlatpickrDateFormatWithFieldType(this.columnDef.outputType || this.columnFilter.type || this.columnDef.type || FieldType.dateUtc);
const userFilterOptions = (this.columnFilter && this.columnFilter.filterOptions || {}) as FlatpickrOption;
Expand Down
35 changes: 17 additions & 18 deletions src/app/modules/angular-slickgrid/styles/slick-plugins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -755,30 +755,29 @@ input.search-filter {

.search-filter .flatpickr {
input.form-control {
cursor: pointer;
border-left: none;
}
}
.search-filter.flatpickr,
.search-filter .flatpickr {
flex: 1;
cursor: pointer;

.flatpickr {
flex: 1;
cursor: pointer;

input.flatpickr.form-control,
.flatpickr-input.form-control {
background-color: $flatpickr-bgcolor;
font-family: $filter-placeholder-font-family;
font-size: $font-size-base;
border-radius: $compound-filter-border-radius;
width: 100%;
&[readonly] {
background-color: $flatpickr-bgcolor;
}
}
.form-control[readonly],
.flatpickr.form-control[readonly] {
input.flatpickr.form-control,
.flatpickr-input.form-control {
background-color: $flatpickr-bgcolor;
font-family: $filter-placeholder-font-family;
font-size: $font-size-base;
border-radius: $compound-filter-border-radius;
width: 100%;
&[readonly] {
background-color: $flatpickr-bgcolor;
}
}
.form-control[readonly],
.flatpickr.form-control[readonly] {
background-color: $flatpickr-bgcolor;
}
}
input.flatpickr-input.form-control,
input.flatpickr.form-control {
Expand Down

0 comments on commit 8a613d4

Please sign in to comment.