-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Add SimpleFormConfigurable component #8395
Conversation
fzaninotto
commented
Nov 15, 2022
•
edited
Loading
edited
We need the button to be able to break out of overflow:hidden elements, and there is no other way but to use a popover for that.
sx={{ | ||
display: 'block', | ||
'&.RaConfigurable-editMode': { | ||
margin: '2px', |
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.
MAde necessary because the outline is invisible for elements used as children of Paper, which has overflow:hidden
useSetInspectorTitle('ra.inspector.datagrid', { _: 'Datagrid' }); | ||
|
||
const [availableColumns] = usePreference<ConfigurableDatagridColumn[]>( |
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.
refactored to FieldsSelector (which is also used by SimpleFormEditor
</Root> | ||
<Popover |
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.
I had to move from Badge to Popover because there is no other way to make the customize button break out of its parent container when that container has overflow:hidden
Back to WIP, I forgot unit tests |
And Ready For Review |
Co-authored-by: Aníbal Svarcas <[email protected]>
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.
Otherwise, everything seems good! It works like a charm