-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Standardize innerProps and className props on customizable components #4342
Standardize innerProps and className props on customizable components #4342
Conversation
🦋 Changeset detectedLatest commit: 11aea80 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 11aea80:
|
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.
Looks good! Thanks for the quick turnaround on this.
Moving this to 3.3 because it needs more review, and 3.2 is about to be released |
@Methuselah96 I was hoping to get your thoughts on one more thing. What are your thoughts on adding Emotion labels to the Indicator components like many of the other components? This would be add consistency and I think achieves a bit more visibility especially for automated testing as there is no reliable method to identify the specific indicators to reliably trigger menu down or trigger a clear event. Here is what I have in mind for indicators.js const indicatorCSS = (label: string) => ({ ...baseCSS, label });
export const dropdownIndicatorCSS = indicatorCSS('dropdownIndicator');
export const loadingIndicatorCSS = indicatorCSS('loadingIndicator'); The indicatorSeparator and loadingIndicator can have their labels applied directly to their CSS objects, but I think the Thoughts? |
@ebonow Yeah, I'm not opposed. Looks like both Either way, it probably makes to keep the changes in a separate PR so the current changes don't get held up. |
Totally fair. I think I mistook |
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.
👍
Resolves #2909.
See #4289 (comment) for the explanation of why we spread
innerProps
to all components.This PR:
innerProps
to components that were missing them (Group
,MenuPortal
,ValueContainer
,IndicatorsContainer
).classname
prop toMenuPortal
.innerProps
spreads to be the last prop for consistency so that all props are overridable if desired.