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
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ th {
}

td {
padding: utils.size('s');
height: 44px;
RasmusKjeldgaard marked this conversation as resolved.
Show resolved Hide resolved
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

padding: utils.size('xxxs') utils.size('s');
font-weight: utils.font-weight('normal');
font-size: utils.font-size('s');
color: utils.get-text-color('black');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('TableComponent', () => {

it('should style [tbody] cells correctly', () => {
expect(element.children.namedItem('tbody').firstChild.firstChild).toHaveComputedStyle({
padding: `${size('s')}`,
padding: `${size('xxxs')} ${size('s')}`,
'font-weight': fontWeight('normal'),
'font-size': fontSize('s'),
color: getTextColor('black'),
Expand Down