Skip to content

Commit

Permalink
Fixed #21 - Narrow down the scope of field label
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed May 28, 2020
1 parent 0b1b0b6 commit 94e0f77
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions primeflex.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1211,12 +1211,12 @@ $fieldLabelMargin: .5em !default;
margin-bottom: $fieldMargin;
}

.p-field label {
.p-field > label {
display: inline-block;
margin-bottom: $fieldLabelMargin;
}

.p-field.p-grid label {
.p-field.p-grid > label {
margin-bottom: 0;
display: flex;
align-items: center;
Expand Down Expand Up @@ -1271,9 +1271,9 @@ $fieldLabelMargin: .5em !default;
margin-bottom: 0;
}

.p-formgroup-inline .p-field label,
.p-formgroup-inline .p-field-checkbox label,
.p-formgroup-inline .p-field-radiobutton label {
.p-formgroup-inline .p-field > label,
.p-formgroup-inline .p-field-checkbox > label,
.p-formgroup-inline .p-field-radiobutton > label {
margin-right: $fieldLabelMargin;
margin-bottom: 0;
}
Expand All @@ -1285,8 +1285,8 @@ $fieldLabelMargin: .5em !default;
align-items: center;
}

.p-field-checkbox label,
.p-field-radiobutton label {
.p-field-checkbox > label,
.p-field-radiobutton > label {
margin-left: $fieldLabelMargin;
line-height: 1;
}

0 comments on commit 94e0f77

Please sign in to comment.