-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[BottomNavigation] Remove wrapper
from BottomNavigationAction
#26923
Conversation
### BottomNavigationAction | ||
|
||
- `span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui-org/material-ui/pull/26666). |
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.
### BottomNavigationAction | |
- `span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui-org/material-ui/pull/26666). | |
- Remove the `span` element that wraps the children. Remove the `wrapper` classKey too. More details about [this change](https://github.com/mui-org/material-ui/pull/26666). |
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.
No objections to reverse the approach, one header by React component instead of UI component, but maybe the change should be done all at once, in a batch 🤷♂️
wrapper
from BottomNavigationActionwrapper
from BottomNavigationAction
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
@@ -547,6 +547,19 @@ You can use the [`moved-lab-modules` codemod](https://github.com/mui-org/materia | |||
+<BottomNavigation onChange={(event: React.SyntheticEvent) => {}} /> | |||
``` | |||
|
|||
- Remove the `span` element that wraps the children. Remove the `wrapper` classKey too. More details about [this change](https://github.com/mui-org/material-ui/pull/26666). |
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.
I think it's confusing linking different PR here. Let's update the current PR descirption with the details of why the changes was introduced and link this PR in the migration guide.
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.
See one comment before merging. Apart from that looks great 👍
BREAKING CHANGE
[BottomNavigation] Remove wrapper from BottomNavigationAction ([BottomNavigation] Remove
wrapper
from BottomNavigationAction #26923) @siriwatknpspan
element that wraps children has been removed.wrapper
classKey is also removed. More details about this change.WHY the wrapper is removed
button > span > children
exists as a workaround for flex container bug on button BUT not anymore, so this PR remove the span.https://github.com/philipwalton/flexbugs#flexbug-9
fix one of breaking changes #20012.
Preview: https://deploy-preview-26923--material-ui.netlify.app/components/bottom-navigation/