Skip to content

Commit 206b478

Browse files
Legacy: For consitency, switch to tui style for label and description in legacy fields
1 parent e4f1c32 commit 206b478

13 files changed

Lines changed: 33 additions & 20 deletions

File tree

assets/build/beaver-builder/index.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/default/index.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/elementor/index.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/example.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/index.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/build/wp/index.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/src/components/base/field/Description.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Description = ({
1111
const content = props.content ?? children
1212
return(
1313
<Wrapper>
14-
<div className="tf-description" { ...descriptionProps }>
14+
<div className="tf-description tui-field__helper" { ...descriptionProps }>
1515
{ content }
1616
</div>
1717
</Wrapper>

assets/src/components/base/field/Label.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ const Label = ({
1111
const content = props.content ?? children
1212
return(
1313
<Wrapper>
14-
<label className='tf-label' { ...labelProps } htmlFor={ parent?.name ?? '' }>
15-
{ content }
14+
<label
15+
className='tf-label tui-field__label'
16+
{ ...labelProps }
17+
htmlFor={ parent?.name ?? '' }
18+
>
19+
{content}
1620
</label>
1721
</Wrapper>
1822
)
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
.tf-label {
2-
@include label;
2+
display: flex;
3+
margin-bottom: $label-spacer;
34
}
45

56
.tf-description {
6-
@include description;
7+
display: flex;
8+
margin-top: $description-margin-top;
9+
margin-bottom: $description-margin-bottom;
710
}

assets/src/components/base/tab/Tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const RowTitle = props => (
9696

9797
const RowLabel = props => (
9898
<div className={ 'tf-tab-row-title ' + (props.className ?? '') }>
99-
<span className='tf-label'>
99+
<span className='tf-label tui-field__label'>
100100
{ props.children }
101101
</span>
102102
</div>

0 commit comments

Comments
 (0)