File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,14 @@ export let Popover = props => {
72
72
) : (
73
73
props . header
74
74
) }
75
- < div className = { computedBodyClassnames } id = { bodyUniqueId } >
75
+ < div className = { computedBodyClassnames }
76
+ id = { bodyUniqueId }
77
+ { ...props . size === "small" && {
78
+ tabindex : "0" ,
79
+ role : "region" ,
80
+ } }
81
+ >
76
82
{ props . children }
77
- < button type = "button" > Click here</ button >
78
83
</ div >
79
84
{ props . footer ? (
80
85
< footer
Original file line number Diff line number Diff line change @@ -63,7 +63,13 @@ export let Popover = props => {
63
63
/>
64
64
) : null }
65
65
66
- < div className = { computedBodyClassnames } id = { bodyUniqueId } >
66
+ < div className = { computedBodyClassnames }
67
+ id = { bodyUniqueId }
68
+ { ...props . size === "small" && {
69
+ tabindex : "0" ,
70
+ role : "region" ,
71
+ } }
72
+ >
67
73
{ props . badgeTitle ? (
68
74
< div className = "slds-popover__meta" >
69
75
{ props . badgeVariant && props . badgeVariant === 'light' ? (
@@ -106,7 +112,6 @@ export let Popover = props => {
106
112
) }
107
113
108
114
{ props . children }
109
- < button type = "button" > Click here</ button >
110
115
</ div >
111
116
</ div >
112
117
</ div >
You can’t perform that action at this time.
0 commit comments