Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tlouisse committed Jan 14, 2025
1 parent 90f2a79 commit 8997332
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ui/components/input-amount/src/LionInputAmount.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export class LionInputAmount extends LocalizeMixin(LionInput) {
this._inputNode.setAttribute('inputmode', 'decimal');

this._viewInputNode.addEventListener('focus', this.#swapInputsOnFocus);
this._viewInputNode?.setAttribute('aria-hidden', 'true');
this._inputNode.addEventListener('blur', this.#showViewInput);
this.#showViewInput();
this._viewInputNode?.classList.add('form-control');
Expand All @@ -130,6 +131,7 @@ export class LionInputAmount extends LocalizeMixin(LionInput) {

#showViewInput = () => {
this._viewInputNode.style.display = '';
// todo: sr only for a11y
this._inputNode.style.display = 'none';
};

Expand Down

0 comments on commit 8997332

Please sign in to comment.