Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove extra wording in form #1831

Merged
merged 2 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/blocks/blocks/countdown/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ const Inspector = ({
) }

<BoxControl
label={ __( 'Border Radius', 'otter-blocks' ) }
label={ __( 'Radius', 'otter-blocks' ) }
values={
mergeBoxDefaultValues(
attributes.borderRadiusBox,
Expand Down
16 changes: 8 additions & 8 deletions src/blocks/blocks/flip/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ const Inspector = ({
( 'front' === currentSide && ! Boolean( attributes.isInverted ) ) || ( 'back' === currentSide && Boolean( attributes.isInverted ) ) ? (
<Fragment>
<BaseControl
label={ __( 'Vertical Alignment', 'otter-blocks' ) }
label={ __( 'Vertical', 'otter-blocks' ) }
>
<ToogleGroupControl

Expand All @@ -314,7 +314,7 @@ const Inspector = ({
</BaseControl>

<BaseControl
label={ __( 'Horizontal Alignment', 'otter-blocks' ) }
label={ __( 'Horizontal', 'otter-blocks' ) }
>
<ToogleGroupControl
options={[
Expand All @@ -339,7 +339,7 @@ const Inspector = ({
</Fragment>
) : (
<BaseControl
label={ __( 'Vertical Alignment', 'otter-blocks' ) }
label={ __( 'Vertical', 'otter-blocks' ) }
>
<ToogleGroupControl

Expand Down Expand Up @@ -544,19 +544,19 @@ const Inspector = ({
{
value: attributes.borderColor,
onChange: borderColor => setAttributes({ borderColor }),
label: __( 'Border Color', 'otter-blocks' ),
label: __( 'Border', 'otter-blocks' ),
isShownByDefault: false
},
{
value: attributes.titleColor,
onChange: titleColor => setAttributes({ titleColor }),
label: __( 'Title Color', 'otter-blocks' ),
label: __( 'Title', 'otter-blocks' ),
isShownByDefault: false
},
{
value: attributes.descriptionColor,
onChange: descriptionColor => setAttributes({ descriptionColor }),
label: __( 'Description Color', 'otter-blocks' ),
label: __( 'Description', 'otter-blocks' ),
isShownByDefault: false
}
] }
Expand All @@ -567,7 +567,7 @@ const Inspector = ({
initialOpen={ false }
>
<BoxControl
label={ __( 'Border Width', 'otter-blocks' ) }
label={ __( 'Width', 'otter-blocks' ) }
values={
mergeBoxDefaultValues(
numberToBox( attributes.borderWidth ),
Expand All @@ -584,7 +584,7 @@ const Inspector = ({

<BoxControl
id="o-border-raduis-box"
label={ __( 'Border Radius', 'otter-blocks' ) }
label={ __( 'Radius', 'otter-blocks' ) }
values={
mergeBoxDefaultValues(
numberToBox( attributes.borderRadius ),
Expand Down
8 changes: 4 additions & 4 deletions src/blocks/blocks/form/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ const Inspector = ({

<AutoDisableSyncAttr attributes={ attributes } attr={'inputBorderRadius'}>
<BoxControl
label={ __( 'Border Radius', 'otter-blocks' ) }
label={ __( 'Radius', 'otter-blocks' ) }
values={ ! isObjectLike( attributes.inputBorderRadius ) ? makeBox( _px( attributes.inputBorderRadius ?? 4 ) ) : attributes.inputBorderRadius }
onChange={ inputBorderRadius => setAttributes({ inputBorderRadius }) }
id="o-border-raduis-box"
Expand All @@ -993,7 +993,7 @@ const Inspector = ({

<AutoDisableSyncAttr attributes={ attributes } attr={'inputBorderWidth'}>
<BoxControl
label={ __( 'Border Width', 'otter-blocks' ) }
label={ __( 'Width', 'otter-blocks' ) }
values={ ! isObjectLike( attributes.inputBorderWidth ) ? makeBox( _px( attributes.inputBorderWidth ?? 1 ) ) : attributes.inputBorderWidth }
onChange={ inputBorderWidth => setAttributes({ inputBorderWidth }) }
/>
Expand Down Expand Up @@ -1021,7 +1021,7 @@ const Inspector = ({

<AutoDisableSyncAttr attributes={ attributes } attr={ 'helpFontSize' }>
<BaseControl
label={ __( 'Helper Text Size', 'otter-blocks' ) }
label={ __( 'Helper Text', 'otter-blocks' ) }
>
<FontSizePicker
fontSizes={ defaultFontSizes }
Expand All @@ -1034,7 +1034,7 @@ const Inspector = ({

<AutoDisableSyncAttr attributes={ attributes } attr={ 'messageFontSize' }>
<BaseControl
label={ __( 'Success/Error Message Size', 'otter-blocks' ) }
label={ __( 'Success/Error Message', 'otter-blocks' ) }
>
<FontSizePicker
fontSizes={ defaultFontSizes }
Expand Down
4 changes: 2 additions & 2 deletions src/blocks/blocks/icon-list/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const Inspector = ({
initialOpen={ false }
>
<BaseControl
label={ __( 'Font Size', 'otter-blocks' ) }
label={ __( 'Font', 'otter-blocks' ) }
__nextHasNoMarginBottom={ true }

// help={ __( 'The size of the font size of the content and icon.', 'otter-blocks' ) }
Expand Down Expand Up @@ -256,7 +256,7 @@ const Inspector = ({
</BaseControl>

<BaseControl
label={ __( 'Icon Size', 'otter-blocks' ) }
label={ __( 'Icon', 'otter-blocks' ) }
__nextHasNoMarginBottom={ true }

//help={ __( 'The size of the font size of the content and icon.', 'otter-blocks' ) }
Expand Down
4 changes: 2 additions & 2 deletions src/blocks/blocks/icon-list/item/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ const Inspector = ({
{
value: attributes.contentColor,
onChange: contentColor => setAttributes({ contentColor }),
label: __( 'Content Color', 'otter-blocks' ),
label: __( 'Content', 'otter-blocks' ),
isShownByDefault: true
},
...( 'image' !== attributes.library ? [
{
value: attributes.iconColor,
onChange: iconColor => setAttributes({ iconColor }),
label: __( 'Icon Color', 'otter-blocks' ),
label: __( 'Icon', 'otter-blocks' ),
isShownByDefault: true
}
] : [])
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/blocks/popup/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ const Inspector = ({

<BoxControl
id="o-border-raduis-box"
label={ __( 'Border Radius', 'otter-blocks' ) }
label={ __( 'Radius', 'otter-blocks' ) }
values={ attributes.borderRadius ?? { top: '0px', bottom: '0px', left: '0px', right: '0px' } }
onChange={ value => {
setAttributes({
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/blocks/review/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ const Inspector = ({
/>

<BaseControl
label={ __( 'Content Font Size', 'otter-blocks' ) }
label={ __( 'Content', 'otter-blocks' ) }
>
<FontSizePicker
fontSizes={ defaultFontSizes }
Expand Down
8 changes: 4 additions & 4 deletions src/blocks/blocks/tabs/group/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,22 +331,22 @@ const Inspector = ({
},
{
value: attributes.activeTitleBackgroundColor,
label: __( 'Active Title Tackground', 'otter-blocks' ),
label: __( 'Active Title Background', 'otter-blocks' ),
slug: 'activeTitleBackgroundColor'
},
{
value: attributes.titleColor ?? attributes.tabColor ?? 'white',
label: __( 'Title Color', 'otter-blocks' ),
label: __( 'Title', 'otter-blocks' ),
slug: 'titleColor'
},
{
value: attributes.activeTitleColor,
label: __( 'Active Title Color', 'otter-blocks' ),
label: __( 'Active Title', 'otter-blocks' ),
slug: 'activeTitleColor'
},
{
value: attributes.contentTextColor,
label: __( 'Content Text Color', 'otter-blocks' ),
label: __( 'Content Text', 'otter-blocks' ),
slug: 'contentTextColor'
},
{
Expand Down
Loading