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): Add Card Cell and hideColumns property #368

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

diogomateus
Copy link
Collaborator

What this PR does

This PR adds the hideColumns property that allows hiding a column by prop setting.
This PR adds the Card Cell variant of cell rendering.
This PR adds minor fixes to styles breaking on website.

How to test?

Please include additional context on how to test this PR.

Checklist:

  • I reviewed my own code
  • The changes align with the designs I received
    Or give a reason why this does not apply:
  • I have attached screenshot(s), video(s) or gif(s) showing that the solution is working as expected
    Or give a reason why this does not apply:
  • I have updated the task(s) status on Linear
  • All new media is optimized (images, gifs, videos)

Browser support

My code works in the following browsers:

  • Firefox
  • Chrome
  • Safari
  • Edge

type BaseCellData = BaseCellProps & { type?: undefined };
type CTACellData = CTACellProps & { type: 'CTA' };
type ButtonCellData = ButtonCellProps & { type: 'BUTTON' };
type DefaultCellProps = { colSpan?: number };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed here though?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this comment before merging. Just for consistency, we might want to add a single text on all columns or even a single boolean value.

@diogomateus diogomateus merged commit c81b0bc into main Jul 24, 2024
4 checks passed
@diogomateus diogomateus deleted the diogo/fixes-card-cell branch July 24, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants