Skip to content

Commit 10ba244

Browse files
authored
feat: update styling for textarea and add new modal size (#654)
1 parent 5fdec57 commit 10ba244

File tree

4 files changed

+74
-1
lines changed

4 files changed

+74
-1
lines changed

projects/components/src/modal/modal-container.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
width: 640px;
2727
}
2828

29+
&.modal-size-large-tall {
30+
height: 800px;
31+
width: 640px;
32+
}
33+
2934
&.modal-size-medium-wide {
3035
height: 600px;
3136
width: 840px;

projects/components/src/modal/modal.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const enum ModalSize {
1414
Small = 'small',
1515
Medium = 'medium',
1616
Large = 'large',
17+
LargeTall = 'large-tall',
1718
MediumWide = 'medium-wide'
1819
}
1920

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
@import 'mixins';
2+
3+
:host {
4+
::ng-deep {
5+
&.mat-form-field {
6+
display: block;
7+
height: 100%;
8+
width: 100%;
9+
}
10+
11+
&.mat-focused {
12+
.mat-form-field-label {
13+
color: $gray-5;
14+
}
15+
}
16+
17+
.mat-form-field-underline {
18+
display: none;
19+
}
20+
21+
.mat-form-field-infix {
22+
height: inherit;
23+
width: inherit;
24+
border: unset;
25+
padding: 0 0 0 8px;
26+
}
27+
28+
.mat-form-field-flex {
29+
height: inherit;
30+
width: inherit;
31+
}
32+
33+
.mat-form-field-wrapper {
34+
height: inherit;
35+
width: inherit;
36+
padding-bottom: 0;
37+
38+
.mat-form-field-label {
39+
padding: 0 0 0 8px;
40+
line-height: initial;
41+
color: $gray-5;
42+
}
43+
}
44+
45+
.mat-input-element {
46+
height: inherit;
47+
width: inherit;
48+
margin: 0;
49+
50+
&:after {
51+
width: unset;
52+
margin: 4px;
53+
}
54+
}
55+
56+
.textarea.mat-input-element {
57+
padding: 0;
58+
margin-top: 8px;
59+
}
60+
}
61+
}
62+
63+
.textarea {
64+
height: 100%;
65+
width: 100%;
66+
}

projects/components/src/textarea/textarea.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import { LoggerService } from '@hypertrace/common';
66
styleUrls: ['./textarea.component.scss'],
77
changeDetection: ChangeDetectionStrategy.OnPush,
88
template: `
9-
<mat-form-field class="full-page">
9+
<mat-form-field class="fill-container" floatLabel="never">
1010
<textarea
11+
class="textarea"
1112
matInput
1213
[disabled]="this.disabled"
1314
[placeholder]="this.placeholder"

0 commit comments

Comments
 (0)