Skip to content

Commit 95ed96e

Browse files
committed
Allow role of string
1 parent 28b438b commit 95ed96e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

packages/component/src/ReactWebChat.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ import Composer, { ComposerProps } from './Composer';
1212
// - They can run hooks outside of activity/attachment middleware
1313
// - They will put <Composer> as very top of their page, and allow buttons on their existing page to send message to bot
1414

15-
// Subset of landmark roles: https://w3.org/TR/wai-aria/#landmark_roles
16-
const ARIA_LANDMARK_ROLES = ['complementary', 'contentinfo', 'form', 'main', 'region'];
17-
1815
type ReactWebChatProps = Readonly<
1916
Omit<ComposerProps, 'children'> & {
20-
className?: string;
21-
role?: 'complementary' | 'contentinfo' | 'form' | 'main' | 'region';
17+
className?: string | undefined;
18+
role?: string | undefined;
2219
}
2320
>;
2421

0 commit comments

Comments
 (0)