-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Components: Set AnglePickerControl Storybook Label Control type to text #45122
Components: Set AnglePickerControl Storybook Label Control type to text #45122
Conversation
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
63f4859
to
cb8dc81
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Size Change: 0 B Total Size: 1.28 MB ℹ️ View Unchanged
|
Rebased in the hope that e2e checks will pass |
cb8dc81
to
af1f8fc
Compare
af1f8fc
to
7b2006c
Compare
packages/components/CHANGELOG.md
Outdated
@@ -29,6 +29,7 @@ | |||
- `withFocusReturn`: Refactor tests to `@testing-library/react` ([#45012](https://github.com/WordPress/gutenberg/pull/45012)). | |||
- `ToolsPanel`: updated to satisfy `react/exhaustive-deps` eslint rule ([#45028](https://github.com/WordPress/gutenberg/pull/45028)) | |||
- `Tooltip`: updated to ignore `react/exhaustive-deps` eslint rule ([#45043](https://github.com/WordPress/gutenberg/pull/45043)) | |||
- `AnglePickerControl`: Set Storybook Label control type to 'text' ([#45122](https://github.com/WordPress/gutenberg/pull/45122)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need to move this to the Unreleased
section of the changelog (this feedback applies to all currently open PRs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this PR, done in dd2de2c
Failing React Native e2e tests are not related, merging |
fixes #45081
What?
Set AnglePickerControl Storybook Label Control type to text
Why?
Because this component isn't typed, Storybook was assuming this control would be an object, which caused a React error.
How?
Specifying the
argType
in the Story avoids the assumption by StorybookTesting Instructions
Launch Storybook locally and test the
AnglePickerControl
component.On the Controls tab, click the
Set String
button for theLabel
controlScreenshots or screencast