Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RadioControl: Option.description not rendering #65354

Closed
2 tasks done
Dominic-Marcelino opened this issue Sep 15, 2024 · 2 comments
Closed
2 tasks done

RadioControl: Option.description not rendering #65354

Dominic-Marcelino opened this issue Sep 15, 2024 · 2 comments
Labels
[Package] Components /packages/components

Comments

@Dominic-Marcelino
Copy link

Description

Based on Storybook we can add a description for each RadioControl option: https://wordpress.github.io/gutenberg/?path=/docs/components-radiocontrol--docs

However these will never be rendered

Step-by-step reproduction instructions

  1. Import RadioControl from @wordpress/components
  2. Add a desciption to the options
  3. See the result: No options description is being rendered
<InspectorControls>
  <PanelBody title="TEST" initialOpen={true}>
    <RadioControl
      help="This is a general help section"
      label="Post visibility"
      onChange={function noRefCheck(){}}
      options={[
        {
          description: 'This is a public post',
          label: 'Public',
          value: 'public'
        },
        {
          label: 'Private',
          value: 'private'
        },
        {
          label: 'Password Protected',
          value: 'password'
        }
      ]}
      selected="public"
    />
	</PanelBody>
</InspectorControls>

Screenshots, screen recording, code snippet

Bildschirmfoto 2024-09-15 um 16 43 08

Environment info

  • WordPress 6.6.2

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes
@Dominic-Marcelino Dominic-Marcelino added the [Type] Bug An existing feature does not function as intended label Sep 15, 2024
@t-hamano
Copy link
Contributor

Help text for individual radio options was implemented in #63751. This PR is part of Gutenberg 19.0, so it is not available in WordPress 6.6.

You will need to activate the latest Gutenberg plugin or it will be available once WordPress 6.7 is released.

@t-hamano t-hamano closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
@t-hamano t-hamano added [Package] Components /packages/components and removed [Type] Bug An existing feature does not function as intended labels Sep 16, 2024
@Dominic-Marcelino
Copy link
Author

This PR is part of Gutenberg 19.0, so it is not available in WordPress 6.6.

Thanks, totally missed this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components
Projects
None yet
Development

No branches or pull requests

2 participants