Opened 5 weeks ago
Last modified 5 weeks ago
#66231 assigned enhancement
Reconcile styles of data tables (WP_List_Table, DataViews)
| Reported by: | aduth | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | admin-reskin |
| Cc: | Focuses: |
Description
Currently, the WordPress admin has two different ways of displaying tables of data: PHP-based screens like the "Posts" like use WP_List_Table, while React-based screens like the site editor ("Appearance" > "Editor") use DataViews.
Problem: As can be seen in the attached screenshots that follow, there are a number of different stylistic differences between WP_List_Table and DataViews:
- Column heading casing (sentence case in WP_List_Table, all-caps in DataViews)
- Column sort button using different icons
- Row column background (alternating white/gray in WP_List_Table, non-alternating in DataViews)
- Border styling (no borders between rows in WP_List_Table, borders in DataViews)
- Table headings placement (both at top and bottom in WP_List_Table, only at top in DataViews)
- ...and more
As part of the effort to adopt a uniform design system across the WordPress admin, these differences are problematic:
- From a user's perspective, the difference is noticeable, and they don't feel like they're part of the same product. Learning to use one style of presentation doesn't extend to the other.
- From a contributor's perspective, maintaining two different styles of tables requires duplicated styles, and it's unclear what is the singular intended appearance of tables in the admin.
Expected outcome: Align on a unified style for tables, working through differences like those listed above to come to a common approach, and implement it.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Post list using WP_List_Table