-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[test] Test all Base components with describeConformanceUnstyled #34825
Merged
michaldudak
merged 6 commits into
mui:master
from
michaldudak:describeConformanceUnstyled-in-base
Oct 20, 2022
Merged
[test] Test all Base components with describeConformanceUnstyled #34825
michaldudak
merged 6 commits into
mui:master
from
michaldudak:describeConformanceUnstyled-in-base
Oct 20, 2022
Conversation
This file contains 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
|
5a4e341
to
8564736
Compare
mnajdova
approved these changes
Oct 20, 2022
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 👍
daniel-rabe
pushed a commit
to daniel-rabe/material-ui
that referenced
this pull request
Nov 29, 2022
feliperli
pushed a commit
to jesrodri/material-ui
that referenced
this pull request
Dec 6, 2022
@wallace-sf Could you please open a new issue and create a reproduction on codesandbox? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking change
component: modal
This is the name of the generic UI component, not the React module!
component: Popper
The React component. See <Popup> for the latest version.
component: TextareaAutosize
The React component.
package: base-ui
Specific to @mui/base
test
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.
Unstyled Modal and Popper weren't using all relevant
describeConformanceUnstyled
's tests and TextareaAutosize was still using Material UI'sdescribeConformance
to test basic behavior. This PR fixes these issues.An issue with the Unstyled Modal was found along the way. It incorrectly prioritized
slots.root
overcomponent
. Fixing this is a breaking change in Base, however, it should not affect most developers, as setting bothcomponent
andslots.root
makes no sense.This change doesn't affect the Material UI's Modal as it has its own logic for choosing between
slots.root
andcomponent
.This PR also improves how
describeConformanceUnstyled
works with portaled components and improves error display in the ownerStatePropagation test.Breaking change
Prior to this change, if both
component
andslots.root
were defined,slots.root
would be used. After this PR,component
will be chosen in this case.There are no use cases for having both
component
andslots.root
defined at the same time. Remove one of them to reduce confusion.