File tree Expand file tree Collapse file tree 1 file changed +53
-46
lines changed Expand file tree Collapse file tree 1 file changed +53
-46
lines changed Original file line number Diff line number Diff line change @@ -30,52 +30,59 @@ const NewPageChoice = ({
3030 }
3131 } , [ disabled , onClick ] ) ;
3232 return (
33- < HStack
34- flex = "1"
35- spacing = { 0 }
36- boxShadow = "lg"
37- borderRadius = "md"
38- bgColor = "white"
39- onClick = { handleClick }
40- cursor = "pointer"
41- alignItems = "stretch"
42- opacity = { disabled ? 0.5 : undefined }
43- userSelect = { disabled ? "none" : undefined }
44- _hover = { {
45- bgColor : disabled ? undefined : "brand.50" ,
46- } }
47- role = "group"
48- { ...props }
49- >
50- < Stack as = "section" py = { 5 } px = { 5 } minH = { 40 } flex = "1 1 auto" >
51- < Heading as = "h3" fontSize = "xl" >
52- { label }
53- </ Heading >
54- { children }
55- </ Stack >
56- < Box >
57- < IconButton
58- w = { 40 }
59- isDisabled = { disabled }
60- aria-label = { label }
61- bgColor = "brand.700"
62- color = "white"
63- height = "100%"
64- variant = "unstyled"
65- icon = { icon }
66- borderInlineEndRadius = "md"
67- _groupHover = { {
68- color : disabled ? undefined : "#efedf5" ,
69- } }
70- _hover = { {
71- bgColor : "brand.700" ,
72- } }
73- _disabled = { {
74- opacity : 1 ,
75- } }
76- />
77- </ Box >
78- </ HStack >
33+ < Box boxShadow = "lg" flex = "1" role = "group" >
34+ < HStack
35+ spacing = { 0 }
36+ borderRadius = "md"
37+ bgColor = "white"
38+ onClick = { handleClick }
39+ cursor = "pointer"
40+ alignItems = "stretch"
41+ opacity = { disabled ? 0.5 : undefined }
42+ userSelect = { disabled ? "none" : undefined }
43+ transitionDuration = "200ms"
44+ transitionProperty = "background-color"
45+ _hover = { {
46+ bgColor : disabled ? undefined : "brand.50" ,
47+ } }
48+ _groupFocusWithin = { {
49+ boxShadow : "outline" ,
50+ } }
51+ { ...props }
52+ >
53+ < Stack as = "section" py = { 5 } px = { 5 } minH = { 40 } flex = "1 1 auto" >
54+ < Heading as = "h3" fontSize = "xl" >
55+ { label }
56+ </ Heading >
57+ { children }
58+ </ Stack >
59+ < Box >
60+ < IconButton
61+ w = { 40 }
62+ isDisabled = { disabled }
63+ aria-label = { label }
64+ bgColor = "brand.700"
65+ color = "white"
66+ height = "100%"
67+ variant = "unstyled"
68+ icon = { icon }
69+ borderInlineEndRadius = "md"
70+ _groupHover = { {
71+ color : disabled ? undefined : "#efedf5" ,
72+ } }
73+ _focusVisible = { {
74+ boxShadow : "none" ,
75+ } }
76+ _hover = { {
77+ bgColor : "brand.700" ,
78+ } }
79+ _disabled = { {
80+ opacity : 1 ,
81+ } }
82+ />
83+ </ Box >
84+ </ HStack >
85+ </ Box >
7986 ) ;
8087} ;
8188
You can’t perform that action at this time.
0 commit comments