Skip to content

Commit

Permalink
[ACS-8021] Inputs for comments (#9722)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikiwanekhyland authored and VitoAlbano committed Jul 1, 2024
1 parent 34d01d0 commit df2319f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/core/src/lib/comments/comments.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
</div>
<div *ngIf="!readOnly" class="adf-comments-input-container adf-comments-divider">
<mat-form-field>
<mat-label>{{'COMMENTS.ADD' | translate}}</mat-label>
<textarea
matInput
id="comment-input"
class="adf-text-text-area"
[placeholder]='"COMMENTS.ADD" | translate'
[attr.aria-label]="'COMMENTS.ADD' | translate"
[(ngModel)]="message"
(keydown.escape)="clearMessage($event)"
Expand Down
30 changes: 25 additions & 5 deletions lib/core/src/lib/comments/comments.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,34 @@ adf-comments {
width: 100%;
padding-bottom: 8px;

#{$mat-form-field} {
width: 100%;
}

#{$mat-form-field-subscript-wrapper} {
display: none;
}

#{$mat-form-field-wrapper} {
#{$mat-form-field-flex} {
#{$mat-form-field-infix} {
padding-bottom: 2px;
padding-top: 25px;
}
}

#{$mat-input-element} {
&:focus::placeholder {
color: var(--theme-primary-color);
-webkit-font-smoothing: subpixel-antialiased;
}
}
}

textarea {
resize: vertical;
height: 20px;
}

#{$mat-form-field} {
width: 100%;
}
}
}

Expand All @@ -32,7 +52,7 @@ adf-comments {
}

.adf-comments-input-actions {
padding-top: 4px;
padding-top: 16px;
display: flex;
justify-content: flex-end;
}
Expand Down

0 comments on commit df2319f

Please sign in to comment.