Skip to content

Commit

Permalink
Update: changelog and test for all tests need to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
parthVataliya16 committed Nov 19, 2024
1 parent 76da993 commit b0a9775
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Deprecations

- `Radio`: Deprecate 36px default size ([#66572](https://github.com/WordPress/gutenberg/pull/66572)).
- `FontSizePicker`: Deprecate 36px default size ([#66920](https://github.com/WordPress/gutenberg/pull/66920)).

### Enhancements

Expand All @@ -24,7 +25,6 @@

- `BorderBoxControl`: Deprecate 36px default size ([#65752](https://github.com/WordPress/gutenberg/pull/65752)).
- `BorderControl`: Deprecate 36px default size ([#65755](https://github.com/WordPress/gutenberg/pull/65755)).
- `FontSizePicker`: Deprecate 36px default size ([#66920](https://github.com/WordPress/gutenberg/pull/66920)).

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/font-size-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const UnforwardedFontSizePicker = (
maybeWarnDeprecated36pxSize( {
componentName: 'FontSizePicker',
__next40pxDefaultSize,
size: undefined,
size,
} );

return (
Expand Down
12 changes: 6 additions & 6 deletions packages/components/src/font-size-picker/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ import { render } from '@ariakit/test/react';
/**
* Internal dependencies
*/
import FontSizePicker from '../';
import _FontSizePicker from '../';
import type { FontSize } from '../types';
/**
* WordPress dependencies
*/
import { useState } from '@wordpress/element';

const FontSizePicker = (
props: React.ComponentProps< typeof _FontSizePicker >
) => <_FontSizePicker __next40pxDefaultSize { ...props } />;

const ControlledFontSizePicker = ( {
onChange,
...props
Expand Down Expand Up @@ -46,11 +50,7 @@ describe( 'FontSizePicker', () => {
const user = userEvent.setup();
const onChange = jest.fn();
await render(
<FontSizePicker
__next40pxDefaultSize
value={ value }
onChange={ onChange }
/>
<FontSizePicker value={ value } onChange={ onChange } />
);
const input = screen.getByLabelText( 'Custom' );
await user.clear( input );
Expand Down

0 comments on commit b0a9775

Please sign in to comment.