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

Add default elements for table node types #232

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Add default elements for table node types #232

merged 2 commits into from
Feb 5, 2024

Conversation

connor-baer
Copy link
Owner

Closes #213.

Purpose

Contentful added support for tables to Rich Text a while ago. While it's already been possible to render tables using overrides, this PR adds default elements to support tables out of the box.

Approach and changes

  • Added default elements for the table node types:
    • BLOCKS.TABLE: <table><tbody>...</tbody></table>
    • BLOCKS.TABLE_ROW: <tr>
    • BLOCKS.TABLE_HEADER_CELL: <th>
    • BLOCKS.TABLE_CELL: <td>

@connor-baer connor-baer added the ready to merge This change is ready to be merged label Feb 5, 2024
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b51e7aa) 99.08% compared to head (297d2d9) 99.11%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #232      +/-   ##
==========================================
+ Coverage   99.08%   99.11%   +0.02%     
==========================================
  Files          13       14       +1     
  Lines         219      225       +6     
  Branches       62       63       +1     
==========================================
+ Hits          217      223       +6     
  Misses          2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kodiakhq kodiakhq bot merged commit 29460ae into main Feb 5, 2024
@kodiakhq kodiakhq bot deleted the feature/tables branch February 5, 2024 15:59
@github-actions github-actions bot mentioned this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge This change is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plans for table types support
1 participant