Skip to content

Commit bb8f1ee

Browse files
ENGCOM-6915: Changing input phone type to tel in Contact, Error Report and Customer widget pages #25321
- Merge Pull Request #25321 from rafaelstz/magento2:feature/tel-input-contact - Merged commits: 1. 5a6cf6f 2. 1a9efbe 3. 43bb56c 4. 3cf19d7 5. 10b1c41 6. 9b3ca3d 7. 0a21e6c 8. 48fb620 9. c299f03 10. 3240b46
2 parents a25c107 + 3240b46 commit bb8f1ee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Contact/view/frontend/templates/form.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $viewModel = $block->getViewModel();
5252
title="<?= $block->escapeHtmlAttr(__('Phone Number')) ?>"
5353
value="<?= $block->escapeHtmlAttr($viewModel->getUserTelephone()) ?>"
5454
class="input-text"
55-
type="text" />
55+
type="tel" />
5656
</div>
5757
</div>
5858
<div class="field comment required">

app/code/Magento/Customer/view/frontend/templates/widget/telephone.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</span>
1515
</label>
1616
<div class="control">
17-
<input type="text"
17+
<input type="tel"
1818
name="telephone"
1919
id="telephone"
2020
value="<?= $block->escapeHtmlAttr($block->getTelephone()) ?>"

pub/errors/default/report.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<div class="field telephone">
5050
<label for="telephone" class="label">Telephone</label>
5151
<div class="control">
52-
<input type="text" name="telephone" id="telephone" value="<?= $this->postData['telephone'] ?>" title="Telephone" class="input-text" />
52+
<input type="tel" name="telephone" id="telephone" value="<?= $this->postData['telephone'] ?>" title="Telephone" class="input-text" />
5353
</div>
5454
</div>
5555
<div class="field comment">

0 commit comments

Comments
 (0)