mirror of
https://github.com/desktop/desktop
synced 2024-09-19 16:12:20 +00:00
Add aria-label option to text box component
This commit is contained in:
parent
720a5fb542
commit
f6b23e4f68
|
@ -68,6 +68,9 @@ export interface ITextBoxProps {
|
|||
|
||||
/** Indicates if input field applies spellcheck */
|
||||
readonly spellcheck?: boolean
|
||||
|
||||
/** Optional aria-label attribute */
|
||||
readonly ariaLabel: string
|
||||
}
|
||||
|
||||
interface ITextBoxState {
|
||||
|
@ -255,6 +258,7 @@ export class TextBox extends React.Component<ITextBoxProps, ITextBoxState> {
|
|||
tabIndex={this.props.tabIndex}
|
||||
onContextMenu={this.onContextMenu}
|
||||
spellCheck={this.props.spellcheck === true}
|
||||
aria-label={this.props.ariaLabel}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue