Skip to content

Commit

Permalink
Update TextField docs (#5876)
Browse files Browse the repository at this point in the history
* Update TextField docs

* Add changeset
  • Loading branch information
aveline committed May 27, 2022
1 parent 837094a commit eb25cda
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-flies-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': patch
---

Update `TextField` docs with examples of `inputMode` virtual keyboards
6 changes: 6 additions & 0 deletions polaris-react/src/components/TextField/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ Chrome does seem to turn autocomplete off when using the value nope (or any non
- Turning off **browser autocomplete** (previously submitted values) in Chrome
- If you don't have `name` attribute and the field is not a typical autofill input (address, email, etc), use `autocomplete=off`.

### Virtual keyboard

![Examples of different number keyboards set with inputMode](/public_images/components/TextField/virtual-keyboards.png)

The `inputMode` property should be set to select the appropriate virtual keyboard for the type of data expected to be entered by the user. Above are examples of different number keyboards set with `inputMode`.

---

## Content guidelines
Expand Down

0 comments on commit eb25cda

Please sign in to comment.