Skip to content

Commit b84d04f

Browse files
committed
refactor: less invasive select in pagination
1 parent 23be046 commit b84d04f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

packages/dm-core-plugins/src/common/Pagination/Pagination.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import {
2-
Button,
3-
EdsProvider,
4-
Icon,
5-
NativeSelect,
6-
Typography,
7-
} from '@equinor/eds-core-react'
1+
import { Button, EdsProvider, Icon, Typography } from '@equinor/eds-core-react'
82
import { chevron_left, chevron_right } from '@equinor/eds-icons'
93
import { useMemo } from 'react'
104
import { Stack } from '..'
@@ -49,17 +43,20 @@ export function Pagination(props: PaginationProps) {
4943
<Typography variant='label' group='input'>
5044
Rows per page:{' '}
5145
</Typography>
52-
<NativeSelect
46+
<select
5347
id='rowsPerPage'
54-
label=''
5548
value={rowsPerPage}
5649
onChange={(event) => setRowsPerPage(Number(event.target.value))}
57-
style={{ width: '70px' }}
50+
style={{
51+
background: 'none',
52+
border: 'none',
53+
width: '3rem',
54+
}}
5855
>
5956
{paginationSizes.map((amount) => (
6057
<option key={amount}>{amount}</option>
6158
))}
62-
</NativeSelect>
59+
</select>
6360
</Stack>
6461
<Stack spacing={0.5} alignItems='center'>
6562
<Typography variant='meta'>

0 commit comments

Comments
 (0)