Skip to content

Commit b13e40a

Browse files
authored
fix(OfferList): disable expand on a row (#6488)
1 parent bdf0992 commit b13e40a

5 files changed

Lines changed: 1013 additions & 23 deletions

File tree

.changeset/twelve-years-see.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/ui": patch
3+
---
4+
5+
`OfferList`: disabled expand button on a row when `expandable={false}`

packages/ui/src/compositions/OfferList/__stories__/Expandable.stories.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import { columns, data } from './resources'
66
export const Expandable: StoryFn<ComponentProps<typeof OfferList>> = props => (
77
<OfferList {...props} expandable>
88
{data.map(planet => (
9-
<OfferList.Row expandable="expand content" id={planet.id} key={planet.id} offerName={planet.id}>
9+
<OfferList.Row
10+
expandable={planet.id === 'mars' ? false : 'Expand content'}
11+
id={planet.id}
12+
key={planet.id}
13+
offerName={planet.id}
14+
>
1015
<OfferList.Cell>{planet.name}</OfferList.Cell>
1116
<OfferList.Cell>{planet.perihelion}AU</OfferList.Cell>
1217
<OfferList.Cell>{planet.aphelion}AU</OfferList.Cell>

0 commit comments

Comments
 (0)