Skip to content

[TimePicker] Migrate ClockPicker to emotion#26389

Merged
mnajdova merged 15 commits into
mui:nextfrom
siriwatknp:clock-picker-emotion
May 21, 2021
Merged

[TimePicker] Migrate ClockPicker to emotion#26389
mnajdova merged 15 commits into
mui:nextfrom
siriwatknp:clock-picker-emotion

Conversation

@siriwatknp

@siriwatknp siriwatknp commented May 20, 2021

Copy link
Copy Markdown
Member

Closes #24405 🎉

@siriwatknp siriwatknp added the component: TimePicker The React component. label May 20, 2021
@mui-pr-bot

mui-pr-bot commented May 20, 2021

Copy link
Copy Markdown

Details of bundle changes (experimental)

@material-ui/lab: parsed: +0.08% , gzip: -0.10% 😍

Generated by 🚫 dangerJS against c5e5760

Comment thread packages/material-ui-lab/src/ClockPicker/ClockPicker.tsx
Comment thread packages/material-ui-lab/src/themeAugmentation/overrides.d.ts
@siriwatknp
siriwatknp marked this pull request as ready for review May 20, 2021 10:48
Comment thread packages/material-ui-lab/src/ClockPicker/ClockPicker.tsx Outdated
Comment thread packages/material-ui-lab/src/ClockPicker/ClockPicker.tsx
@siriwatknp
siriwatknp requested a review from mnajdova May 21, 2021 06:05
refInstanceof: window.HTMLDivElement,
muiName: 'MuiClockPicker',
// cannot test reactTestRenderer because of required context
testRootOverrides: null,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This component does not have root slot.

Comment thread test/utils/describeConformanceV5.js Outdated
}
});

it("respect theme's styleOverrides specific slot", function test() {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

add new test for specific slot. @mnajdova should it be another PR or this PR is fine?

@mnajdova mnajdova May 21, 2021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's handle this in a separate PR. We can disable this test for the component with Todo and handle it in a follow up. I wouldn't add this logic in the describeConformance as it is not a conformant thing :)

@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label May 21, 2021
@github-actions github-actions Bot added PR: out-of-date The pull request has merge conflicts and can't be merged. and removed PR: out-of-date The pull request has merge conflicts and can't be merged. labels May 21, 2021
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label May 21, 2021
@mnajdova

Copy link
Copy Markdown
Member

Not totally sure on these points

  • sx prop in not needed because there is no Root slot.
  • skip themeDefaultProps and themeVariants test because the implementation does not spread the props.

Testing
@mnajdova Because this component is public but no root slot, so need to update themeStyleOverrides test in describeConformanceV5 to be able to exclude testRootOverrides and test specific slot.

We should not make describeConformance friendly for testing things which are not conformant. I've skipped the themeStyleOverrides, we should fix this separately.

Now that this is the last component from the migration to @emotion (good job for taking this to the finish line @siriwatknp), we can revisit the code debt that we left, by resolving the Todos.

Comment thread test/utils/describeConformanceV5.js

@mnajdova mnajdova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Last one done 🎉 great work @siriwatknp

@mnajdova
mnajdova merged commit 79f8dce into mui:next May 21, 2021
@zannager zannager added the scope: pickers Changes related to the date/time pickers. label Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: TimePicker The React component. scope: pickers Changes related to the date/time pickers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate all components to emotion

4 participants