Skip to content

Commit

Permalink
wip fix date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
joaogoncalves committed Aug 19, 2024
1 parent 0065d17 commit 1657dba
Showing 1 changed file with 30 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,53 @@
display: block;
// patching some styling in the native material date picker so it is inline with our own styling
::ng-deep {
mat-form-field {
.mat-mdc-form-field {
display: block;
height: 100%;
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
.mat-form-field-label {
.mat-mdc-text-field-wrapper, .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay {
background-color: unset;
&:hover {
background-color: unset;
}
}

.mat-mdc-form-field-subscript-wrapper {
display: none
}

.mdc-line-ripple::before, .mdc-line-ripple::after {
display: none;
}

.mat-mdc-form-field-label {
color: $default-gray-faded-dark;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
&.mat-focused .mat-form-field-label {
&.mat-mdc-focused .mat-mdc-form-field-label {
color: $default-gray-faded-dark;
}
}
.mat-datepicker-toggle-active {
.mat-mdc-datepicker-toggle-active {
color: $default-gray-dark;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
.mat-form-field-wrapper {
.mat-mdc-form-field-wrapper {
padding-bottom: 0;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
.mat-form-field-flex {
.mat-mdc-form-field-flex {
flex-direction: row-reverse;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
.mat-form-field-infix {
.mat-mdc-form-field-infix {
border-top: none;
width: auto;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
.mat-form-field-suffix {
.mat-mdc-form-field-suffix {
margin-right: $spacing-small;
&:hover {
/* TODO(mdc-migration): The following rule targets internal classes of button that may no longer apply for the MDC version.*/
.mat-button-focus-overlay {
.mat-mdc-button-focus-overlay {
opacity: 0.1;
}
}
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/
.mat-form-field-underline {
.mat-mdc-form-field-underline {
display: none;
}
.daysSelectedCaption {
Expand All @@ -57,6 +63,11 @@
.inputForMultipleDays {
display: none;
}

.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay {
opacity: unset;
background-color: unset;
}
}
}

Expand Down

0 comments on commit 1657dba

Please sign in to comment.