-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: list and table to be an actual table in dom (#4535)
* refactor: list and table to be an actual table in dom * refactor: list and table * fix: adding the column width elements * fix: improve accessibility * fix: table and list * fix: expandable content
- Loading branch information
1 parent
519b9b6
commit 612316c
Showing
24 changed files
with
9,445 additions
and
9,311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
"@ultraviolet/ui": minor | ||
--- | ||
|
||
Refactoring of `<List />` and `<Table />` components: | ||
|
||
### List | ||
|
||
List used to be a bunch of `div` with different `role` to work like a table but it suffered from columns issues if not correctly set. | ||
It now uses a real `table` element and `thead` and `tbody` to correctly handle columns and rows. | ||
Each elements uses `display: table-*` to correctly handle columns and rows. | ||
The expandable is tricked, by adding a new `tr` on click and a `transform` to move it up under the clicked row. | ||
|
||
### Table | ||
|
||
Table was correctly using `table` element but the columns were not correctly handled. | ||
It now uses `display: table-*` for each elements of the table. | ||
The expandable is an added `tr` under the clicked row. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.