Skip to content

Commit

Permalink
Feedback Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Dec 20, 2024
1 parent d68f305 commit 83da3d2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* WordPress dependencies
*/
import { CheckboxControl } from '@wordpress/components';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
Expand Down Expand Up @@ -30,7 +31,8 @@ export default function DataViewsSelectionCheckbox< Item >( {
const checked = ! disabled && selection.includes( id );

// Fallback label to ensure accessibility
const selectionLabel = titleField?.getValue?.( { item } ) || 'Select item';
const selectionLabel =
titleField?.getValue?.( { item } ) || __( '(no title)' );

return (
<CheckboxControl
Expand Down

0 comments on commit 83da3d2

Please sign in to comment.