-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(table): table without header - FRONT-4437 #3407
Conversation
emeryro
commented
May 28, 2024
- add a border top to the table when there is no header
- add a control in Storybook to preview it
@@ -28,7 +40,15 @@ const getArgTypes = () => ({ | |||
}, | |||
}); | |||
|
|||
const prepareData = (data, args) => Object.assign(data, args); | |||
const prepareData = (data, args) => { |
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.
this way we break the simple control, we should still return an Object.assign to get it working again.
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.
Small issue in the story introduced by this pr
right, but isn't it better actually to completely hide the "simple" control after setting in it to true when the user chooses to hide the headers ? What happens currently is that you choose to remove the headers but then you still see them in mobile because of the attribute set, which appears as "magical".. :) |