Skip to content

Commit

Permalink
Fixed #10591 - Add p-inputwrapper class to form components
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 7, 2021
1 parent 1e16354 commit b6676c5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const AUTOCOMPLETE_VALUE_ACCESSOR: any = {
])
],
host: {
'class': 'p-element',
'class': 'p-element p-inputwrapper',
'[class.p-inputwrapper-filled]': 'filled',
'[class.p-inputwrapper-focus]': '(focus && !disabled) || overlayVisible'
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export interface LocaleSettings {
])
],
host: {
'class': 'p-element',
'class': 'p-element p-inputwrapper',
'[class.p-inputwrapper-filled]': 'filled',
'[class.p-inputwrapper-focus]': 'focus'
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/cascadeselect/cascadeselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export class CascadeSelectSub implements OnInit {
])
],
host: {
'class': 'p-element',
'class': 'p-element p-inputwrapper',
'[class.p-inputwrapper-filled]': 'filled',
'[class.p-inputwrapper-focus]': 'focused || overlayVisible'
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/chips/chips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const CHIPS_VALUE_ACCESSOR: any = {
</div>
`,
host: {
'class': 'p-element',
'class': 'p-element p-inputwrapper',
'[class.p-inputwrapper-filled]': 'filled',
'[class.p-inputwrapper-focus]': 'focus'
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class DropdownItem {
])
],
host: {
'class': 'p-element',
'class': 'p-element p-inputwrapper',
'[class.p-inputwrapper-filled]': 'filled',
'[class.p-inputwrapper-focus]': 'focused || overlayVisible'
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/inputnumber/inputnumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const INPUTNUMBER_VALUE_ACCESSOR: any = {
encapsulation: ViewEncapsulation.None,
styleUrls: ['./inputnumber.css'],
host: {
'class': 'p-element',
'class': 'p-element p-inputwrapper',
'[class.p-inputwrapper-filled]': 'filled',
'[class.p-inputwrapper-focus]': 'focused'
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class MultiSelectItem {
])
],
host: {
'class': 'p-element',
'class': 'p-element p-inputwrapper',
'[class.p-inputwrapper-filled]': 'filled',
'[class.p-inputwrapper-focus]': 'focus || overlayVisible'
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/password/password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export const Password_VALUE_ACCESSOR: any = {
])
],
host: {
'class': 'p-element',
'class': 'p-element p-inputwrapper',
'[class.p-inputwrapper-filled]': 'filled()',
'[class.p-inputwrapper-focus]': 'focused'
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/treeselect/treeselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const TREESELECT_VALUE_ACCESSOR: any = {
])
],
host: {
'class': 'p-element',
'class': 'p-element p-inputwrapper',
'[class.p-inputwrapper-filled]': '!emptyValue',
'[class.p-inputwrapper-focus]': 'focused || overlayVisible'
},
Expand Down

0 comments on commit b6676c5

Please sign in to comment.