Skip to content

Commit

Permalink
feat: updated input on calculator for better accessibility (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
perco12 authored Sep 26, 2023
1 parent cb4ba4d commit cd574dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/modal/v2/parts/Calculator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,11 @@ const Calculator = ({ setExpandedState, calculator, aprDisclaimer }) => {
aria-required="true"
className={`input ${displayValue === '' && country === 'US' ? 'empty-input' : ''}`}
placeholder={currencyFormat(inputPlaceholder).replace(/(\s?€)/g, '')}
type="tel"
type="text"
value={displayValue}
onInput={onInput}
onKeyDown={onKeyDown}
inputmode="tel"
/>
</div>
<div aria-live="polite">{renderError(error || emptyState || isLoading)}</div>
Expand Down

0 comments on commit cd574dd

Please sign in to comment.