Skip to content

refactor: remove usage of <Box> and sx #10702

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

Merged
merged 8 commits into from
Dec 4, 2023
Merged

refactor: remove usage of <Box> and sx #10702

merged 8 commits into from
Dec 4, 2023

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Nov 14, 2023

Part of #10612

  • Use the FC type much more consistently throughout the codebase for declaring components and their prop types

  • Remove all usage of the sx prop throughout the codebase

  • Remove all usage of Box throughout the codebase

  • Break lots of inline type definitions out into their own declarations

  • Make some small css styles inline and break some bigger ones out into const declarations

@aslilac aslilac requested review from a team and Parkreiner and removed request for a team November 21, 2023 23:19
@aslilac aslilac changed the title refactor: start removing <Box> and sx refactor: remove usage of <Box> and sx Nov 22, 2023
Copy link
Member

@Parkreiner Parkreiner left a comment

Choose a reason for hiding this comment

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

Looks really good! Nothing worth blocking over, but I did flag what are likely a few styling bugs/typos

@@ -142,6 +142,8 @@ rules:
- name: "@mui/material/Typography"
message:
"You should use the native HTML elements as span, p, h1, h2, h3..."
- name: "@mui/material/Box"
message: "You should use a <div> instead"
Copy link
Member

Choose a reason for hiding this comment

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

Small suggestion: I feel like the phrasing should push people to see if they can use a more semantic HTML element instead

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought about that, but I don't know how to word it in a way that fits in one line nicely. can definitely change it later!

@github-actions github-actions bot added the stale This issue is like stale bread. label Nov 30, 2023
@github-actions github-actions bot closed this Dec 3, 2023
@aslilac aslilac reopened this Dec 4, 2023
@aslilac aslilac removed the stale This issue is like stale bread. label Dec 4, 2023
@aslilac aslilac merged commit 185400d into main Dec 4, 2023
@aslilac aslilac deleted the no-sx branch December 4, 2023 19:09
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants