-
Notifications
You must be signed in to change notification settings - Fork 13
feat(data-grid): support dynamic row height (VIV-1602) #1641
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
Changes from all commits
d631245
0d30443
0363fc6
3b620d9
1749a63
8c21348
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -15,8 +15,10 @@ | |||||
@use '../../../../shared/src/lib/sass/mixins/appearance' as appearance; | ||||||
@use '../../../../shared/src/lib/sass/mixins/focus' as focus; | ||||||
@use '../../../../shared/src/lib/sass/mixins/focus' as focus-variables; | ||||||
@use './partials/variables' as variables; | ||||||
|
||||||
:host { | ||||||
block-size: 100%; // Only needed for older WebKit browsers | ||||||
min-inline-size: 80px; | ||||||
} | ||||||
|
||||||
|
@@ -31,11 +33,15 @@ | |||||
display: flex; | ||||||
box-sizing: border-box; | ||||||
align-items: center; | ||||||
padding: 8px 12px; | ||||||
padding: 14px 12px; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
14px is not on the 8px scale... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The value is taken from the current design in Figma. I've asked Ayala to comment on it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it will be a breaking change as cell has min-height of 48px, so it can be either way. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it will be a breaking change as cell has min-height of 48px, so it can be either way. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but I think the padding should always be the same There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AyalaBu ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the padding should be left 14px |
||||||
border-bottom: 1px solid var(#{constants.$vvd-color-neutral-300}); | ||||||
block-size: #{size.$vvd-size-expanded}; | ||||||
block-size: var( | ||||||
#{variables.$data-grid-cell-block-size}, | ||||||
#{size.$vvd-size-expanded} | ||||||
); | ||||||
color: var(#{appearance.get-appearance-token(text)}); | ||||||
font: var(#{constants.$vvd-typography-base}); | ||||||
min-block-size: #{size.$vvd-size-expanded}; | ||||||
|
||||||
:host(:focus-visible) & { | ||||||
#{focus-variables.$focus-stroke-gap-color}: transparent; | ||||||
|
@@ -58,7 +64,7 @@ slot { | |||||
overflow: hidden; | ||||||
inline-size: 100%; | ||||||
text-overflow: ellipsis; | ||||||
white-space: nowrap; | ||||||
white-space: var(#{variables.$data-grid-cell-white-space}, nowrap); | ||||||
} | ||||||
|
||||||
.header-icon { | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
$data-grid-row-background: --data-grid-row-background; | ||
$data-grid-cell-block-size: --data-grid-cell-block-size; | ||
$data-grid-cell-white-space: --data-grid-cell-white-space; |
Uh oh!
There was an error while loading. Please reload this page.