-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ControlLabel
: refactor away from the createComponent
function
#34927
ControlLabel
: refactor away from the createComponent
function
#34927
Conversation
Size Change: 0 B Total Size: 1.06 MB ℹ️ View Unchanged
|
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.
Just noting that it might be worth looking into this components accessibility and whether it should be polymorphic or not. My gut tells me that if it's meant to be a label then it shouldn't be polymorphic.
Good point. I opened #34966 to apply the changes that you suggested |
Description
Fixes partially #34290.
How has this been tested?
Technically there should be no behavioral changes.
The project should build, the tests should pass, the component should behave as before in Storybook and in the block editor.
Types of changes
Refactor
Checklist:
*.native.js
files for terms that need renaming or removal).