From 62ec8913be26bafcbe93c62afbcc8a2db6a40c6d Mon Sep 17 00:00:00 2001 From: Nik Tsekouras Date: Mon, 30 Oct 2023 12:25:28 +0200 Subject: [PATCH] [Data views]: Update icons and design tweaks (#55391) * [Data views]: Update icons and design tweaks * Button variants * tooltips * spacing * fix pagination from conflicts * pagination at the bottom of the frame * fix styles --------- Co-authored-by: James Koster --- .../src/components/dataviews/dataviews.js | 2 +- .../src/components/dataviews/pagination.js | 127 ++++++++---------- .../src/components/dataviews/style.scss | 15 ++- .../src/components/dataviews/view-grid.js | 7 +- 4 files changed, 70 insertions(+), 81 deletions(-) diff --git a/packages/edit-site/src/components/dataviews/dataviews.js b/packages/edit-site/src/components/dataviews/dataviews.js index cf3515f9947c4..a4e8a5524cceb 100644 --- a/packages/edit-site/src/components/dataviews/dataviews.js +++ b/packages/edit-site/src/components/dataviews/dataviews.js @@ -35,7 +35,7 @@ export default function DataViews( { }, [ fields ] ); return (
- + - { label } - - } - value={ view.perPage } - options={ PAGE_SIZE_VALUES.map( ( pageSize ) => ( { - value: pageSize, - label: pageSize, - } ) ) } - onChange={ ( value ) => - onChangeView( { ...view, perPage: value, page: 1 } ) - } - /> - ); -} - -// For now this is copied from the patterns list Pagination component, because -// the datatable pagination starts from index zero(`0`). Eventually all lists will be -// using this one. function Pagination( { view, onChangeView, @@ -71,29 +37,37 @@ function Pagination( { } { !! totalItems && ( - - - + + - +