-
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
COM-394: Automatically generate className
for component slots with createComponentSlot()
#1809
COM-394: Automatically generate className
for component slots with createComponentSlot()
#1809
Conversation
1aaa82b
to
149b3fa
Compare
All props previously passed are now inside the `ownerState` object, which is already prevented from being added to the DOM.
…not be present at all
The `size` prop was only intended to be used to control the padding, not to be passed to MUIs Button.
b17e883
to
f50f7d6
Compare
className
for component slots when using createSlot
className
for component slots when using createSlot
className
for component slots when using createSlot()
className
for component slots when using createSlot()
className
for component slots with createSlot()
@johnnyomair FYI I'm not really sure how to fix the types in the lines with the However the usage of the |
docs/docs/comet-core-development/create-admin-components-with-theme-support.md
Outdated
Show resolved
Hide resolved
packages/admin/blocks-admin/src/blocks/common/AdminComponentButton.tsx
Outdated
Show resolved
Hide resolved
className
for component slots with createSlot()
className
for component slots with createComponentSlot()
packages/admin/admin/src/common/toolbar/backbutton/ToolbarBackButton.tsx
Show resolved
Hide resolved
packages/admin/blocks-admin/src/blocks/common/AdminComponentButton.tsx
Outdated
Show resolved
Hide resolved
We should pair on this. I can't determine the errors by reading the code alone. 😁 |
3a18e50
into
feature/refactor-admin-component-theming
E.g. the
Root
slot ofMainContent
will now alway the classNameCometAdminMainContent-root
.If the
fullHeight
prop is set to true, the classNameCometAdminMainContent-fullHeight
also will be added.This was previously done automatically, when using
withStyles()
from the legacy@mui/styles
package, which was removed during the theming refactor: #1376This now matches the behavior of Comet-Admin components before the theming refactor and MUI components.