Skip to content

Commit 4bbc0d7

Browse files
committed
Add role=button to container divs
1 parent c544c8c commit 4bbc0d7

6 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/Chatwoot/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const Provider = ({ color }: Props): JSX.Element | null => {
4646
return (
4747
<div>
4848
<div
49+
role="button"
4950
aria-label="Load Chat"
5051
aria-busy="true"
5152
aria-live="polite"

src/components/Drift/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const Drift = ({
7575
<div style={positionStyles}>
7676
<div style={styles.container}>
7777
<div
78+
role="button"
7879
aria-label="Load Chat"
7980
aria-busy="true"
8081
aria-live="polite"
@@ -97,7 +98,7 @@ const Drift = ({
9798
height="20"
9899
viewBox="0 0 20 20"
99100
focusable="false"
100-
aria-hidden="true"
101+
aria-hid den="true"
101102
style={{
102103
display: state === 'initial' ? 'initial' : 'none'
103104
}}

src/components/HelpScout/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ const HelpScout = ({
208208
}}
209209
>
210210
<button
211+
role="button"
211212
aria-label="Load Chat"
212213
aria-busy="true"
213214
aria-live="polite"

src/components/Intercom/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const Intercom = ({ color }: Props): JSX.Element | null => {
108108
>
109109
<div style={styles.region}>
110110
<div
111+
role="button"
111112
aria-label="Load Chat"
112113
aria-busy="true"
113114
aria-live="polite"

src/components/Messenger/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const Widget = ({ color }: { color: string }): JSX.Element | null => {
7575
return (
7676
<div
7777
style={styles}
78+
role="button"
7879
aria-label="Load Chat"
7980
aria-busy="true"
8081
aria-live="polite"

src/components/Userlike/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const Userlike = ({
6868
return (
6969
<div style={{ ...styles.container, ...positionStyles, ...shapeStyle }}>
7070
<button
71+
role="button"
7172
aria-label="Load Chat"
7273
aria-busy="true"
7374
aria-live="polite"

0 commit comments

Comments
 (0)