Skip to content
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

Merged
merged 6 commits into from
Jun 18, 2024

Conversation

emeryro
Copy link
Contributor

@emeryro 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

Copy link

github-actions bot commented May 28, 2024

@github-actions github-actions bot temporarily deployed to pull request June 11, 2024 11:07 Inactive
@@ -28,7 +40,15 @@ const getArgTypes = () => ({
},
});

const prepareData = (data, args) => Object.assign(data, args);
const prepareData = (data, args) => {
Copy link
Contributor

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.

Copy link
Contributor

@planctus planctus left a 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

@github-actions github-actions bot temporarily deployed to pull request June 17, 2024 12:40 Inactive
@github-actions github-actions bot temporarily deployed to pull request June 17, 2024 12:50 Inactive
@planctus
Copy link
Contributor

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".. :)

@github-actions github-actions bot temporarily deployed to pull request June 18, 2024 06:53 Inactive
@github-actions github-actions bot temporarily deployed to pull request June 18, 2024 08:25 Inactive
@planctus planctus self-requested a review June 18, 2024 08:32
@planctus planctus merged commit 68b412d into v4-dev Jun 18, 2024
7 checks passed
@planctus planctus deleted the FRONT-4437-table-header branch June 18, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants