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

Components: Assess stabilization of __unstableInputWidth #63586

Open
mirka opened this issue Jul 15, 2024 · 0 comments
Open

Components: Assess stabilization of __unstableInputWidth #63586

mirka opened this issue Jul 15, 2024 · 0 comments
Labels
[Package] Components /packages/components [Type] Enhancement A suggestion for improvement.

Comments

@mirka
Copy link
Member

mirka commented Jul 15, 2024

What problem does this address?

Several components (e.g. InputControl and family) have a __unstableInputWidth prop, which has been experimental for very long. This prop is required for labelPosition="edge" to work (labelPosition is a stable prop).

SelectControl has a labelPosition prop, but the "edge" option cannot be utilized correctly because the __unstableInputWidth prop is not exposed.

It's also important to note that the labelPosition prop is barely used, aside from "top" which is the default. There are only two use cases in the Gutenberg app (both are "edge"). There is not a strong need for this feature.

__unstableInputWidth itself, independent of labelPosition, is used a little bit more. But still not a lot.

What is your proposed solution?

Assess if we really want to stabilize this, or if we would prefer consumers to do custom layouts in a more modular way.

@mirka mirka added [Type] Enhancement A suggestion for improvement. [Package] Components /packages/components labels Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

1 participant