carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.87k stars 1.82k forks source link

[Bug]: Stories for notification components showing incorrect examples #18139

Open AlanGreene opened 1 day ago

AlanGreene commented 1 day ago

Package

@carbon/react

Browser

No response

Package version

1.71.0

React version

No response

Description

The 'Overview' document for each of the Notification variants in the Storybook shows the same doc content. This leads to an issue with the code examples that are displayed. The titles of the examples suggest it should show each of the 3 variants (actionable, inline, toast), but all 3 actually show examples of the selected variant only.

i.e. when viewing the 'Overview' page for the ActionableNotification component, all 3 examples show an instance of the ActionableNotification.

Actionable: https://react.carbondesignsystem.com/?path=/docs/components-notifications-actionable--overview Image

Inline: https://react.carbondesignsystem.com/?path=/docs/components-notifications-inline--overview Image

Toast: https://react.carbondesignsystem.com/?path=/docs/components-notifications-toast--overview Image

Reproduction/example

See links to Storybook in description

Steps to reproduce

View the Storybook links and scroll to the examples at the bottom of those pages.

Suggested Severity

None

Application/PAL

No response

Code of Conduct