Skip to content

Commit ed09d54

Browse files
authored
fix(app): fix scrollbar style on LPC results table on ODD (#15164)
Closes RQA-2529
1 parent 21f917f commit ed09d54

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

app/src/organisms/LabwarePositionCheck/ResultsSummary.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react'
2-
import styled from 'styled-components'
2+
import styled, { css } from 'styled-components'
33
import { useSelector } from 'react-redux'
44
import isEqual from 'lodash/isEqual'
55
import { useTranslation } from 'react-i18next'
@@ -25,6 +25,7 @@ import {
2525
JUSTIFY_SPACE_BETWEEN,
2626
LocationIcon,
2727
MODULE_ICON_NAME_BY_TYPE,
28+
OVERFLOW_AUTO,
2829
PrimaryButton,
2930
RESPONSIVENESS,
3031
SPACING,
@@ -155,7 +156,17 @@ export const ResultsSummary = (
155156
<Flex
156157
flexDirection={DIRECTION_COLUMN}
157158
maxHeight="20rem"
158-
overflowY="scroll"
159+
css={css`
160+
overflow-y: ${OVERFLOW_AUTO};
161+
&::-webkit-scrollbar {
162+
width: 0.75rem;
163+
background-color: transparent;
164+
}
165+
&::-webkit-scrollbar-thumb {
166+
background: ${COLORS.grey50};
167+
border-radius: 11px;
168+
}
169+
`}
159170
>
160171
<Header>{t('new_labware_offset_data')}</Header>
161172
{isLabwareOffsetCodeSnippetsOn ? (

0 commit comments

Comments
 (0)