Skip to content

Commit

Permalink
Fix mistakes found in review
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp committed Mar 2, 2023
1 parent cb1b42d commit cf06a9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/form-token-field/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The `value` property is handled in a manner similar to controlled form component
- `__experimentalShowHowTo` - If false, the text on how to use the select (ie: _Separate with commas or the Enter key._) will be hidden.
- `__experimentalValidateInput` - If passed, all introduced values will be validated before being added as tokens.
- `__experimentalAutoSelectFirstMatch` - If true, the select the first matching suggestion when the user presses the Enter key (or space when tokenizeOnSpace is true).
- `__nextHasNoMarginBottom` - Start opting into the new margin-free styles that will become the default in a future version, currently scheduled to be WordPress 6.4. (The prop can be safely removed once this happens.)
- `__nextHasNoMarginBottom` - Start opting into the new margin-free styles that will become the default in a future version, currently scheduled to be WordPress 6.5. (The prop can be safely removed once this happens.)

## Usage

Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/form-token-field/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function FormTokenField( props: FormTokenFieldProps ) {
} = props;

if ( ! __nextHasNoMarginBottom ) {
deprecated( 'Bottom margin styles for wp.blockEditor.URLInput', {
deprecated( 'Bottom margin styles for wp.components.FormTokenField', {
since: '6.2',
version: '6.5',
hint: 'Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version',
Expand Down Expand Up @@ -729,7 +729,7 @@ export function FormTokenField( props: FormTokenFieldProps ) {
{ __experimentalShowHowTo && (
<StyledHelp
id={ `components-form-token-suggestions-howto-${ instanceId }` }
className="components-base-control__help"
className="components-form-token-field__help"
__nextHasNoMarginBottom
>
{ tokenizeOnSpace
Expand Down

0 comments on commit cf06a9e

Please sign in to comment.