Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f
### Documentation

- Converted `Form`, `Frame`, and `Loading` examples to functional components ([#2130](https://github.com/Shopify/polaris-react/pull/2130))
- Replaced Latin abbreviations with English words in Text field content guidelines ([#2192](https://github.com/Shopify/polaris-react/pull/2192))

### Development workflow

Expand Down
7 changes: 4 additions & 3 deletions src/components/TextField/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,18 @@ input. Field placeholder text should:

- Be used only for supplementary information because the text has low contrast and is not visible when text is entered
- Be written as examples instead of instructions
- Include “e.g.” before an example
- Include “Example:” before an example

<!-- usagelist -->

#### Do

- e.g. FALLSALE
- Example: FALLSALE

#### Don’t

- Name your discount code
- e.g. FALLSALE

<!-- end -->

Expand Down Expand Up @@ -424,7 +425,7 @@ function PlaceholderExample() {
label="Shipping zone name"
value={textFieldValue}
onChange={handleTextFieldChange}
placeholder="e.g. North America, Europe"
placeholder="Example: North America, Europe"
/>
);
}
Expand Down