From 770ac12fdec8ba9fbcd062114c2bf1945881e0d8 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Wed, 1 Dec 2021 14:31:41 -0500 Subject: [PATCH] Accessibility prop --- src/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 74d15d35..8c4fe3e1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -66,6 +66,7 @@ namespace ReactQuill { tabIndex?: number, theme?: string, value?: Value, + ariaLabel: string, } export interface UnprivilegedEditor { @@ -127,6 +128,7 @@ class ReactQuill extends React.Component { 'onKeyPress', 'onKeyDown', 'onKeyUp', + 'ariaLabel', ] static defaultProps = { @@ -480,6 +482,7 @@ class ReactQuill extends React.Component { onKeyPress={this.props.onKeyPress} onKeyDown={this.props.onKeyDown} onKeyUp={this.props.onKeyUp} + aria-label={this.props.ariaLabel} > {this.renderEditingArea()}