Skip to content

Commit

Permalink
fix: add ariaLabelledBy attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
legallai committed Jul 2, 2024
1 parent ed16c4a commit 7b03e77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ember-amount-input/src/components/amount-input.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
placeholder={{this.placeholder}}
disabled={{@disabled}}
readonly={{@readonly}}
aria-labelledby={{@ariaLabelledBy}}
{{on 'keydown' this.onKeyDown}}
{{on 'input' this.onInput}}
{{on 'paste' this.onPaste}}
Expand Down
5 changes: 5 additions & 0 deletions ember-amount-input/src/components/amount-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ const KEY_FULLSTOP = '.';
const KEY_COMMA = ',';

export interface AmountInputArgs {
/**
* The arial label for the input
*/
ariaLabelledBy?: string;

/**
* The currency displayed in the input
*/
Expand Down

0 comments on commit 7b03e77

Please sign in to comment.