Skip to content

Commit

Permalink
Provide description for elements
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Aug 8, 2024
1 parent fd6c2a1 commit 9e71d6f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/edit-site/src/components/post-fields/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,20 @@ function usePostFields( viewType ) {
type: 'text',
editAs: 'radio',
elements: [
{ value: 'open', label: __( 'Open' ) },
{ value: 'closed', label: __( 'Closed' ) },
{
value: 'open',
label: __( 'Open' ),
description: __(
'Visitors can add new comments and replies.'
),
},
{
value: 'closed',
label: __( 'Closed' ),
description: __(
'Visitors cannot add new comments or replies. Existing comments remain visible.'
),
},
],
},
],
Expand Down

0 comments on commit 9e71d6f

Please sign in to comment.