Skip to content

Commit

Permalink
feat: update styling for input placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-bassett committed Nov 3, 2023
1 parent f60f067 commit 0490e53
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions projects/components/src/input/input.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,43 @@
}

.border {
.mat-form-field-wrapper {
.mat-form-field-label{
&.mat-form-field-empty {
// Placeholder
color: $gray-4;
top: 0.8em;
}
}
}

&.mat-form-field {
height: inherit;
width: inherit;
}

&.mat-focused {
.mat-form-field-label {
color: $gray-5;
}
}

.mat-form-field-underline {
display: none;
}

.mat-form-field-infix {
height: inherit;
width: inherit;
border: unset;
padding: 0 0 0 8px;
}

.mat-form-field-flex {
height: inherit;
width: inherit;
}

.mat-form-field-wrapper {
height: inherit;
width: inherit;
Expand All @@ -43,6 +58,7 @@
color: $gray-5;
}
}

.mat-input-element {
@include ellipsis-overflow();
height: inherit;
Expand Down

0 comments on commit 0490e53

Please sign in to comment.