Skip to content

Commit

Permalink
Popover: Fix missing label of the headerTitle Close button. (WordPres…
Browse files Browse the repository at this point in the history
…s#66813)

* Popover: Fix missing label of the headerTitle Close button.

* Add changelog entry.

Co-authored-by: afercia <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored Nov 11, 2024
1 parent 55913fe commit dd042a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

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

### Bug Fixes

- `Popover`: Fix missing label of the headerTitle Close button ([#66813](https://github.com/WordPress/gutenberg/pull/66813)).

### Enhancements

- `MenuItem`: Add 40px size prop on Button ([#66596](https://github.com/WordPress/gutenberg/pull/66596)).
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/popover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
import { close } from '@wordpress/icons';
import deprecated from '@wordpress/deprecated';
import { Path, SVG } from '@wordpress/primitives';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
Expand Down Expand Up @@ -422,6 +423,7 @@ const UnforwardedPopover = (
size="small"
icon={ close }
onClick={ onClose }
label={ __( 'Close' ) }
/>
</div>
) }
Expand Down

0 comments on commit dd042a2

Please sign in to comment.