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

Adjust table row default height to 44px #2595

Merged
merged 7 commits into from
Dec 19, 2022

Conversation

mark-drastrup
Copy link
Contributor

Which issue does this PR close?

This PR closes #2553

What is the new behavior?

The table cells now have a padding and a height to ensure that the default height of the table row is 44px. The cell height will still grow if the content is higher.

Does this PR introduce a breaking change?

  • Yes
  • No

Are there any additional context?

In #2553 it is suggested to use min-height. As far as I can see min-height cannot be used cannot be used to table elements, and therefore I have used height instead.

Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Reminders

  • Make sure you have implemented tests following the guidelines in: "The good: Test".
  • Make sure you have updated the cookbook with examples and showcases (for bug fixes, enhancements & new components).

Review

  • Do a self-review.
  • Request that the changes are code-reviewed
  • Request that the changes are UX reviewed (only necessary if your PR introduces visual changes)

When the pull request has been approved it will be merged to develop by Team Kirby.

@github-actions github-actions bot temporarily deployed to pr-2553-data-table-row-height November 10, 2022 06:52 Inactive
@github-actions github-actions bot temporarily deployed to pr-2553-data-table-row-height November 11, 2022 07:51 Inactive
@@ -40,7 +40,8 @@ th {
}

td {
padding: utils.size('s');
height: 44px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be good to quickly investigate if we expect additional table cell heights in the future. Then we could add this to variables similar to item-heights:

$item-heights: (
  m: 56px,
  s: 44px,
  xs: 32px,
) !default;

Or even modify the name of that one if they should be similar!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@RasmusKjeldgaard we still haven't received any response whether we expect additional table cel height in the future or not. Should we push for a response or should we add it later, if it becomes necessary? :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let us extract it to a variable and get on with it! :D

@github-actions github-actions bot temporarily deployed to pr-2553-data-table-row-height November 29, 2022 08:09 Inactive
@github-actions github-actions bot temporarily deployed to pr-2553-data-table-row-height December 19, 2022 10:14 Inactive
@mark-drastrup mark-drastrup merged commit 561dcc5 into develop Dec 19, 2022
@mark-drastrup mark-drastrup deleted the enhancement/2553-data-table-row-height branch December 19, 2022 10:21
@mark-drastrup mark-drastrup added the feature Add this PR to the changelog as a feature label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Add this PR to the changelog as a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Kirby Data Table Row Height
2 participants