Skip to content

Commit f247b1b

Browse files
committed
Polish
1 parent ee3e114 commit f247b1b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

projects/packages/forms/src/blocks/field-select/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ import save from './save';
1010
const name = 'field-select';
1111
const settings = {
1212
...defaultSettings,
13+
allowedBlocks: [ 'jetpack/label', 'jetpack/dropdown' ],
1314
title: __( 'Dropdown field', 'jetpack-forms' ),
1415
keywords: [
1516
__( 'Choose', 'jetpack-forms' ),
1617
__( 'Dropdown', 'jetpack-forms' ),
1718
__( 'Option', 'jetpack-forms' ),
19+
__( 'Select', 'jetpack-forms' ),
1820
],
1921
description: __(
2022
'Add a compact select box, that when expanded, allows visitors to choose one value from the list.',

projects/packages/forms/src/blocks/input/edit.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ const InputEdit = ( { attributes, clientId, isSelected, name, setAttributes, con
5757
return (
5858
<div { ...blockProps }>
5959
<RichText
60+
aria-label={ __( 'Dropdown text', 'jetpack-forms' ) }
61+
disableLineBreaks
62+
identifier="placeholder"
6063
allowedFormats={ ALLOWED_FORMATS }
6164
onChange={ value => setAttributes( { placeholder: value } ) }
6265
value={ placeholder ? placeholder : __( 'Select one option', 'jetpack-forms' ) }

0 commit comments

Comments
 (0)