Make 'Rows Per Table' <select> accessible (https://github.com/woocommerce/woocommerce-admin/pull/1674)
This commit is contained in:
parent
a3e4955f74
commit
55336a9874
|
@ -95,7 +95,9 @@ class Leaderboards extends Component {
|
|||
},
|
||||
];
|
||||
return (
|
||||
<EllipsisMenu label={ __( 'Choose which leaderboards to display', 'wc-admin' ) }>
|
||||
<EllipsisMenu
|
||||
label={ __( 'Choose which leaderboards to display and the number of rows', 'wc-admin' ) }
|
||||
>
|
||||
<Fragment>
|
||||
<MenuTitle>{ __( 'Leaderboards', 'wc-admin' ) }</MenuTitle>
|
||||
{ allLeaderboards.map( leaderboard => {
|
||||
|
@ -109,9 +111,9 @@ class Leaderboards extends Component {
|
|||
</MenuItem>
|
||||
);
|
||||
} ) }
|
||||
<MenuTitle>{ __( 'Rows Per Table', 'wc-admin' ) }</MenuTitle>
|
||||
<SelectControl
|
||||
className="woocommerce-ellipsis-menu__item"
|
||||
className="woocommerce-dashboard__dashboard-leaderboards__select"
|
||||
label={ <MenuTitle>{ __( 'Rows Per Table', 'wc-admin' ) }</MenuTitle> }
|
||||
value={ rowsPerTable }
|
||||
options={ Array.from( { length: 20 }, ( v, key ) => ( {
|
||||
v: key + 1,
|
||||
|
|
|
@ -8,4 +8,12 @@
|
|||
border: 1px solid $core-grey-light-700;
|
||||
height: 34px;
|
||||
}
|
||||
.woocommerce-dashboard__dashboard-leaderboards__select {
|
||||
.components-base-control__field {
|
||||
padding: 0 12px 4px;
|
||||
}
|
||||
.woocommerce-ellipsis-menu__title {
|
||||
padding: 10px 0 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue