-
Notifications
You must be signed in to change notification settings - Fork 59
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
feat: Migrate Table to fiori3 #1042
Conversation
Deploy preview for fundamental-styles ready! Built with commit 0765802 |
c366982
to
950b0f8
Compare
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.
The entire table should have an outer border, 1px solid @sapUiListBorderColor
src/table.scss
Outdated
--fd-table-header-background-color: var(--fd-color-neutral-1); | ||
|
||
$fd-table-cell-padding: 0.5rem; | ||
$fd-table-header-height: 2.75rem; |
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.
Weird name for these variables because they are only used in cell selectors
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.
Naming changed
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.
-
I don't think the cells should have active state. They have hover, selected, hover+selected but didn't see the active (I might have missed it). The cells get focus tho (seen in the demo app)
-
The RTL support is "missing" - the text should not be left-aligned and the first column padding (1rem) should go to the other side
- Freeze - shouldn't we have a horizontal/vertical scroll when we freeze a certain row or column? For example, if we freeze the first column, we will be able to horizontally scroll in order to see all the columns (this is usually when we can't fit all the columns in the vw)
src/table.scss
Outdated
padding: 0 $fd-table-cell-padding; | ||
font-family: var(--sapFontFamily); | ||
font-size: var(--sapFontSize); | ||
font-weight: normal; |
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.
normal font-weight is coming with the fd-reset
|
||
&__row { | ||
transition: background-color $fd-table-transition-params; | ||
&__header { |
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.
I think your header is missing the border
src/table.scss
Outdated
font-size: var(--sapFontSize); | ||
font-weight: normal; | ||
color: inherit; | ||
vertical-align: middle; |
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.
I don't think this is doing anything
We have Fixed Column now. It's in last example, I would also add something like fixed row. The rest is fixed. I think you had a little bit outdated documentation. |
Nice work.
I'd rather consider those as extensions of basic table. |
Great work :D I would understand if this is out of scope for this PR. Other than that LGTM. |
Hi @prsdthkr, Those features with responsive behaviour are up to application specification. If user adds some Also there is responsive table example with I'm not sure what about the static, flexible, and mixed. It's not mentioned anywhere in fiori3 specs. We can add this example with dummy cells in future. Thanks for taking a look at it. |
src/table.scss
Outdated
width: 2rem; | ||
min-width: 2rem; |
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.
should be put in a variable
src/table.scss
Outdated
} | ||
} | ||
&--checkbox { | ||
width: 10px; |
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.
rem value
@stefanoScalzo Should It be considered as an issue? |
True, something to discuss because I think we need to give our components the option to not include the border for cases like this? either that or we use a class that positions the elements lower with a smaller z index to hide it, but this may not work due to some using box-shadow. We need to discuss it. |
For: Responsive Table - Pop-in Mode with Checkboxes |
there is no way to make it work on pure css, I can't wrap row/cell to label. |
Can you include Navigated Item Indicator Bar in your responsive table example please |
Filter section has compact buttons but the rest of the table is cozy - intentional? |
@mikerodonnell89 It's done by accident, I will change it |
Impressive job with the table! Once Travis is happy you can go ahead and merge it |
Looks good. I'm not sure about one visual thing. Shouldn't the checkbox in collapsed table be aligned to the top? The docs say nothing about it, but thats the case @InnaAtanasova had to cover in very similar List with checkbox layout and it looks much better. This is how it looks with checkbox aligned to the top: ( |
Related Issue
Related to #914
Descriptions
There are included
Breaking Changes
Added Class:
Modifiers:
fd-fable
+(__header/__body/__cell)
+(--no-vertical-borders/--no-horizontal-borders)
fd-table
+(__row/_cell)
+(--activable/--hoverable)
fd-table__cell--checkbox
fd-table__cell
+(--success/--error/--warning--information)
fd-table__cell--status-indicator
+(--success/--error/--warning--information)
Responsive:
fd-table__row--main
fd-table__row--secondary
Removed Classes:
Elements:
fd-table__sort-column(--asc/--desc)
fd-table__context-menu
fd-table__context-menu-label
Modifiers:
fd-table__row(--success/--error/--warning/--information)
Screenshots
Before:
After:
Please check whether the PR fulfills the following requirements
https://github.com/SAP/fundamental-styles/wiki/PR-Review-Checklist