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 = ({
32
32
</ Flex >
33
33
) }
34
34
< 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 >
36
38
</ Flex >
37
39
< Flex w = "$40" >
38
40
< Close >
39
- < NavigationButtons . Close onClick = { onCloseClick } />
41
+ < NavigationButtons . Close
42
+ onClick = { onCloseClick }
43
+ data-testid = "drawer-header-close-button"
44
+ />
40
45
</ Close >
41
46
</ Flex >
42
47
</ Flex >
Original file line number Diff line number Diff line change @@ -13,10 +13,16 @@ export const Headline = ({
13
13
description,
14
14
} : Readonly < Props > ) : JSX . Element => (
15
15
< Box >
16
- < Text . SubHeading weight = "$bold" > { title } </ Text . SubHeading >
16
+ < Text . SubHeading weight = "$bold" data-testid = "drawer-title" >
17
+ { title }
18
+ </ Text . SubHeading >
17
19
{ description !== undefined && (
18
20
< 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
+ >
20
26
{ description }
21
27
</ Text . Body . Normal >
22
28
</ Box >
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export const Content = ({
23
23
< Backdrop zIndex = { zIndex } />
24
24
</ Dialog . Overlay >
25
25
< Dialog . Content
26
+ data-testid = "drawer-content"
26
27
{ ...props }
27
28
className = { classNames ( cx . container ) }
28
29
style = { { zIndex : zIndex === undefined ? undefined : zIndex + 1 } }
You can’t perform that action at this time.
0 commit comments