-
Notifications
You must be signed in to change notification settings - Fork 8
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
Styling and custom component for DataGrid
panels
#3033
Conversation
c845d36
to
376ff70
Compare
376ff70
to
bd69a80
Compare
bd69a80
to
72065da
Compare
adf5ad9
to
3500fcb
Compare
dbc52be
to
6391cd7
Compare
6391cd7
to
acc4df0
Compare
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.
It seems like you're doing a lot of workarounds just to make it backwards compatible. Would it be easier if this PR would target next?
I wouldn't really call it workarounds, it's basically just two different things:
I suppose we could remove part of the theme-styling in Or is there something specific you mean? |
You're right, they aren't really workarounds, sorry.
I was mostly thinking about this: <IntlProvider locale="en" messages={getMessages()}>
<IntlContext.Consumer>
{(intl) => (
<MuiThemeProvider theme={getTheme(intl)}>{/* ... */}</MuiThemeProvider>
)}
</IntlContext.Consumer>
</IntlProvider> It's odd that we need to do this in every application. In |
Actually, having to define the messages in the theme in the application code seems like a workaround to me 😁 |
In In |
905e315
to
3d7f9a8
Compare
@johnnyomair as discussed, I removed the custom |
Description
This implements theme-styling of the filter and column panels to more closely match the comet design.
No changes in the application are needed for this to take effect.
This also implements a custom
DataGridPanel
component which improves on the styling and enables the full-screen/mobile variants of the panels defined by the comet design.Due to
@comet/admin-theme
not having a dependency on@comet/admin
the new component must be added to the applications theme manually. This will be changed inv8
, as the@comet/admin-theme
package is being merged into the@comet/admin
package with #3479Example theme:
src/theme.ts
:Acceptance criteria
Screenshots
Custom
DataGridPanel
(preferred - needs to be added in the theme)MUIs default GridPanel (works out of the box)
Changed to be made in separate tasks/PRs:
createCometTheme()
– this may require merging the@comet/admin-theme
into the@comet/admin
package COM-1649Further information