File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
src/design-system/side-drawer Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,16 @@ export const Header = ({
3232 </ Flex >
3333 ) }
3434 < Flex justifyContent = "center" w = "$fill" >
35- < Text . Body . Large weight = "$bold" > { text } </ Text . Body . Large >
35+ < Text . Body . Large weight = "$bold" data-testid = "drawer-header-title" >
36+ { text }
37+ </ Text . Body . Large >
3638 </ Flex >
3739 < Flex w = "$40" >
3840 < Close >
39- < NavigationButtons . Close onClick = { onCloseClick } />
41+ < NavigationButtons . Close
42+ onClick = { onCloseClick }
43+ data-testid = "drawer-header-close-button"
44+ />
4045 </ Close >
4146 </ Flex >
4247 </ Flex >
Original file line number Diff line number Diff line change @@ -13,10 +13,16 @@ export const Headline = ({
1313 description,
1414} : Readonly < Props > ) : JSX . Element => (
1515 < Box >
16- < Text . SubHeading weight = "$bold" > { title } </ Text . SubHeading >
16+ < Text . SubHeading weight = "$bold" data-testid = "drawer-title" >
17+ { title }
18+ </ Text . SubHeading >
1719 { description !== undefined && (
1820 < Box mt = "$8" >
19- < Text . Body . Normal color = "secondary" weight = "$medium" >
21+ < Text . Body . Normal
22+ color = "secondary"
23+ weight = "$medium"
24+ data-testid = "drawer-subtitle"
25+ >
2026 { description }
2127 </ Text . Body . Normal >
2228 </ Box >
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export const Content = ({
2323 < Backdrop zIndex = { zIndex } />
2424 </ Dialog . Overlay >
2525 < Dialog . Content
26+ data-testid = "drawer-content"
2627 { ...props }
2728 className = { classNames ( cx . container ) }
2829 style = { { zIndex : zIndex === undefined ? undefined : zIndex + 1 } }
You can’t perform that action at this time.
0 commit comments