You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds operative Storybook controls to every TimePicker story for both @carbon/react and @carbon/web-components. The default and layered stories now share the same control surface where applicable, include action logging for supported events, and use realistic example content.
Changelog
New
Added shared TimePicker Storybook args and argTypes for React stories.
Added shared TimePicker Storybook args and argTypes for Web Components stories.
Added React action controls for onBlur, onChange, and onClick.
Added Web Components action logging for the change event.
Changed
Wired React Default and _WithLayer stories to use the same operative controls.
Wired Web Components Default and WithLayer stories to use the same operative controls.
Added controls for value, label, placeholder, disabled, read-only, hidden label, invalid, warning, helper text, size, max length, and input type where applicable.
Updated example timezone option text from generic placeholders to realistic timezone labels.
Excluded React children from controls because it is not a useful control for this composed story example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #20960
Adds operative Storybook controls to every TimePicker story for both
@carbon/reactand@carbon/web-components. The default and layered stories now share the same control surface where applicable, include action logging for supported events, and use realistic example content.Changelog
New
onBlur,onChange, andonClick.changeevent.Changed
Defaultand_WithLayerstories to use the same operative controls.DefaultandWithLayerstories to use the same operative controls.childrenfrom controls because it is not a useful control for this composed story example.Removed
Testing / Reviewing
Use the repository Node version:
Run focused checks:
Build Storybook for both implementations:
Review React Storybook:
Components/TimePicker.Defaultexposes operative controls._WithLayerexposes the same TimePicker controls.Review Web Components Storybook:
Components/Time Picker.Defaultexposes operative controls.WithLayerexposes the same TimePicker controls.changeaction logs when the time picker changes.Test Screenshots

PR Checklist
As the author of this PR, before marking ready for review, confirm you:
Tested for cross-browser consistencyMore details can be found in the pull request guide