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

[IconButton][material-next] Copy IconButton to material-next #39945

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

mj12albert
Copy link
Member

@mj12albert mj12albert commented Nov 21, 2023

Part of #39943

This PR copies IconButton to material-next with minimal changes

@mj12albert mj12albert added component: icon button This is the name of the generic UI component, not the React module! v6.x labels Nov 21, 2023
@mui-bot
Copy link

mui-bot commented Nov 21, 2023

Netlify deploy preview

https://deploy-preview-39945--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 697c5d1

@mj12albert mj12albert force-pushed the copy-material-next-icon-button branch 4 times, most recently from 7e4034c to def1505 Compare November 22, 2023 08:03
Comment on lines +8 to +9
import ButtonBase from '@mui/material/ButtonBase';
import { iconButtonClasses as classes } from '@mui/material/IconButton';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Importing these from material-next right now now will fail most of the tests because of focusRipple being dropped from ButtonBase, easier to keep them as-is instead of adding .skip() to a bunch of tests

import { alpha } from '@mui/system';
import styled from '../styles/styled';
import useThemeProps from '../styles/useThemeProps';
import ButtonBase from '../ButtonBase';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also cannot import from material-next yet due to focusRipple

@mj12albert mj12albert marked this pull request as ready for review November 22, 2023 08:53
Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@mj12albert mj12albert merged commit 6d602bc into mui:master Nov 23, 2023
19 checks passed
@mj12albert mj12albert deleted the copy-material-next-icon-button branch November 23, 2023 01:38
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Nov 30, 2023
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Dec 1, 2023
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Dec 1, 2023
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Dec 6, 2023
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Dec 6, 2023
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Dec 6, 2023
@DiegoAndai DiegoAndai added v7.x and removed v6.x labels Dec 26, 2023
@DiegoAndai DiegoAndai added this to the Material UI: v7 draft milestone Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: icon button This is the name of the generic UI component, not the React module! v7.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants