-
Notifications
You must be signed in to change notification settings - Fork 23
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
Adjust table row default height to 44px #2595
Conversation
libs/designsystem/src/lib/components/data-table/table/table.component.scss
Outdated
Show resolved
Hide resolved
@@ -40,7 +40,8 @@ th { | |||
} | |||
|
|||
td { | |||
padding: utils.size('s'); | |||
height: 44px; |
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.
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!
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.
@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? :)
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.
Let us extract it to a variable and get on with it! :D
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?
Are there any additional context?
In #2553 it is suggested to use
min-height
. As far as I can seemin-height
cannot be used cannot be used to table elements, and therefore I have usedheight
instead.Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Reminders
Review
When the pull request has been approved it will be merged to
develop
by Team Kirby.