-
Notifications
You must be signed in to change notification settings - Fork 3
Remove some unused exports from ol-components #1844
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
Conversation
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.
Nice tidy up!
const ErrorContainer = styled(Container)(({ theme }) => ({ | ||
backgroundColor: theme.custom.colors.white, | ||
borderRadius: "8px", | ||
marginTop: "4rem", | ||
padding: "16px", | ||
boxShadow: | ||
"1px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)", | ||
})) |
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.
Are these part of the design system and could be their own component / card variant or are they left over from before the Smoot treatment or just default Mui styles?
The error page and no search results may be the only instances.
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.
The box shadow there is a style from MuiCard.
Rather than importing MuiCard in main
, I just copied the boxshadow to preserve the existing behavior.
</Stack> | ||
{channel.data ? <ChannelDetails channel={channel.data} /> : null} | ||
</BannerContent> | ||
</Container> | ||
</StyledBannerBackground> | ||
<Container component="section"> | ||
<Container id="foo" component="section"> |
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.
foo
for testing?
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.
yep. Oops
* chore: remove unused exports * remove muidialog from ol-components * remove box usage * remove mui cards * fix a test * remove testing id
What are the relevant tickets?
For https://github.com/mitodl/hq/issues/6039
Description (What does it do?)
This cleans up
ol-components
mui re-exports a bit:MuiCard
and friends. This is still used inol-widgets
, where it's just imported from mui directly.How can this be tested?
/c/unit/ocw
or any other channel page. The subscribe button should be in same spot./search?q=gdjslkghafkaghafdklhdafsbk
the "Not found" card should look the same/kjgoidsh
the "Not Found" error page should look the same.