-
Notifications
You must be signed in to change notification settings - Fork 31
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
Design: Tables #107
Comments
org/ssb |
Time has come to close this issue! 🥳 In about October last year (according to the history here), we had a refinement meeting and I suggested splitting this issue into three components; I'm pretty sure I've read through everything here now (including #298, which describes Comments on specific requirements above
Done
Currently remaining/related
|
Design: Tables
To cover the service owner needs from 7273 we will create a new table component with the possibility of adding both static and editable cells.
The tables should be used only when the information requires it:
Design sprint tasks
Tasks that need to be done beforehand
Remaning tasks
Suggested scope
There is no way that this component wont be a huge undertaking for the developers, but to minimize it a little we want to scope it down. So for the first version of the table we will not focus on the repeating aspect of table. (Letting the user add and remove rows themself.)
Features we want to support in first version:
New : Support static fields in table: Described in #8491
WCAG Requirements - The component must meet all relevant requirements from WCAG.
Validation - If there are any validation rules, we need to follow the WCAG guidelines on how to help the user correct the fields that are failing.
Responsiveness - The table should work on all screen sizes with horizontal scroll in first version.
Read-only table - Present tabular data in a table that is not editable.
Editable table - The users should be able to edit the cells in the table. The cells should support inputfields, right-aligned inputfields (for numbers), dropdown (select) and checkboxes.
Combination of read-only and editable cells- Some cells will be pre-filled with data that the user cant edit. There needs to be a good visual indication on what cells the user can edit, and the cells that are read-only.
Summation row - One or more rows that show the calculation based on other values in the table. Should be presented as read-only fields and can be a row or a column. Do they need to be read-only fields? Take another look at this!
Header cells - Up to two tier headers. The first table example here is a good example of what we need to support
Dynamics - Use dynamics to hide rows or columns that are are not important to the user. clarification: Should also be able to handle single rows.
Prefilled rows - Use a datasource to create the number of rows needed. You should also be able to set a value as the row header. (The column to the left)
Features we are not supporting in this version
Figma sketches
https://www.figma.com/file/wnBveAG2ikUspFsQwM3GNE/Altinn-Studio-Apps?node-id=14756%3A10448
Design for first scope
Table example with:
Validerignsmeldinger_tabell.mov
Table example with:
tabell_med_maksimert_modal.mov
Table example with:
Table example with:
Dynamiske.tabeller.mov
Table example with:
dynamisk_mobil.mov
mobile-view.mov
Design for next scope
Table example with:
addingAndDelitingRows.mov
If you want to encourage the user to make changes to the table, it should be set to edit mode by default. If the table has pre-filled data and the user is not to be prompted to edit, it can be set to view mode. The user will then have to press "Edit" to be able to make changes.
Table example with:
Table example with:
Detailed specification
Cell sizing
The cells should as default have flexible witdh, and there should be a way to set a minimum width for each of the columns.
Breakpoints
Text adjustments
Different start-modes for advanced table
Table Guidelines
The text was updated successfully, but these errors were encountered: