diff --git a/.changeset/warm-clouds-drive.md b/.changeset/warm-clouds-drive.md
new file mode 100644
index 00000000000..c250c30660f
--- /dev/null
+++ b/.changeset/warm-clouds-drive.md
@@ -0,0 +1,6 @@
+---
+'@shopify/polaris': patch
+'polaris.shopify.com': patch
+---
+
+Migrate content to polaris.shopify.com, automate example titles
diff --git a/polaris-react/src/components/AccountConnection/README.md b/polaris-react/src/components/AccountConnection/README.md
index cc43b416949..efb841054a5 100644
--- a/polaris-react/src/components/AccountConnection/README.md
+++ b/polaris-react/src/components/AccountConnection/README.md
@@ -96,7 +96,7 @@ Connect to app
## Examples
-### Default account connection
+### Default
Use to let merchants connect or disconnect their store to their third-party accounts, like Facebook.
diff --git a/polaris-react/src/components/ActionList/README.md b/polaris-react/src/components/ActionList/README.md
index 66ac040a872..5b81acab043 100644
--- a/polaris-react/src/components/ActionList/README.md
+++ b/polaris-react/src/components/ActionList/README.md
@@ -80,7 +80,7 @@ Each item in an action list should be scannable avoiding unnecessary words and a
## Examples
-### Action list in a popover
+### In a popover
Use for the least important actions so merchants aren’t distracted by secondary tasks. Can also be used for a set of actions that won’t fit in the available screen space.
@@ -133,7 +133,7 @@ function ActionListInPopoverExample() {
}
```
-### Action list with icons or image
+### With icons or image
Use when the items benefit from an associated action or image, such as a list of products.
@@ -170,7 +170,7 @@ function ActionListWithMediaExample() {
}
```
-### Action list with an icon and a suffix
+### With an icon and a suffix
Use when the items benefit from an associated action or image, such as a list of products.
@@ -212,7 +212,7 @@ function ActionListWithSuffixExample() {
}
```
-### Sectioned action list
+### With sections
Use when the items benefit from sections to help differentiate actions.
@@ -261,7 +261,7 @@ function SectionedActionListExample() {
}
```
-### Action list with destructive item
+### With destructive item
Use to visually indicate that an action list item is destructive.
@@ -312,7 +312,7 @@ function ActionListWithDestructiveItemExample() {
}
```
-### Action list with help text
+### With help text
Use help text when the normal Verb noun syntax for the actions does not provide sufficient context for the merchant.
@@ -359,7 +359,7 @@ function ActionListWithHelpTextExample() {
}
```
-### Action list with a prefix and a suffix
+### With a prefix and a suffix
Use help text when the normal Verb noun syntax for the actions does not provide sufficient context for the merchant.
diff --git a/polaris-react/src/components/AppProvider/README.md b/polaris-react/src/components/AppProvider/README.md
index fe1bc4768dc..edcfe497dd4 100644
--- a/polaris-react/src/components/AppProvider/README.md
+++ b/polaris-react/src/components/AppProvider/README.md
@@ -200,7 +200,7 @@ function AppProviderLinkExample() {
### With color scheme
-With a `colorScheme`, the app provider component will set the root color scheme for the App (such as: light or dark).For `colorScheme` configuration, see the [CustomProperties](https://polaris.shopify.com/components/custom-properties) component documentation.
+With a `colorScheme`, the app provider component will set the root color scheme for the App (such as light or dark). For `colorScheme` configuration, see the [CustomProperties](https://polaris.shopify.com/components/custom-properties) component documentation.
```jsx
function AppProviderThemeExample() {
diff --git a/polaris-react/src/components/Autocomplete/README.md b/polaris-react/src/components/Autocomplete/README.md
index a6f1222cf90..99a84c809f6 100644
--- a/polaris-react/src/components/Autocomplete/README.md
+++ b/polaris-react/src/components/Autocomplete/README.md
@@ -34,7 +34,7 @@ The input field for autocomplete should follow the [content guidelines](https://
## Examples
-### Basic autocomplete
+### Default
Use to help merchants complete text input quickly from a list of options.
@@ -107,7 +107,7 @@ function AutocompleteExample() {
}
```
-### Multiple tags autocomplete
+### With multiple tags
Use to help merchants select multiple options from a list curated by the text input.
@@ -210,7 +210,7 @@ function MultiAutocompleteExample() {
}
```
-### Multiple sections autocomplete
+### With multiple sections
Use to help merchants complete text input quickly from a multiple sections list of options.
@@ -314,7 +314,7 @@ function AutocompleteExample() {
}
```
-### Autocomplete with loading
+### With loading
Use to indicate loading state to merchants while option data is processing.
@@ -395,7 +395,7 @@ function AutocompleteExample() {
}
```
-### Autocomplete with lazy loading
+### With lazy loading
```jsx
function AutoCompleteLazyLoadExample() {
@@ -524,7 +524,7 @@ function AutoCompleteLazyLoadExample() {
}
```
-### Autocomplete with empty state
+### With empty state
Use to indicate there are no search results.
@@ -615,7 +615,7 @@ function AutocompleteExample() {
}
```
-### Autocomplete with action
+### With action
Use to help merchants complete an action quickly.
@@ -708,7 +708,7 @@ function AutocompleteActionBeforeExample() {
}
```
-### Autocomplete with wrapping action
+### With wrapping action
Use to help merchants complete an action quickly with wrapping lines of text.
@@ -803,7 +803,7 @@ function AutocompleteActionBeforeExample() {
}
```
-### Autocomplete with destructive action
+### With destructive action
Use to help merchants complete a destructive action quickly.
diff --git a/polaris-react/src/components/Avatar/README.md b/polaris-react/src/components/Avatar/README.md
index cef246481d7..5d7150063fb 100644
--- a/polaris-react/src/components/Avatar/README.md
+++ b/polaris-react/src/components/Avatar/README.md
@@ -50,7 +50,7 @@ For avatars, we recommend using a format that describes what will show in the im
## Examples
-### Default avatar
+### Default
Use to present an avatar for a merchant, customer, or business.
@@ -58,7 +58,7 @@ Use to present an avatar for a merchant, customer, or business.
```
-### Extra small avatar
+### Extra small
Use to present an avatar in a condensed layout, such as a data table cell or an action list item.
@@ -95,7 +95,7 @@ function ExtraSmallAvatarExample() {
}
```
-### Square avatar
+### Square
Use a `square` shape when the avatar represents a non-person entity like an app, channel, or store.
diff --git a/polaris-react/src/components/Badge/README.md b/polaris-react/src/components/Badge/README.md
index 70a94711355..c7c2f2be6bc 100644
--- a/polaris-react/src/components/Badge/README.md
+++ b/polaris-react/src/components/Badge/README.md
@@ -73,7 +73,7 @@ Don’t use alternatives to existing badge options. Only create a new badge opti
## Examples
-### Default badge
+### Default
Use to give a non-critical status update on a piece of information or action.
@@ -81,7 +81,7 @@ Use to give a non-critical status update on a piece of information or action.
Fulfilled
```
-### Small badge
+### Small
Use in layouts with minimal space, like inside of an `IndexTable` cell.
@@ -89,7 +89,7 @@ Use in layouts with minimal space, like inside of an `IndexTable` cell.
Fulfilled
```
-### Informational badge
+### Informational
Use to call out an object or action as having an important attribute. For example, marking an option as “Recommended” or marking a theme as “Published”.
@@ -97,7 +97,7 @@ Use to call out an object or action as having an important attribute. For exampl
Published
```
-### Success badge
+### Success
Use to indicate a successful, completed, or desirable state when it’s important to provide positive reinforcement to merchants. For example, when merchants successfully dispute a chargeback, a success badge shows that says “Funds recovered”.
@@ -105,7 +105,7 @@ Use to indicate a successful, completed, or desirable state when it’s importan
Funds recovered
```
-### Attention badge
+### Attention
Use when something requires merchants’ attention but the issue isn’t critical. For example, this badge would show next to an order that needs to be reviewed by merchants.
@@ -113,27 +113,23 @@ Use when something requires merchants’ attention but the issue isn’t critica
Inactive
```
-### Warning badge
+### Warning
-Use for critical and time-sensitive issues that require merchants’ attention and potential action. Warning events are often reversible.
-
-Keep in mind that seeing this badge can feel stressful for merchants so it should only be used when absolutely necessary.
+Use for warnings and time-sensitive issues that require merchants’ attention and potential action. Warning events are often reversible. Keep in mind that seeing this badge can feel stressful for merchants so it should only be used when absolutely necessary.
```jsx
Expired
```
-### Critical badge
-
-Use for critical and irreversible issues that require merchants’ attention and potential action.
+### Critical
-Keep in mind that seeing this badge can feel stressful for merchants so it should only be used when absolutely necessary.
+Use for critical and irreversible issues that require merchants’ attention and potential action. Keep in mind that seeing this badge can feel stressful for merchants so it should only be used when absolutely necessary.
```jsx
Action required
```
-### Incomplete badge
+### Incomplete
Use to indicate when a given task has not yet been completed. For example, when merchants haven’t fulfilled an order.
@@ -143,7 +139,7 @@ Use to indicate when a given task has not yet been completed. For example, when
```
-### Partially complete badge
+### Partially complete
Use to indicate when a given task has been partially completed. For example, when merchants have partially fulfilled an order.
@@ -153,7 +149,7 @@ Use to indicate when a given task has been partially completed. For example, whe
```
-### Complete badge
+### Complete
Use to indicate when a given task has been completed. For example, when merchants have fulfilled an order.
@@ -161,7 +157,7 @@ Use to indicate when a given task has been completed. For example, when merchant
Fulfilled
```
-### Badge with statusAndProgressLabelOverride
+### With statusAndProgressLabelOverride
Use when the status and progress accessibilityLabels are not appropriate to a given context.
diff --git a/polaris-react/src/components/Banner/README.md b/polaris-react/src/components/Banner/README.md
index 13c3a620025..36609516f05 100644
--- a/polaris-react/src/components/Banner/README.md
+++ b/polaris-react/src/components/Banner/README.md
@@ -201,10 +201,9 @@ To buy a shipping label, you must enter the total weight of your shipment, inclu
## Examples
-### Default banners
+### Default
-- Use to convey general information or actions that aren’t critical. For example, you might show a banner that asks for merchant feedback.
-- Default banners contain lower priority information and should always be dismissible.
+Use to convey general information or actions that aren’t critical. For example, you might show a banner that asks for merchant feedback. Default banners contain lower priority information and should always be dismissible.
```jsx
{}}>
@@ -212,7 +211,7 @@ To buy a shipping label, you must enter the total weight of your shipment, inclu
```
-### Dismissible banner
+### Dismissible
Make all banners dismissible, unless they contain critical information or an important action that merchants are required to take.
@@ -225,7 +224,7 @@ Make all banners dismissible, unless they contain critical information or an imp
```
-### Banner with footer call-to-action
+### With footer call-to-action
Use when you want merchants to take an action after reading the banner.
@@ -244,7 +243,7 @@ Use when you want merchants to take an action after reading the banner.
```
-### Informational banners
+### Informational
Use to update merchants about a change or give them advice.
@@ -260,10 +259,9 @@ Use to update merchants about a change or give them advice.
```
-### Success banner
+### Success
-- Default to using toasts for success messages, unless the feedback is delayed, persistent, or has a call to action
-- Include next steps if applicable
+Default to using toasts for success messages, unless the feedback is delayed, persistent, or has a call to action. Include next steps if applicable.
```jsx
```
-### Warning banners
+### Warning
-- Use to display information that needs attention or that merchants need to take action on
-- Seeing these banners can be stressful for merchants so be cautious about using them
+Use to display information that needs attention or that merchants need to take action on. Seeing these banners can be stressful for merchants so be cautious about using them.
```jsx
```
-### Critical banners
+### Critical
-- Use to communicate problems that have to be resolved immediately for merchants to complete a task
-- For example, you will show this banner for orders with high fraud risk
-- Seeing these banners can be stressful for merchants so be cautious about using them
+Use to communicate problems that have to be resolved immediately for merchants to complete a task. For example, you will show this banner for orders with high fraud risk. Seeing these banners can be stressful for merchants so be cautious about using them.
```jsx
```
-### Banner in a modal
+### In a modal
Banners inside of modals render with less spacing and a pared-back design to fit within a content context.
@@ -362,7 +357,7 @@ function BannerInModalExample() {
}
```
-### Banner with focus
+### With focus
Banner can programmatically receive focus. Use this functionality to draw the merchant’s attention to the banner.
@@ -388,7 +383,7 @@ function BannerWithFocusExample() {
}
```
-### Banner in a card
+### In a card
Banners inside of cards render with less spacing and a pared-back design to fit within a content context.
diff --git a/polaris-react/src/components/Button/README.md b/polaris-react/src/components/Button/README.md
index 4bb7587d83a..1d51ad5b66c 100644
--- a/polaris-react/src/components/Button/README.md
+++ b/polaris-react/src/components/Button/README.md
@@ -62,7 +62,7 @@ Buttons should follow the content guidelines for [buttons](https://polaris.shopi
## Examples
-### Basic button
+### Default
Used most in the interface. Only use another style if a button requires more or less visual weight.
@@ -70,7 +70,7 @@ Used most in the interface. Only use another style if a button requires more or
```
-### Outline button
+### Outline
Use against shaded or colorful backgrounds. An outline button will maintain the appropriate visual weight and won’t clash with the background color.
@@ -78,7 +78,7 @@ Use against shaded or colorful backgrounds. An outline button will maintain the
```
-### Outline monochrome button
+### Outline monochrome
Use against shaded or colorful backgrounds where matching the current text colors is more appropriate than the current outline theme.
@@ -90,7 +90,7 @@ Use against shaded or colorful backgrounds where matching the current text color
```
-### Plain button
+### Plain
Use for less important or less commonly used actions since they’re less prominent. For example, plain buttons are used as actions in cards.
@@ -98,7 +98,7 @@ Use for less important or less commonly used actions since they’re less promin
```
-### Plain monochrome button
+### Plain monochrome
Use for less important or less commonly used actions where matching the current text color is desired. For example in the InlineError component.
@@ -111,7 +111,7 @@ Use for less important or less commonly used actions where matching the current
```
-### Plain destructive button
+### Plain destructive
Use for actions that will delete merchant data or be otherwise difficult to recover from. Since they’re less prominent, use for less important or less commonly used destructive actions. For example, plain buttons are used as actions in cards.
@@ -121,7 +121,7 @@ Use for actions that will delete merchant data or be otherwise difficult to reco
```
-### Primary button
+### Primary
Use to highlight the most important actions in any experience. Don’t use more than one primary button in a section or screen to avoid overwhelming merchants.
@@ -129,7 +129,7 @@ Use to highlight the most important actions in any experience. Don’t use more
```
-### Destructive button
+### Destructive
Use when the action will delete merchant data or be otherwise difficult to recover from. Destructive buttons should trigger a confirmation dialog before the action is completed. Be thoughtful about using destructive buttons because they can feel stressful for merchants.
@@ -137,7 +137,7 @@ Use when the action will delete merchant data or be otherwise difficult to recov
```
-### Slim button
+### Slim
Use when a table or list has a set of actions on each item to avoid making items taller than they need to be. Don’t use slim buttons for primary actions.
@@ -145,7 +145,7 @@ Use when a table or list has a set of actions on each item to avoid making items
```
-### Large button
+### Large
Use for the main call to action in empty states or for calls to action shown with large illustrations.
@@ -153,7 +153,7 @@ Use for the main call to action in empty states or for calls to action shown wit
```
-### Full-width button
+### Full-width
Use for buttons placed in a narrow column (especially when stacking multiple buttons) or for creating a set of buttons of equal width. Full-width buttons should rarely exceed 320 px wide.
@@ -161,7 +161,7 @@ Use for buttons placed in a narrow column (especially when stacking multiple but
```
-### Text-aligned button
+### Text-aligned
Use for plain or monochrome buttons that could have a long length and should be aligned when they potentially overflow onto the next line.
@@ -173,7 +173,7 @@ Use for plain or monochrome buttons that could have a long length and should be
```
-### Pressed button
+### Pressed
Buttons are sometimes used as a toggle for other parts of the user interface.
@@ -204,7 +204,7 @@ function PressedButton() {
}
```
-### Plain disclosure button
+### Plain disclosure
Use to indicate that more content can be disclosed on click, like text in a collapsible.
@@ -249,7 +249,7 @@ function RightAlignedDisclosureButton() {
}
```
-### Select disclosure button
+### Select disclosure
Use to indicate that multiple options are available from this control, similar to a `` HTML element.
@@ -261,7 +261,7 @@ Use to indicate that multiple options are available from this control, similar t
```
-### Split button
+### Split
Use when there is only one primary action but other related actions can be taken.
diff --git a/polaris-react/src/components/ButtonGroup/README.md b/polaris-react/src/components/ButtonGroup/README.md
index 3536a577ede..0201e950dd0 100644
--- a/polaris-react/src/components/ButtonGroup/README.md
+++ b/polaris-react/src/components/ButtonGroup/README.md
@@ -46,7 +46,7 @@ Button groups should follow the [content guidelines](https://polaris.shopify.com
## Examples
-### Default button group
+### Default
Use when you have multiple buttons to space them out evenly.
@@ -57,7 +57,7 @@ Use when you have multiple buttons to space them out evenly.
```
-### Button group with segmented buttons
+### With segmented buttons
Use to emphasize several buttons as a thematically-related set among other controls.
@@ -69,7 +69,7 @@ Use to emphasize several buttons as a thematically-related set among other contr
```
-### Outline button group with segmented buttons
+### Outline with segmented buttons
Use to emphasize several buttons as a thematically-related set among other controls.
diff --git a/polaris-react/src/components/CalloutCard/README.md b/polaris-react/src/components/CalloutCard/README.md
index 629eb47219c..6ef89ebdd8e 100644
--- a/polaris-react/src/components/CalloutCard/README.md
+++ b/polaris-react/src/components/CalloutCard/README.md
@@ -130,7 +130,7 @@ Add a menu item
## Examples
-### Default callout card
+### Default
Use to let merchants know about a feature or opportunity where there is a clear, single action they need to take to move to the next step.
@@ -147,7 +147,7 @@ Use to let merchants know about a feature or opportunity where there is a clear,
```
-### Callout card with secondary action
+### With secondary action
Use to let merchants know about a feature or opportunity where there are two distinct actions they can take on the information.
@@ -162,7 +162,7 @@ Use to let merchants know about a feature or opportunity where there are two dis
```
-### Dismissable callout card
+### Dismissable
Make all callout cards dismissible so merchants can get rid of cards about features they’re not interested in.
diff --git a/polaris-react/src/components/Caption/README.md b/polaris-react/src/components/Caption/README.md
index 8663f598abd..b3845fa30b7 100644
--- a/polaris-react/src/components/Caption/README.md
+++ b/polaris-react/src/components/Caption/README.md
@@ -57,7 +57,7 @@ Captions are primarily used in [data visualizations](https://polaris.shopify.com
## Examples
-### Default caption
+### Default
Use to provide details in situations where content is compact and space is tight.
diff --git a/polaris-react/src/components/Card/README.md b/polaris-react/src/components/Card/README.md
index b9de40febb6..32cf52abf2a 100644
--- a/polaris-react/src/components/Card/README.md
+++ b/polaris-react/src/components/Card/README.md
@@ -147,7 +147,7 @@ Links should be:
## Examples
-### Default card
+### Default
Use when you have a simple message to communicate to merchants that doesn’t require any secondary steps.
@@ -157,7 +157,7 @@ Use when you have a simple message to communicate to merchants that doesn’t re
```
-### Card with header actions
+### With header actions
Use for less important card actions, or actions merchants may do before reviewing the contents of the card. For example, merchants may want to add items to a card containing a long list, or enter a customer’s new address.
@@ -170,7 +170,7 @@ Use for less important card actions, or actions merchants may do before reviewin
```
-### Card with footer actions
+### With footer actions
Use footer actions for a card’s most important actions, or actions merchants should do after reviewing the contents of the card. For example, merchants should review the contents of a shipment before an important action like adding tracking information. Footer actions can be left or right aligned with the `footerActionAlignment` prop.
@@ -189,7 +189,7 @@ Use footer actions for a card’s most important actions, or actions merchants s
```
-### Card with multiple footer actions
+### With multiple footer actions
When multiple secondary footer actions are provided, they will render in an action list popover activated by a disclosure button. The disclosure button text can be customized with the `secondaryFooterActionsDisclosureText` prop.
@@ -211,7 +211,7 @@ When multiple secondary footer actions are provided, they will render in an acti
```
-### Card with custom footer actions
+### With custom footer actions
Use to present actionable content that is optional or not the primary purpose of the page.
@@ -235,7 +235,7 @@ Use to present actionable content that is optional or not the primary purpose of
```
-### Card with destructive footer action
+### With destructive footer action
Use when a card action will delete merchant data or be otherwise difficult to recover from.
@@ -254,7 +254,7 @@ Use when a card action will delete merchant data or be otherwise difficult to re
```
-### Card with multiple sections
+### With multiple sections
Use when you have two related but distinct pieces of information to communicate to merchants. Multiple sections can help break up complicated concepts to make them easier to scan and understand.
@@ -273,7 +273,7 @@ Use when you have two related but distinct pieces of information to communicate
```
-### Card with multiple titled sections
+### With multiple titled sections
Use when you have two related but distinct pieces of information to communicate to merchants that are complex enough to require a title to introduce them.
@@ -292,7 +292,7 @@ Use when you have two related but distinct pieces of information to communicate
```
-### Card section with action
+### With sections and actions
Use when your card section has actions that apply only to that section.
@@ -307,7 +307,7 @@ Use when your card section has actions that apply only to that section.
```
-### Card with subsection
+### With subsection
Use when your card sections need further categorization.
@@ -340,7 +340,7 @@ Use when your card sections need further categorization.
```
-### Card section with destructive action
+### With destructive action
Use when a card action applies only to one section and will delete merchant data or be otherwise difficult to recover from.
@@ -358,7 +358,7 @@ Use when a card action applies only to one section and will delete merchant data
```
-### Card with a subdued section
+### With a subdued section
Use to indicate when one of the sections in your card contains inactive or disabled content.
@@ -380,7 +380,7 @@ Use to indicate when one of the sections in your card contains inactive or disab
```
-### Subdued card for secondary content
+### With subdued for secondary content
Use for content that you want to deprioritize. Subdued cards don’t stand out as much as cards with white backgrounds so don’t use them for information or actions that are critical to merchants.
@@ -393,7 +393,7 @@ Use for content that you want to deprioritize. Subdued cards don’t stand out a
```
-### Card with separate header
+### With separate header
Use to be able to use custom React elements as header content.
@@ -428,7 +428,7 @@ Use to be able to use custom React elements as header content.
```
-### Card section with custom React Node title
+### With custom React Node title
Use to render custom content such as icons, links, or buttons in a card section’s header.
@@ -450,7 +450,7 @@ Use to render custom content such as icons, links, or buttons in a card section
```
-### Card with all of its elements
+### With all elements
Use as a broad example that includes most props available to card.
@@ -531,7 +531,7 @@ Use as a broad example that includes most props available to card.
```
-### Card with flushed sections
+### With flushed sections
Use when you need further control over the spacing of your card sections.
diff --git a/polaris-react/src/components/Checkbox/README.md b/polaris-react/src/components/Checkbox/README.md
index 59e57723366..8565d3b76dc 100644
--- a/polaris-react/src/components/Checkbox/README.md
+++ b/polaris-react/src/components/Checkbox/README.md
@@ -93,9 +93,9 @@ You agree to the Terms of Service
## Examples
-### Default checkboxes
+### Default
-Use in forms to toggle the state of something on or off. Default checkboxes can appear in two states: selected and disabled, or unselected.
+Use in forms to toggle the state of something on or off. Default checkboxes can appear as selected and disabled, or unselected.
```jsx
function CheckboxExample() {
diff --git a/polaris-react/src/components/ChoiceList/README.md b/polaris-react/src/components/ChoiceList/README.md
index e5dfdd4d935..728aace7db4 100644
--- a/polaris-react/src/components/ChoiceList/README.md
+++ b/polaris-react/src/components/ChoiceList/README.md
@@ -126,7 +126,7 @@ If your list contains helper text, only the description below the list item shou
## Examples
-### Single choice list
+### Default
Allows merchants to select one option from a list. Make sure all options are an either/or choice.
@@ -151,7 +151,7 @@ function SingleChoiceListExample() {
}
```
-### Single choice list with error
+### With error
Allows for accessible error handling by connecting the error message to the field with the error.
@@ -177,7 +177,7 @@ function ChoiceListWithErrorExample() {
}
```
-### Multi-choice list
+### With multi-choice
Allows merchants to select multiple options from a list. Avoid options that are an either/or choice.
@@ -212,9 +212,9 @@ function MultiChoiceListExample() {
}
```
-### Single-choice or multi-choice list with children content (always rendered)
+### With children content
-Use when you need merchants to view and/or interact with additional content under a choice. The content will always be rendered. Works for both single-choice and multi-choice list.
+Use when you need merchants to view and/or interact with additional content under a choice. The content will always be rendered.
```jsx
function SingleOrMultiChoiceListWithChildrenContextExample() {
@@ -260,7 +260,7 @@ function SingleOrMultiChoiceListWithChildrenContextExample() {
}
```
-### Single-choice or multi-choice list with children content (only rendered when choice is selected)
+### With dynamic children content
Use when you need merchants to view and/or interact with additional content under a choice. The content is only rendered when the choice is selected. Works for both single-choice and multi-choice list.
diff --git a/polaris-react/src/components/Collapsible/README.md b/polaris-react/src/components/Collapsible/README.md
index 9fd51172db7..626f590438b 100644
--- a/polaris-react/src/components/Collapsible/README.md
+++ b/polaris-react/src/components/Collapsible/README.md
@@ -43,7 +43,7 @@ Collapsible containers are cards with expandable and collapsible functionality,
## Examples
-### Default collapsible component
+### Default
Use for a basic “show more” interaction when you need to display more content.
diff --git a/polaris-react/src/components/ColorPicker/README.md b/polaris-react/src/components/ColorPicker/README.md
index efab92a44b3..d1fffbe3755 100644
--- a/polaris-react/src/components/ColorPicker/README.md
+++ b/polaris-react/src/components/ColorPicker/README.md
@@ -29,7 +29,7 @@ The color picker is used to let merchants select a color visually. For example,
## Examples
-### Default color picker
+### Default
Use when merchants need to select a color to make the selection a visual task rather than a technical one.
@@ -45,10 +45,9 @@ function ColorPickerExample() {
}
```
-### Colorpicker with transparent value
+### With transparent value
-Use when attached to a visual builder to allow the designated object to have a
-transparent background that allows underlying objects to show through.
+Use when attached to a visual builder to allow the designated object to have a transparent background that allows underlying objects to show through.
```jsx
function ColorPickerWithTransparentValueExample() {
@@ -63,10 +62,9 @@ function ColorPickerWithTransparentValueExample() {
}
```
-### Colorpicker with transparent value full width
+### With transparent value full width
-Use when attached to a visual builder to allow the designated object to have a
-transparent background that allows underlying objects to show through.
+Use when attached to a visual builder to allow the designated object to have a transparent background that allows underlying objects to show through.
```jsx
function ColorPickerWithTransparentValueExample() {
diff --git a/polaris-react/src/components/Combobox/README.md b/polaris-react/src/components/Combobox/README.md
index efb1067439b..ad4ca38d640 100644
--- a/polaris-react/src/components/Combobox/README.md
+++ b/polaris-react/src/components/Combobox/README.md
@@ -76,7 +76,7 @@ The tag multi-select input enables merchants to efficiently add or remove tags f
## Examples
-### Single select autocomplete with automatic selection
+### Default
Use when merchants can select one option from a predefined or editable list.
@@ -168,7 +168,7 @@ function AutoSelectComboboxExample() {
}
```
-### Single select autocomplete with manual selection
+### With manual selection
Use when merchants can select one option from a predefined or editable list.
@@ -262,7 +262,7 @@ function ManualSelectComboboxExample() {
}
```
-### Multi-select autocomplete with automatic selection
+### With multi-select
Use when merchants can select one or more options from a predefined or editable list.
@@ -380,7 +380,7 @@ function MultiAutoComboboxExample() {
}
```
-### Multi-select autocomplete with manual selection
+### With multi-select and manual selection
Use when merchants can select one or more options from a predefined or editable list.
@@ -500,7 +500,7 @@ function MultiManualComboboxExample() {
}
```
-### Multi-select autocomplete with vertical content
+### With multi-select and vertical content
Use to display selected options above the input value.
@@ -664,7 +664,7 @@ function MultiselectTagComboboxExample() {
}
```
-### Autocomplete with loading
+### With loading
Use to indicate to merchants that the list data is being fetched.
diff --git a/polaris-react/src/components/ContextualSaveBar/README.md b/polaris-react/src/components/ContextualSaveBar/README.md
index 221e58208b2..a83c1a82916 100644
--- a/polaris-react/src/components/ContextualSaveBar/README.md
+++ b/polaris-react/src/components/ContextualSaveBar/README.md
@@ -77,7 +77,7 @@ Actions in the contextual save bar component should consist of a strong verb tha
## Examples
-### Default contextual save bar
+### Default
Use the save action to provide an opportunity to save changes. Use the discard action to allow merchants the option to discard their changes. Use the message to provide helpful context on the nature of those changes.
@@ -105,35 +105,7 @@ Use the save action to provide an opportunity to save changes. Use the discard a
```
-### Contextual save bar during creation
-
-Use the save action to provide an opportunity to save a newly-created resource. Use the discard action to allow merchants the option to discard a new resource. Use the message to provide helpful context on the nature of the new resource.
-
-```jsx
-
-```
-
-### Contextual save bar with flush contents
+### With flush contents
Use the alignContentFlush flag when you want to omit the logo from the contextual save bar and repurpose that space to extend the message contents fully to the left side of the container.
@@ -160,7 +132,7 @@ Use the alignContentFlush flag when you want to omit the logo from the contextua
```
-### Contextual save bar full width
+### With full width
Use the fullWidth flag when you want to remove the default max-width set on the contextual save bar.
diff --git a/polaris-react/src/components/CustomProperties/README.md b/polaris-react/src/components/CustomProperties/README.md
index 3ec27011d83..f99a9976c84 100644
--- a/polaris-react/src/components/CustomProperties/README.md
+++ b/polaris-react/src/components/CustomProperties/README.md
@@ -18,7 +18,7 @@ Use the custom properties component to share global theme settings throughout th
## Examples
-### Custom properties rendered by the app provider
+### Rendered by the app provider
The app provider component renders a CustomProperties component with the default color scheme.
@@ -39,7 +39,7 @@ The app provider component renders a CustomProperties component with the default
```
-### Custom properties with a color scheme rendered by the app provider
+### With a color scheme rendered by the app provider
A color scheme can be passed to the app provider to determine what color scheme is globally applied to the application.
@@ -60,7 +60,7 @@ A color scheme can be passed to the app provider to determine what color scheme
```
-### Custom properties with a different color scheme nested within an app provider
+### With a different color scheme nested within an app provider
Custom properties can be nested within the custom properties rendered by the app provider in order to override the color scheme at a local level.
diff --git a/polaris-react/src/components/DataTable/README.md b/polaris-react/src/components/DataTable/README.md
index dbd74fcce82..55adc1f82e6 100644
--- a/polaris-react/src/components/DataTable/README.md
+++ b/polaris-react/src/components/DataTable/README.md
@@ -17,7 +17,7 @@ Data tables are used to organize and display all information from a data set. Wh
## Examples
-### Default data table
+### Default
Use to present small amounts of data for merchants to view statically.
@@ -62,7 +62,7 @@ function DataTableExample() {
}
```
-### Sortable data table
+### Sortable
Use when clarity of the table’s content is needed. For example, to note the number of rows currently shown in a data table with pagination.
@@ -128,7 +128,7 @@ function SortableDataTableExample() {
}
```
-### Data table with footer
+### With footer
Use when clarity of the table’s content is needed. For example, to note the number of rows currently shown in a data table with pagination.
@@ -174,7 +174,7 @@ function DataTableFooterExample() {
}
```
-### Data table with custom totals heading
+### With custom totals heading
Use to provide a custom heading for the totals row.
@@ -224,7 +224,7 @@ function DataTableExample() {
}
```
-### Data table with totals in footer
+### With totals in footer
Use to reposition the totals row in a more appropriate location based on the data stored in the table for merchants to better understand its meaning.
@@ -270,7 +270,7 @@ function DataTableExample() {
}
```
-### Data table with row heading links
+### With row heading links
Use to help merchants find relevant, finer grained data sets.
@@ -339,7 +339,7 @@ function DataTableLinkExample() {
}
```
-### Data table with all of its elements
+### With all of its elements
Use as a broad example that includes most props available to data table.
@@ -439,7 +439,7 @@ function FullDataTableExample() {
}
```
-### Data table with fixed first column
+### With fixed first column
Use when the table contains many columns and it would benefit the merchant to see the first column when scrolling to the right.
@@ -583,7 +583,7 @@ function DataTableFixedFirstColumnExample() {
}
```
-### Data table with increased density and zebra striping
+### With increased density and zebra striping
Use as a broad example that includes most props available to data table.
@@ -682,7 +682,7 @@ function FullDataTableExample() {
}
```
-### Data table with sticky header enabled
+### With sticky header enabled
Use as a broad example that includes most props available to data table.
diff --git a/polaris-react/src/components/DatePicker/README.md b/polaris-react/src/components/DatePicker/README.md
index 77cc02c213e..10ef5a05276 100644
--- a/polaris-react/src/components/DatePicker/README.md
+++ b/polaris-react/src/components/DatePicker/README.md
@@ -37,7 +37,7 @@ Date pickers should:
## Examples
-### Default date picker
+### Default
Use when merchants need to select a single day close to today (today is the default starting position for the date picker).
@@ -66,7 +66,7 @@ function DatePickerExample() {
}
```
-### Ranged date picker
+### Ranged
Use when merchants need to select a range of days close to today (today is the default starting position for the date picker).
@@ -96,7 +96,7 @@ function DatePickerExample() {
}
```
-### Multi-month ranged date picker
+### Multi-month ranged
Use multi-month mode to show two months at a time.
@@ -127,7 +127,7 @@ function DatePickerExample() {
}
```
-### Date picker with disabled date ranges
+### With disabled date ranges
Date ranges may be disabed if you do not want them to be selectable
@@ -159,7 +159,7 @@ function DatePickerExample() {
}
```
-### Date picker with specific disabled dates
+### With specific disabled dates
Dates may be disabed if you do not want them to be selectable
diff --git a/polaris-react/src/components/DescriptionList/README.md b/polaris-react/src/components/DescriptionList/README.md
index 3ce6c7c2507..a70170452db 100644
--- a/polaris-react/src/components/DescriptionList/README.md
+++ b/polaris-react/src/components/DescriptionList/README.md
@@ -91,7 +91,7 @@ Terms descriptions should be:
## Examples
-### Default description list
+### Default
Use when you need to present merchants with a list of items or terms alongside descriptions and explanations.
diff --git a/polaris-react/src/components/DropZone/README.md b/polaris-react/src/components/DropZone/README.md
index d57c9d37166..1529c18d372 100755
--- a/polaris-react/src/components/DropZone/README.md
+++ b/polaris-react/src/components/DropZone/README.md
@@ -77,7 +77,7 @@ The following images couldn’t be uploaded:
## Examples
-### Drop zone with file upload
+### Default
Use to allow merchants to upload files. They can drag and drop files into the dashed area, or upload traditionally by clicking the “Add file” button or anywhere inside the dashed area.
@@ -126,7 +126,7 @@ function DropZoneExample() {
}
```
-### Drop zone with a label
+### With a label
Use to pair with a label for better accessibility.
@@ -136,7 +136,7 @@ Use to pair with a label for better accessibility.
```
-### Drop zone with image file upload
+### With image file upload
Use for cases that accept image file formats.
@@ -199,7 +199,7 @@ function DropZoneWithImageFileUpload() {
}
```
-### Drop zone with single file upload
+### With single file upload
Use to accept only one file.
@@ -242,7 +242,7 @@ function DropZoneExample() {
}
```
-### Drop zone with drop on page
+### With drop on page
Use to accept files for upload when dropped anywhere on the page.
@@ -304,7 +304,7 @@ function DropZoneWithDropOnPageExample() {
}
```
-### Drop zone accepts only SVG files
+### Accepts only SVG files
Use to accept only SVG files.
@@ -370,7 +370,7 @@ function DropZoneAcceptingSVGFilesExample() {
}
```
-### Nested drop zone
+### Nested
Use to allow merchants to upload files in a wider area than the visible drop zone.
@@ -421,7 +421,7 @@ function NestedDropZoneExample() {
}
```
-### Medium-sized drop zone
+### Medium-sized
Use for cases with limited space. To improve usability, nest medium-sized drop zone in a larger drop zone with no outline. See the nested dropzone example.
@@ -433,7 +433,7 @@ Use for cases with limited space. To improve usability, nest medium-sized drop z
```
-### Small-sized drop zone
+### Small-sized
Use for cases with tight space constraints, such as variant thumbnails on the Product details page. To improve usability, nest small-sized drop zone in a larger drop zone with no outline. See the nested dropzone example.
@@ -445,7 +445,7 @@ Use for cases with tight space constraints, such as variant thumbnails on the Pr
```
-### Drop zone with custom FileUpload text
+### With custom FileUpload text
Use for cases where you want the child contents of the dropzone to determine its height.
@@ -495,7 +495,7 @@ function DropZoneExample() {
}
```
-### Drop zone with custom file dialog trigger
+### With custom file dialog trigger
Use to trigger the file dialog from an action somewhere else on the page.
diff --git a/polaris-react/src/components/EmptyState/README.md b/polaris-react/src/components/EmptyState/README.md
index c14a08b1225..cb09499dc89 100644
--- a/polaris-react/src/components/EmptyState/README.md
+++ b/polaris-react/src/components/EmptyState/README.md
@@ -131,7 +131,7 @@ Secondary actions are used for less important actions such as “Learn more” o
## Examples
-### Default empty state
+### Default
Use to explain a single feature before merchants have used it.
@@ -148,7 +148,7 @@ Use to explain a single feature before merchants have used it.
```
-### Empty state with subdued footer context
+### With subdued footer context
Use to provide additional but non-critical context for a new product or feature. Can also be used to include a subdued call to action for secondary or tertiary actions.
@@ -174,7 +174,7 @@ Use to provide additional but non-critical context for a new product or feature.
```
-### Empty state with full width layout
+### With full width layout
```jsx
diff --git a/polaris-react/src/components/ExceptionList/README.md b/polaris-react/src/components/ExceptionList/README.md
index 357580cd8ed..fb2db6b144e 100644
--- a/polaris-react/src/components/ExceptionList/README.md
+++ b/polaris-react/src/components/ExceptionList/README.md
@@ -59,7 +59,7 @@ If placed next to an item in a [resource list](https://polaris.shopify.com/compo
## Examples
-### Exception list with icon
+### Default
Use icons to add clarity or assist in visualizing the meaning
diff --git a/polaris-react/src/components/Filters/README.md b/polaris-react/src/components/Filters/README.md
index 1ed2388964d..51e3536adcb 100644
--- a/polaris-react/src/components/Filters/README.md
+++ b/polaris-react/src/components/Filters/README.md
@@ -138,7 +138,7 @@ If all tag pills selected: truncate in the middle
## Examples
-### Filtering with a resource list
+### With a resource list
```jsx
function ResourceListFiltersExample() {
@@ -337,7 +337,7 @@ function ResourceListFiltersExample() {
}
```
-### Filtering with a data table
+### With a data table
```jsx
function DataTableFiltersExample() {
@@ -525,7 +525,7 @@ function DataTableFiltersExample() {
}
```
-### Filters with children content
+### With children content
```jsx
function FiltersExample() {
@@ -652,7 +652,7 @@ function FiltersExample() {
}
```
-### All filters disabled
+### Disabled
```jsx
function DisableAllFiltersExample() {
@@ -783,7 +783,7 @@ function DisableAllFiltersExample() {
}
```
-### Some filters disabled
+### Some disabled
```jsx
function DisableSomeFiltersExample() {
@@ -933,7 +933,7 @@ function DisableSomeFiltersExample() {
}
```
-### Filters without clear button
+### Without clear button
```jsx
function Playground() {
@@ -1065,7 +1065,7 @@ function Playground() {
}
```
-### Filters with help text
+### With help text
```jsx
function ResourceListFiltersExample() {
@@ -1266,7 +1266,7 @@ function ResourceListFiltersExample() {
}
```
-### Filters with query field hidden
+### With query field hidden
```jsx
function ResourceListFiltersExample() {
@@ -1466,7 +1466,7 @@ function ResourceListFiltersExample() {
}
```
-### Filters with query field disabled
+### With query field disabled
```jsx
function ResourceListFiltersExample() {
diff --git a/polaris-react/src/components/FooterHelp/README.md b/polaris-react/src/components/FooterHelp/README.md
index 9776862bae8..95c910b3b0d 100644
--- a/polaris-react/src/components/FooterHelp/README.md
+++ b/polaris-react/src/components/FooterHelp/README.md
@@ -69,7 +69,7 @@ Marked as external: Do not set the `external` prop on the `Link` component to fo
## Examples
-### Footer help box
+### Default
Use to direct merchants to more information related to the product or feature they’re working on.
diff --git a/polaris-react/src/components/Form/README.md b/polaris-react/src/components/Form/README.md
index 854a7d0f673..66101036df2 100644
--- a/polaris-react/src/components/Form/README.md
+++ b/polaris-react/src/components/Form/README.md
@@ -81,7 +81,7 @@ function FormOnSubmitExample() {
}
```
-### Form without native validation
+### Without native validation
Use in forms to toggle native form validation.
diff --git a/polaris-react/src/components/FormLayout/README.md b/polaris-react/src/components/FormLayout/README.md
index 8a733ab372c..bfe418ec35a 100644
--- a/polaris-react/src/components/FormLayout/README.md
+++ b/polaris-react/src/components/FormLayout/README.md
@@ -90,7 +90,7 @@ Help text provides extra guidance to people filling out a form field. This text
## Examples
-### Default form layout
+### Default
Use to stack form fields vertically, which makes them easier to scan and complete.
diff --git a/polaris-react/src/components/Frame/README.md b/polaris-react/src/components/Frame/README.md
index df10c1c4608..f5dbac4749b 100644
--- a/polaris-react/src/components/Frame/README.md
+++ b/polaris-react/src/components/Frame/README.md
@@ -38,7 +38,7 @@ For the best experience when creating an application frame, use the following co
## Examples
-### Frame in an application
+### In an application
Use to present the frame structure and all of its elements.
@@ -374,7 +374,7 @@ function FrameExample() {
}
```
-### Frame with an offset
+### With an offset
Use to present the frame structure and all of its elements with an offset provided to the theme.
diff --git a/polaris-react/src/components/FullscreenBar/README.md b/polaris-react/src/components/FullscreenBar/README.md
index e655bde2da7..68f98fbd8d4 100644
--- a/polaris-react/src/components/FullscreenBar/README.md
+++ b/polaris-react/src/components/FullscreenBar/README.md
@@ -26,7 +26,7 @@ The Fullscreen bar component should:
## Examples
-### Fullscreen bar with children
+### With children
Use to provide structure for the top of an application while in fullscreen mode.
@@ -78,7 +78,7 @@ function FullscreenBarExample() {
}
```
-### Fullscreen bar no children
+### No children
Use this default to show ONLY the Back button.
diff --git a/polaris-react/src/components/Grid/README.md b/polaris-react/src/components/Grid/README.md
index dd8610e4043..2e778b9498d 100644
--- a/polaris-react/src/components/Grid/README.md
+++ b/polaris-react/src/components/Grid/README.md
@@ -25,7 +25,7 @@ Create complex layouts based on [CSS Grid](https://developer.mozilla.org/en-US/d
## Examples
-### Two column wrapping layout
+### Two column
Use to create a two column layout that wraps at a breakpoint and aligns to a twelve column grid.
@@ -46,7 +46,7 @@ Use to create a two column layout that wraps at a breakpoint and aligns to a twe
```
-### Two-thirds column one-third column wrapping layout
+### Two-thirds and one-third column
Use to create a two-thirds, one-third column layout that wraps at a breakpoint and aligns to a twelve column grid.
@@ -67,7 +67,7 @@ Use to create a two-thirds, one-third column layout that wraps at a breakpoint a
```
-### Three one-third column wrapping layout with a custom column count
+### Three one-third column
Use to create a three column layout that wrap at a breakpoint and aligns to a twelve column grid.
@@ -93,7 +93,7 @@ Use to create a three column layout that wrap at a breakpoint and aligns to a tw
```
-### Custom layout using grid areas and custom columns
+### Custom layout
Use to create a layout that can be customized at specific breakpoints.
diff --git a/polaris-react/src/components/Heading/README.md b/polaris-react/src/components/Heading/README.md
index 083ab5f6320..6428266fb1a 100644
--- a/polaris-react/src/components/Heading/README.md
+++ b/polaris-react/src/components/Heading/README.md
@@ -39,7 +39,7 @@ Headings should follow the content guidelines for [headings and subheadings](htt
## Examples
-### Typographic heading
+### Default
Use for the title of each top-level page section.
diff --git a/polaris-react/src/components/Icon/README.md b/polaris-react/src/components/Icon/README.md
index 99defdc0c24..2ff6f5761e6 100644
--- a/polaris-react/src/components/Icon/README.md
+++ b/polaris-react/src/components/Icon/README.md
@@ -23,7 +23,7 @@ Icons are used to visually communicate core parts of the product and available a
## Examples
-### Default icon
+### Default
Use to visually communicate core parts of the product and available actions.
@@ -31,7 +31,7 @@ Use to visually communicate core parts of the product and available actions.
```
-### Colored icon
+### Colored
Apply a color to the icon.
@@ -47,7 +47,7 @@ Apply a color to the icon.
```
-### Icon with backdrop
+### With backdrop
Apply a backdrop to the icon.
@@ -61,7 +61,7 @@ Apply a backdrop to the icon.
```
-### User provided icon
+### With custom SVG
Specify an SVG as a string to render it in an image tag, instead of an inline SVG to prevent script injection.
@@ -69,7 +69,7 @@ Specify an SVG as a string to render it in an image tag, instead of an inline SV
```
-### User provided icon with color and currentColor
+### With custom SVG and color
When using changing color of an svg and it uses currentColor, the white color is applied.
diff --git a/polaris-react/src/components/IndexTable/README.md b/polaris-react/src/components/IndexTable/README.md
index 747a86f6916..d096d6a7fb9 100644
--- a/polaris-react/src/components/IndexTable/README.md
+++ b/polaris-react/src/components/IndexTable/README.md
@@ -43,7 +43,7 @@ Index tables can also:
## Examples
-### Simple index table
+### Default
A index table with simple items and no bulk actions, sorting, or filtering.
@@ -116,7 +116,7 @@ function SimpleIndexTableExample() {
}
```
-### Simple flush index table
+### Flush
A index table with simple items and no bulk actions, sorting, or filtering.
@@ -189,7 +189,7 @@ function SimpleFlushIndexTableExample() {
}
```
-### Simple small screen index table
+### Small screen
A small screen index table with simple items and no bulk actions, sorting, or filtering.
@@ -267,7 +267,7 @@ function SimpleSmallScreenIndexTableExample() {
}
```
-### IndexTable with empty state
+### With empty state
Use to explain the purpose of a index table when no resources exist yet. This allows a smooth transition from a list in a loading state to a list where zero, one, or many resources exist.
@@ -332,7 +332,7 @@ function IndexTableWithCustomEmptyStateExample() {
}
```
-### IndexTable with bulk actions
+### With bulk actions
Allows merchants to select items and perform an action on the selection.
@@ -428,7 +428,7 @@ function IndexTableWithBulkActionsExample() {
}
```
-### IndexTable with multiple promoted bulk actions
+### With multiple promoted bulk actions
Allows merchants to select items and perform different actions on the selection.
@@ -550,7 +550,7 @@ function IndexTableWithMultiplePromotedBulkActionsExample() {
}
```
-### IndexTable with bulk actions and selection across pages
+### With bulk actions and selection across pages
Allows merchants to select items, perform an action on the selection and select resources across pages.
@@ -647,7 +647,7 @@ function IndexTableWithBulkActionsAndSelectionAcrossPagesExample() {
}
```
-### IndexTable with loading state
+### With loading state
Notifies merchants that index table items are being processed.
@@ -721,7 +721,7 @@ function IndexTableWithLoadingExample() {
}
```
-### IndexTable with filtering
+### With filtering
Allows merchants to narrow the index table to a subset of the original items.
@@ -880,7 +880,7 @@ function IndexTableWithFilteringExample() {
}
```
-### Index table with row status
+### With row status
An index table with rows differentiated by status.
@@ -956,7 +956,7 @@ function IndexTableWithRowStatusExample() {
}
```
-### Index table with sticky last column
+### With sticky last column
An index table with a sticky last column that stays visible on scroll. The last heading will also be sticky if not hidden.
@@ -1059,7 +1059,7 @@ function StickyLastCellIndexTableExample() {
}
```
-### Index table with row navigation link
+### With row navigation link
Use when clicking the row should navigate merchants to another page, like the row item's detail page. When a row contains a `Link` with the `dataPrimaryLink` prop set to `true`, clicking the row will trigger navigation to the link's `url` instead of selecting the row as well as trigger the callback set on the `IndexTable` `onNavigation` prop if provided.
@@ -1138,7 +1138,7 @@ function ClickThroughLinkIndexTableExample() {
}
```
-### Index table with clickable button column
+### With clickable button column
Use when clicking the row should navigate merchants to another page, like the row item's detail page. When a row contains a `Button` with the `dataPrimaryLink` prop set to `true`, clicking the row will navigate to the `Button` `url` if set instead of selecting the row as well as trigger the callback set on the `IndexTable` `onNavigation` prop if provided.
@@ -1217,7 +1217,7 @@ function ClickThroughButtonIndexTableExample() {
}
```
-### Index table without checkboxes
+### Without checkboxes
An index table without checkboxes and bulk actions.
@@ -1279,7 +1279,7 @@ function IndexTableWithoutCheckboxesExample() {
}
```
-### IndexTable with all of its elements
+### With all of its elements
Use as a broad example that includes most of the elements and props available to index table.
@@ -1463,7 +1463,7 @@ function IndexTableWithAllElementsExample() {
}
```
-### Small screen IndexTable with all of its elements
+### Small screen with all of its elements
Use as a broad example that includes most of the elements and props available to index table.
diff --git a/polaris-react/src/components/InlineError/README.md b/polaris-react/src/components/InlineError/README.md
index de6c5394d34..0b58725332e 100644
--- a/polaris-react/src/components/InlineError/README.md
+++ b/polaris-react/src/components/InlineError/README.md
@@ -58,7 +58,7 @@ Inline error messages should:
## Examples
-### Basic inline error
+### Default
Use when the merchant has entered information that is not valid into multiple fields inside of a form, or needs to be displayed in a non-standard position in the form layout.
diff --git a/polaris-react/src/components/KeyboardKey/README.md b/polaris-react/src/components/KeyboardKey/README.md
index c5cfc34df92..80e885790f5 100644
--- a/polaris-react/src/components/KeyboardKey/README.md
+++ b/polaris-react/src/components/KeyboardKey/README.md
@@ -47,7 +47,7 @@ The shortcut description should describe what action is taken when merchants tap
## Examples
-### List of keyboard shortcuts
+### Default
Use to list a related set of keyboard shortcuts.
diff --git a/polaris-react/src/components/Layout/README.md b/polaris-react/src/components/Layout/README.md
index e90da7bc2e7..d7bec28ba9d 100644
--- a/polaris-react/src/components/Layout/README.md
+++ b/polaris-react/src/components/Layout/README.md
@@ -63,7 +63,7 @@ Annotated section descriptions should:
## Examples
-### One-column layout
+### One-column
Use to have a single section on its own in a full-width container. Use for simple pages and as a container for banners and other full-width content.
@@ -417,7 +417,7 @@ Use to create a ⅓ + ⅓ + ⅓ layout. Can be used to display content of equal
```
-### Annotated layout
+### Annotated
Use for settings pages. When settings are grouped thematically in annotated sections, the title and description on each section helps merchants quickly find the setting they’re looking for.
@@ -449,7 +449,7 @@ Use for settings pages. When settings are grouped thematically in annotated sect
```
-### Annotated layout using plain Layout.Sections
+### Annotated with sections
Use for settings pages. When settings are grouped thematically in annotated sections, the title and description on each section helps merchants quickly find the setting they’re looking for.
@@ -490,7 +490,7 @@ Use for settings pages. When settings are grouped thematically in annotated sect
```
-### Annotated layout with Banner at the top
+### Annotated with Banner at the top
Use for settings pages that need a banner or other content at the top.
diff --git a/polaris-react/src/components/Link/README.md b/polaris-react/src/components/Link/README.md
index 29c54035917..4e6801c6d54 100644
--- a/polaris-react/src/components/Link/README.md
+++ b/polaris-react/src/components/Link/README.md
@@ -57,7 +57,7 @@ The link component should follow the content guidelines for [links](https://pola
## Examples
-### Default links
+### Default
Use for text links in larger spans of text.
@@ -65,7 +65,7 @@ Use for text links in larger spans of text.
fulfilling orders
```
-### Monochrome link
+### Monochrome
Use for text links that are the same color as the surrounding text.
@@ -75,7 +75,7 @@ Use for text links that are the same color as the surrounding text.
```
-### Monochrome link in a banner
+### Monochrome in a banner
Monochrome styles will be applied to links rendered within a `Banner`.
@@ -86,7 +86,7 @@ Monochrome styles will be applied to links rendered within a `Banner`.
```
-### External link
+### External
Use for text links that should open in a new browser tab (or window, depending on the merchant’s browser settings). Use this only when opening a page in the same tab might disrupt the merchant’s workflow.
diff --git a/polaris-react/src/components/List/README.md b/polaris-react/src/components/List/README.md
index 71f860f6257..986736ac705 100644
--- a/polaris-react/src/components/List/README.md
+++ b/polaris-react/src/components/List/README.md
@@ -73,7 +73,7 @@ Every item in a list should:
## Examples
-### Bulleted list
+### Bulleted
Use for a text-only list of related items that don’t need to be in a specific order and don’t require an icon or other indicator.
@@ -85,7 +85,7 @@ Use for a text-only list of related items that don’t need to be in a specific
```
-### Numbered list
+### Numbered
Use for a text-only list of related items when an inherent order, priority, or sequence needs to be communicated.
diff --git a/polaris-react/src/components/Listbox/README.md b/polaris-react/src/components/Listbox/README.md
index 3373869e040..c637c3d9fd6 100644
--- a/polaris-react/src/components/Listbox/README.md
+++ b/polaris-react/src/components/Listbox/README.md
@@ -62,7 +62,7 @@ Location picker
## Examples
-### Basic Listbox
+### Default
Basic implementation of a control element used to let merchants select options
@@ -78,7 +78,7 @@ function BaseListboxExample() {
}
```
-### Listbox with Loading
+### With Loading
Implementation of a control element showing a loading indicator to let merchants know more options are being loaded
@@ -95,7 +95,7 @@ function ListboxWithLoadingExample() {
}
```
-### Listbox with Action
+### With Action
Implementation of a control element used to let merchants take an action
@@ -118,7 +118,7 @@ function ListboxWithActionExample() {
}
```
-### Listbox with custom element
+### With custom element
Implementation of a control with custom rendering of options
diff --git a/polaris-react/src/components/Loading/README.md b/polaris-react/src/components/Loading/README.md
index 07591183735..d23ca8199d4 100644
--- a/polaris-react/src/components/Loading/README.md
+++ b/polaris-react/src/components/Loading/README.md
@@ -16,7 +16,7 @@ The loading component is used to indicate to merchants that a page is loading or
## Examples
-### Default loading
+### Default
Use to indicate that the page is loading.
diff --git a/polaris-react/src/components/MediaCard/README.md b/polaris-react/src/components/MediaCard/README.md
index a4411ad4366..72d944302c8 100644
--- a/polaris-react/src/components/MediaCard/README.md
+++ b/polaris-react/src/components/MediaCard/README.md
@@ -122,7 +122,7 @@ Add a menu item
## Examples
-### Basic media card
+### Default
Use to surface educational information about a feature or opportunity.
@@ -149,7 +149,7 @@ Use to surface educational information about a feature or opportunity.
```
-### Basic media card with small visual
+### With small visual
Use when there are limited vertical space, or when the card should be less prominent.
@@ -177,7 +177,7 @@ Use when there are limited vertical space, or when the card should be less promi
```
-### Media card with secondary action
+### With secondary action
Use when there are two distinct actions merchants can take on the information in the card.
@@ -205,7 +205,7 @@ Use when there are two distinct actions merchants can take on the information in
```
-### Media card with no actions
+### With no actions
Use when media card does not require any actions.
diff --git a/polaris-react/src/components/Modal/README.md b/polaris-react/src/components/Modal/README.md
index 0ba2a10935a..da6a9c0f6ed 100644
--- a/polaris-react/src/components/Modal/README.md
+++ b/polaris-react/src/components/Modal/README.md
@@ -212,7 +212,7 @@ Body content should be:
## Examples
-### Basic modal
+### Default
Use as the default option for a modal.
@@ -257,7 +257,7 @@ function ModalExample() {
}
```
-### Modal with primary action
+### With primary action
Use to let merchants take a key action.
@@ -330,7 +330,7 @@ function ModalWithPrimaryActionExample() {
}
```
-### Modal with primary and secondary actions
+### With primary and secondary actions
Use to let merchants take key actions at the bottom of the modal.
@@ -421,7 +421,7 @@ function ModalWithPrimaryAndSecondaryActionsExample() {
}
```
-### Large modal
+### Large
Use when you need to increase the width of your modal.
@@ -478,7 +478,7 @@ function LargeModalExample() {
}
```
-### Small modal
+### Small
Use when you need to decrease the width of your modal.
@@ -535,7 +535,7 @@ function SmallModalExample() {
}
```
-### Modal without a title
+### Without a title
A title is required for accessibility, but you may hide it.
@@ -581,7 +581,7 @@ function ModalWithoutTitleExample() {
}
```
-### Modal with scroll listener
+### With scroll listener
Use to implement infinite scroll of modal content.
@@ -619,10 +619,9 @@ function ModalWithScrollListenerExample() {
}
```
-### Modal with activator ref
+### With activator ref
-Provide an activator ref when it’s more convenient than providing an element. This ensures proper focus management when closing the modal.
-See the [accessibility features of a modal](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html) for more information regarding focus.
+Provide an activator ref when it’s more convenient than providing an element. This ensures proper focus management when closing the modal. See the [accessibility features of a modal](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html) for more information regarding focus.
```jsx
function ModalExample() {
@@ -676,10 +675,9 @@ function ModalExample() {
}
```
-### Modal without an activator prop
+### Without an activator prop
-Use an external activator when technical limitations prevent you from passing the activator as an element or a ref. Make sure to focus the activator on close when choosing this approach.
-See the [accessibility features of a modal](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html) for more information regarding focus.
+Use an external activator when technical limitations prevent you from passing the activator as an element or a ref. Make sure to focus the activator on close when choosing this approach. See the [accessibility features of a modal](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html) for more information regarding focus.
```jsx
function ModalExample() {
diff --git a/polaris-react/src/components/Navigation/README.md b/polaris-react/src/components/Navigation/README.md
index 84e4e0a786e..57e25c2d282 100644
--- a/polaris-react/src/components/Navigation/README.md
+++ b/polaris-react/src/components/Navigation/README.md
@@ -187,7 +187,7 @@ Action allows a complementary icon-only action to render next to the section tit
## Examples
-### Basic navigation
+### Default
Use to present a navigation menu in the [frame](https://polaris.shopify.com/components/frame).
@@ -218,7 +218,7 @@ Use to present a navigation menu in the [frame](https://polaris.shopify.com/comp
```
-### Navigation with multiple secondary navigations
+### With multiple secondary navigations
Use to present a secondary action, related to a section and to title the section.
@@ -296,7 +296,7 @@ Use to present a secondary action, related to a section and to title the section
```
-### Navigation with an active root item with secondary navigation items
+### With an active root item with secondary navigation items
Use to present a secondary action, related to a section and to title the section.
@@ -342,7 +342,7 @@ Use to present a secondary action, related to a section and to title the section
```
-### Navigation with a secondary action for a section and a section title
+### With a secondary action for a section and a section title
Use to present a secondary action, related to a section and to title the section.
@@ -387,7 +387,7 @@ Use to present a secondary action, related to a section and to title the section
```
-### Navigation with a secondary action for an item
+### With a secondary action for an item
Use to add a different action for an item than the main action, like to view or add something.
@@ -425,7 +425,7 @@ Use to add a different action for an item than the main action, like to view or
```
-### Navigation with section rollup
+### With section rollup
Use to show a limited number of items in a section with an option to expand the remaining items.
@@ -461,7 +461,7 @@ Use to show a limited number of items in a section with an option to expand the
```
-### Navigation with section separator
+### With section separator
Use to add a horizontal line below the section.
@@ -501,7 +501,7 @@ Use to add a horizontal line below the section.
```
-### Navigation with various states and secondary elements
+### With various states and secondary elements
This example showcases the many elements that can compose a navigation, especially useful for testing purposes.
@@ -646,7 +646,7 @@ This example showcases the many elements that can compose a navigation, especial
```
-### Navigation with aria-labelledby
+### With aria-labelledby
This example shows how to add an aria-labelledby to add a hidden label to the `nav` element.
@@ -680,7 +680,7 @@ This example shows how to add an aria-labelledby to add a hidden label to the `n
```
-### Navigation using Major icons
+### Using Major icons
This example shows how to use the shouldResizeIcon prop when using Major icons
diff --git a/polaris-react/src/components/OptionList/README.md b/polaris-react/src/components/OptionList/README.md
index 2cc1cc8fe29..066f34da781 100644
--- a/polaris-react/src/components/OptionList/README.md
+++ b/polaris-react/src/components/OptionList/README.md
@@ -50,7 +50,7 @@ Each item in an option list should be clear and descriptive.
## Examples
-### Simple option list
+### Default
Use for a group of similar selectable items when only one should be selectable at once.
@@ -77,7 +77,7 @@ function OptionListExample() {
}
```
-### Multiple option list
+### Multiple
Use when you have a group of similar selectable items and more than one item can be selected at once.
@@ -105,7 +105,7 @@ function MultipleOptionListExample() {
}
```
-### Option list with sections
+### With sections
Use sections when you have multiple groups of similar selectable items.
@@ -141,7 +141,7 @@ function OptionListWithSectionsExample() {
}
```
-### Option list in a popover
+### In a popover
Use when a set of selections won’t fit in the available screen space.
diff --git a/polaris-react/src/components/Page/README.md b/polaris-react/src/components/Page/README.md
index a51e007c435..0e579293bda 100644
--- a/polaris-react/src/components/Page/README.md
+++ b/polaris-react/src/components/Page/README.md
@@ -117,7 +117,7 @@ Add a menu item
## Examples
-### Page with all header elements
+### Default
Use for detail pages, which should have pagination and breadcrumbs, and also often have several actions.
@@ -164,7 +164,7 @@ Use for detail pages, which should have pagination and breadcrumbs, and also oft
```
-### Page with custom primary action
+### With custom primary action
Use to create a custom primary action.
@@ -190,7 +190,7 @@ Use to create a custom primary action.
```
-### Page without primary action in header
+### Without primary action in header
Use when a primary action functions better as part of the page content instead of in the page header.
@@ -219,7 +219,7 @@ Use when a primary action functions better as part of the page content instead o
```
-### Page with destructive secondary action
+### With destructive secondary action
Used to visually indicate that the secondary page action is destructive.
@@ -232,7 +232,7 @@ Used to visually indicate that the secondary page action is destructive.
```
-### Page with custom secondary action
+### With custom secondary action
Use to create a custom secondary action.
@@ -254,7 +254,7 @@ Use to create a custom secondary action.
```
-### Page with subtitle
+### With subtitle
Use when the page title benefits from secondary content.
@@ -271,7 +271,7 @@ Use when the page title benefits from secondary content.
```
-### Page with external link
+### With external link
Use when a secondary action links to another website. Actions marked external open in a new browser tab.
@@ -294,7 +294,7 @@ Use when a secondary action links to another website. Actions marked external op
```
-### Page without pagination
+### Without pagination
Use when the page doesn’t represent a list of objects or a detail view for an object.
@@ -310,7 +310,7 @@ Use when the page doesn’t represent a list of objects or a detail view for an
```
-### Full-width page
+### Full-width
Use for layouts that benefit from more screen width, such as wide tables or lists.
@@ -330,7 +330,7 @@ Use for layouts that benefit from more screen width, such as wide tables or list
```
-### Narrow width page
+### Narrow width
Use a narrow width layout if the page supports a single unified task. When merchants must review the entire page contents to complete their goal, this layout helps focus their attention in a single path from top to bottom.
@@ -351,7 +351,7 @@ Use a narrow width layout if the page supports a single unified task. When merch
```
-### Page with action groups
+### With action groups
Use action groups for sets of actions that relate to one another, particularly when there are too many to display as secondary actions. Note that these groups will be further rolled up into a single action for smaller displays so that actions do not wrap or overflow the page bounds.
@@ -389,7 +389,7 @@ Use action groups for sets of actions that relate to one another, particularly w
```
-### Page with content after title (title metadata)
+### With content after title
Title metadata appears immediately after the page’s title. Use it to communicate brief, important and non-interactive status information about an entire page.
@@ -411,7 +411,7 @@ Title metadata appears immediately after the page’s title. Use it to communica
```
-### Page with divider
+### With divider
Use when the page needs visual separation between the page header and the content.
diff --git a/polaris-react/src/components/PageActions/README.md b/polaris-react/src/components/PageActions/README.md
index 58dbc5fa564..54a8e8e0ecd 100644
--- a/polaris-react/src/components/PageActions/README.md
+++ b/polaris-react/src/components/PageActions/README.md
@@ -84,7 +84,7 @@ Buttons should be:
## Examples
-### Default page actions
+### Default
Used on a resource page (such as an individual order or product page) to let merchants take key actions at the bottom of the page. Usually, the primary action is Save and the secondary action is Delete.
@@ -114,7 +114,7 @@ Not all page actions require a secondary action.
/>
```
-### Page actions with custom primary action
+### With custom primary action
Use to create a custom primary action.
@@ -140,7 +140,7 @@ Use to create a custom primary action.
/>
```
-### Page actions with custom secondary action
+### With custom secondary action
Use to create a custom secondary action.
diff --git a/polaris-react/src/components/Pagination/README.md b/polaris-react/src/components/Pagination/README.md
index 600e3ad3163..69b13f370bf 100644
--- a/polaris-react/src/components/Pagination/README.md
+++ b/polaris-react/src/components/Pagination/README.md
@@ -47,7 +47,7 @@ iOS and Android pagination should:
## Examples
-### Default pagination
+### Default
Use for pagination at the bottom of lists.
@@ -64,7 +64,7 @@ Use for pagination at the bottom of lists.
/>
```
-### Pagination with keyboard navigation
+### With keyboard navigation
Attach standard keyboard shortcuts to important pagination controls.
@@ -87,7 +87,7 @@ Attach standard keyboard shortcuts to important pagination controls.
```
-### Pagination with label
+### With label
Add a label between navigation buttons to provide more context of the content being viewed by the user.
diff --git a/polaris-react/src/components/Popover/README.md b/polaris-react/src/components/Popover/README.md
index 040e68da86f..a34fc83f782 100644
--- a/polaris-react/src/components/Popover/README.md
+++ b/polaris-react/src/components/Popover/README.md
@@ -115,7 +115,7 @@ If the popover includes a series of navigational links, each item should:
## Examples
-### Popover with action list
+### With action list
Use when presenting a set of actions in a disclosable menu.
@@ -152,7 +152,7 @@ function PopoverWithActionListExample() {
}
```
-### Popover with content and actions
+### With content and actions
Use to present a combination of content, instructions, and actions in a panel for tasks that are of low or secondary importance to the current page. When used this way, popovers provide useful entry points to related features without overwhelming merchants.
@@ -200,7 +200,7 @@ function PopoverContentExample() {
}
```
-### Popover with form components
+### With form components
Use to present secondary input tasks on demand.
@@ -247,7 +247,7 @@ function PopoverFormExample() {
}
```
-### Popover with lazy loaded list
+### With lazy loaded list
Use to present merchants with a list that dynamically loads more items on scroll or arrow down.
diff --git a/polaris-react/src/components/ProgressBar/README.md b/polaris-react/src/components/ProgressBar/README.md
index 68c3385b704..fca7996b131 100644
--- a/polaris-react/src/components/ProgressBar/README.md
+++ b/polaris-react/src/components/ProgressBar/README.md
@@ -34,7 +34,7 @@ Use this component to visually represent the completion of a task or operation.
```
-### Small progress bar
+### Small
Use the size option when you need to increase or decrease the visual weight of the progress bar.
@@ -42,7 +42,7 @@ Use the size option when you need to increase or decrease the visual weight of t
```
-### Colored progress bars
+### Colored
Use the color option when you need to blend the progress bar in a context that calls for it, such as a progress toward success or where it’s the primary focus.
@@ -54,7 +54,7 @@ Use the color option when you need to blend the progress bar in a context that c
```
-### Non-animated progress bar
+### Non-animated
Use the animated prop when you want to show a static progress bar.
diff --git a/polaris-react/src/components/RadioButton/README.md b/polaris-react/src/components/RadioButton/README.md
index 4ee0637d408..282f3fe88ee 100644
--- a/polaris-react/src/components/RadioButton/README.md
+++ b/polaris-react/src/components/RadioButton/README.md
@@ -88,7 +88,7 @@ Toggle values should:
## Examples
-### Default radio button
+### Default
Use radio buttons where merchants must make a single selection.
diff --git a/polaris-react/src/components/RangeSlider/README.md b/polaris-react/src/components/RangeSlider/README.md
index 7ebbea53b10..cea9db47d99 100644
--- a/polaris-react/src/components/RangeSlider/README.md
+++ b/polaris-react/src/components/RangeSlider/README.md
@@ -109,7 +109,7 @@ Error messages should:
## Examples
-### Default range slider
+### Default
Use when a single value between `0 and 100` needs to be selected.
@@ -135,7 +135,7 @@ function RangeSliderExample() {
}
```
-### Min and max range control
+### With min and max
Use when a single value needs to be selected from a number range with a specific minimum and maximum.
@@ -163,7 +163,7 @@ function RangeSliderWithPreciseRangeControlExample() {
}
```
-### Step incremented range control
+### With steps
Use when a single value of a specific increment needs to be selected from a range of numbers.
@@ -192,11 +192,9 @@ function RangeSliderWithPreciseRangeControlExample() {
}
```
-### Prefix and suffix elements
+### With prefix and suffix
-Use when the start or end of the range input benefits from additional content.
-
-The height of the range slider component varies based on the presence or absence of props like `label` and `helpText`. Setting a React element on the `prefix` and `suffix` props is supported to enable control of spacing and alignment.
+Use when the start or end of the range input benefits from additional content. The height of the range slider component varies based on the presence or absence of props like `label` and `helpText`. Setting a React element on the `prefix` and `suffix` props is supported to enable control of spacing and alignment.
```jsx
function RangeSliderWithPrefixAndSuffixExample() {
@@ -229,7 +227,7 @@ function RangeSliderWithPrefixAndSuffixExample() {
}
```
-### Dual thumb range slider
+### With dual thumb
Use when two values need to be selected from a range of numbers.
diff --git a/polaris-react/src/components/ResourceItem/README.md b/polaris-react/src/components/ResourceItem/README.md
index dfa1b741df1..39752934ef6 100644
--- a/polaris-react/src/components/ResourceItem/README.md
+++ b/polaris-react/src/components/ResourceItem/README.md
@@ -32,7 +32,7 @@ Resource items represent specific objects within a collection, such as products
## Examples
-### Simple resource item
+### Default
A basic resource item with its details filled in at the point of use.
@@ -78,7 +78,7 @@ function ResourceItemExample() {
}
```
-### Item with media
+### With media
The media element can hold an [avatar](https://polaris.shopify.com/components/avatar), [thumbnail](https://polaris.shopify.com/components/thumbnail), or other small-format graphic.
@@ -120,7 +120,7 @@ The media element can hold an [avatar](https://polaris.shopify.com/components/av
```
-### Item with shortcut actions
+### With shortcut actions
Shortcut actions present popular actions from the resource’s details page for easy access. A shortcut action should be available on every item in the list.
@@ -167,7 +167,7 @@ Shortcut actions present popular actions from the resource’s details page for
```
-### Item with vertical alignment
+### With vertical alignment
Use to adjust the vertical alignment of item content.
diff --git a/polaris-react/src/components/ResourceList/README.md b/polaris-react/src/components/ResourceList/README.md
index 5ae6c075310..df1559a098e 100644
--- a/polaris-react/src/components/ResourceList/README.md
+++ b/polaris-react/src/components/ResourceList/README.md
@@ -40,7 +40,7 @@ Resource lists can also:
## Examples
-### Simple resource list
+### Default
A resource list with simple items and no bulk actions, sorting, or filtering.
@@ -84,7 +84,7 @@ A resource list with simple items and no bulk actions, sorting, or filtering.
```
-### Resource list with empty state
+### With empty state
Use to explain the purpose of a list of resources when no resources exist yet. This allows a smooth transition from a list in a loading state to a list where zero, one, or many resources exist.
@@ -137,7 +137,7 @@ function ResourceListWithEmptyStateExample() {
}
```
-### Resource list with selection and no bulk actions
+### With selection and no bulk actions
A resource list with simple items and selection.
@@ -199,7 +199,7 @@ function ResourceListWithSelectionExample() {
}
```
-### Resource list with bulk actions
+### With bulk actions
Allows merchants to select items and perform an action on the selection.
@@ -284,7 +284,7 @@ function ResourceListWithBulkActionsExample() {
}
```
-### Resource list with loading state
+### With loading state
Notifies merchants that list items are being processed.
@@ -370,7 +370,7 @@ function ResourceListWithLoadingExample() {
}
```
-### Resource list with total resource count
+### With total count
Use to indicate that the number of resources shown is a subset of the total number of resources in the list.
@@ -420,7 +420,7 @@ function ResourceListWithTotalItemsCount() {
}
```
-### Resource list with sorting
+### With sorting
Allows merchants to change the way the list is sorted by selecting one of several options from a [Select](https://polaris.shopify.com/components/select) control.
@@ -488,7 +488,7 @@ function ResourceListWithSortingExample() {
}
```
-### Resource list with alternate tool
+### With alternate tool
Allows merchants to add an alternate tool in the current sort option location when sort may not be the most relevant action for the current list.
@@ -546,7 +546,7 @@ function ResourceListWithAlternateToolExample() {
}
```
-### Resource list with filtering
+### With filtering
Allows merchants to narrow the resource list to a subset of the original items.
@@ -672,7 +672,7 @@ function ResourceListWithFilteringExample() {
}
```
-### Resource list with a custom empty search result state
+### With a custom empty search result state
Allows merchants to narrow the resource list to a subset of the original items. If the filters or search applied return no results, then display a custom empty search state.
@@ -789,7 +789,7 @@ function ResourceListWithFilteringExample() {
}
```
-### Resource list with item shortcut actions
+### With item shortcut actions
Shortcut actions are intended to provide quick access to popular actions from the resource’s details page. They are shown when the mouse is hovered over the list item, and are not shown on small screen devices, so the action must also be accessible in another way.
@@ -845,7 +845,7 @@ Shortcut actions are intended to provide quick access to popular actions from th
```
-### Resource list with persistent item shortcut actions
+### With persistent item shortcut actions
Use persistent shortcut actions in rare cases when the action cannot be made available on the item’s details page. Persistent shortcut actions roll up into an overflow menu on small screens.
@@ -902,7 +902,7 @@ Use persistent shortcut actions in rare cases when the action cannot be made ava
```
-### Resource list with multiselect
+### With multiselect
Allows merchants to select or deselect multiple items at once.
@@ -1017,7 +1017,7 @@ function ResourceListExample() {
}
```
-### Resource list with all of its elements
+### With all of its elements
Use as a broad example that includes most props available to resource list.
diff --git a/polaris-react/src/components/Scrollable/README.md b/polaris-react/src/components/Scrollable/README.md
index 888142261f6..4c59dcf7bbf 100644
--- a/polaris-react/src/components/Scrollable/README.md
+++ b/polaris-react/src/components/Scrollable/README.md
@@ -38,7 +38,7 @@ Scrollable containers are cards with scrolling functionality, and should follow
## Examples
-### Default scrollable container
+### Default
Use when you need to make a region within the page independently scrollable. It’s often used in modals and other panes where it’s helpful to provide an extra visual cue that content exists below or above the fold.
@@ -64,7 +64,7 @@ Use when you need to make a region within the page independently scrollable. It
```
-### Scroll to child component
+### To child component
Use when you need to programmatically scroll a child component into view in the scrollable container.
diff --git a/polaris-react/src/components/Select/README.md b/polaris-react/src/components/Select/README.md
index 9b123cc2989..70cce702a4d 100644
--- a/polaris-react/src/components/Select/README.md
+++ b/polaris-react/src/components/Select/README.md
@@ -86,7 +86,7 @@ Options should:
## Examples
-### Default select
+### Default
Presents a classic dropdown menu or equivalent picker as determined by merchants’ browsers.
@@ -113,7 +113,7 @@ function SelectExample() {
}
```
-### Select with inline label
+### With inline label
Use only for cases where the select must fit on a single line, such as in a toolbar.
@@ -144,7 +144,7 @@ function InlineLabelExample() {
}
```
-### Disabled select
+### Disabled
Use for selections that aren’t currently available. The surrounding interface should make it clear why the select box is disabled and how to activate it.
@@ -160,7 +160,7 @@ Use for selections that aren’t currently available. The surrounding interface
/>
```
-### Select with prefix
+### With prefix
Renders any React element to the left of individual select options. Does not show in the dropdown.
@@ -194,7 +194,7 @@ function PrefixExample() {
}
```
-### Select with validation error
+### With validation error
Use to let merchants know if there’s a problem with their selection. For selects, a selection is typically invalid only when using a placeholder option (“Select”) and no other selection has been made.
@@ -216,7 +216,7 @@ function ValidationErrorExample() {
}
```
-### Select with separate validation error
+### With separate validation error
Use to let merchants know when their select input is invalid in the context of a group of form inputs that the select depends on.
diff --git a/polaris-react/src/components/SettingToggle/README.md b/polaris-react/src/components/SettingToggle/README.md
index dd43320c5e9..b2db39002aa 100644
--- a/polaris-react/src/components/SettingToggle/README.md
+++ b/polaris-react/src/components/SettingToggle/README.md
@@ -67,7 +67,7 @@ For example, if the setting toggle is on, the button should say “Deactivate”
## Examples
-### Default setting toggle
+### Default
Use on settings pages to allow merchants to toggle a setting that has an activated or a deactivated state.
diff --git a/polaris-react/src/components/Sheet/README.md b/polaris-react/src/components/Sheet/README.md
index ac5feb64fc6..71d52c99b33 100644
--- a/polaris-react/src/components/Sheet/README.md
+++ b/polaris-react/src/components/Sheet/README.md
@@ -58,7 +58,7 @@ The sheet component is best used in cases where the merchant needs to see elemen
## Examples
-### Basic sheet
+### Default
Use as the default option for a sheet.
diff --git a/polaris-react/src/components/SkeletonBodyText/README.md b/polaris-react/src/components/SkeletonBodyText/README.md
index 99f0c982049..4d27e710b28 100644
--- a/polaris-react/src/components/SkeletonBodyText/README.md
+++ b/polaris-react/src/components/SkeletonBodyText/README.md
@@ -49,7 +49,7 @@ Use skeleton body text for static content or use placeholder content for dynamic
## Examples
-### Default paragraph
+### Default
Use this component to represent a block of content being loaded. For example, you could use it to represent an entire product description card on the product page.
diff --git a/polaris-react/src/components/SkeletonDisplayText/README.md b/polaris-react/src/components/SkeletonDisplayText/README.md
index 2cad30e75e0..c5cdaa627f2 100644
--- a/polaris-react/src/components/SkeletonDisplayText/README.md
+++ b/polaris-react/src/components/SkeletonDisplayText/README.md
@@ -58,7 +58,7 @@ Show skeleton display text for dynamic page titles.
## Examples
-### Medium and large display text
+### Medium and large
Use this component to represent medium and large display text such as large metrics on the reports list page, or for page titles.
@@ -66,7 +66,7 @@ Use this component to represent medium and large display text such as large metr
```
-### Extra large display text
+### Extra large
Use this component to represent extra large display text.
@@ -74,7 +74,7 @@ Use this component to represent extra large display text.
```
-### Small display text
+### Small
Use this component to represent small display text such as content headings.
diff --git a/polaris-react/src/components/SkeletonPage/README.md b/polaris-react/src/components/SkeletonPage/README.md
index ec5b2037e93..b1b544bc5e7 100644
--- a/polaris-react/src/components/SkeletonPage/README.md
+++ b/polaris-react/src/components/SkeletonPage/README.md
@@ -50,7 +50,7 @@ Use placeholder content that will change when the page fully loads. This will co
## Examples
-### Page with dynamic content
+### With dynamic content
Use this component to compose a loading version of a page where the page title and header content are dynamic, meaning, the content changes.
@@ -102,7 +102,7 @@ Use this component to compose a loading version of a page where the page title a
```
-### Page with static content
+### With static content
Use this component to compose a loading version of a page where the page title and header content are known and stay the same.
diff --git a/polaris-react/src/components/SkeletonTabs/README.md b/polaris-react/src/components/SkeletonTabs/README.md
index bf5ed8ca7a1..3f73de2e18f 100644
--- a/polaris-react/src/components/SkeletonTabs/README.md
+++ b/polaris-react/src/components/SkeletonTabs/README.md
@@ -25,7 +25,7 @@ Skeleton tabs component should:
## Examples
-### Simple skeleton tabs
+### Default
```jsx
@@ -33,7 +33,7 @@ Skeleton tabs component should:
```
-### Skeleton tabs with a custom count
+### With a custom count
```jsx
diff --git a/polaris-react/src/components/SkeletonThumbnail/README.md b/polaris-react/src/components/SkeletonThumbnail/README.md
index 90911119424..59ed4fac517 100644
--- a/polaris-react/src/components/SkeletonThumbnail/README.md
+++ b/polaris-react/src/components/SkeletonThumbnail/README.md
@@ -25,7 +25,7 @@ Skeleton thumbnail component should:
## Examples
-### Medium thumbnail
+### Medium
Use this component to represent medium thumbnails.
@@ -33,7 +33,7 @@ Use this component to represent medium thumbnails.
```
-### Large thumbnail
+### Large
Use this component to represent large thumbnails.
@@ -41,7 +41,7 @@ Use this component to represent large thumbnails.
```
-### Small thumbnail
+### Small
Use this component to represent small thumbnails.
@@ -49,7 +49,7 @@ Use this component to represent small thumbnails.
```
-### Extra small thumbnail
+### Extra small
Use this component to represent extra small thumbnails.
diff --git a/polaris-react/src/components/Spinner/README.md b/polaris-react/src/components/Spinner/README.md
index d8efee8db90..95c49b08a97 100644
--- a/polaris-react/src/components/Spinner/README.md
+++ b/polaris-react/src/components/Spinner/README.md
@@ -17,7 +17,7 @@ Spinners are used to notify merchants that their action is being processed. For
## Examples
-### Default spinner
+### Default
Use to notify merchants that their requested action is being processed.
@@ -25,7 +25,7 @@ Use to notify merchants that their requested action is being processed.
```
-### Small spinner
+### Small
Smaller than the default spinner.
@@ -33,7 +33,7 @@ Smaller than the default spinner.
```
-### Spinner with focus management
+### With focus management
Use to direct the focus state from the control to the spinner, to the content.
diff --git a/polaris-react/src/components/Stack/README.md b/polaris-react/src/components/Stack/README.md
index c9de2e56d72..102d720a9c8 100644
--- a/polaris-react/src/components/Stack/README.md
+++ b/polaris-react/src/components/Stack/README.md
@@ -37,7 +37,7 @@ Stacks should:
## Examples
-### Default behavior
+### Default
Use to quickly lay out a horizontal row of components and maintain their relative sizes. On small screens, children rows wrap down to additional rows as needed.
@@ -50,7 +50,7 @@ Use to quickly lay out a horizontal row of components and maintain their relativ
```
-### Non-wrapping Stacks
+### Non-wrapping
Use to create a stack where the children will not wrap to new rows on small screens. As noted above, the wrap option defaults to true. This means you must explicitly set it to false to turn it off.
@@ -63,7 +63,7 @@ Use to create a stack where the children will not wrap to new rows on small scre
```
-### Spacing options
+### Spacing
Use to control spacing of items in a stack in standard increments. Use tight for less spacing, loose for more spacing, or none to remove normal spacing altogether.
@@ -74,7 +74,7 @@ Use to control spacing of items in a stack in standard increments. Use tight for
```
-### Vertical centering with a stack
+### Vertical centering
Use to vertically center a set of items that have different heights.
@@ -104,7 +104,7 @@ Use to have the stack’s items fill the horizontal space in the container but m
```
-### Stack where items fill space evenly
+### Where items fill space evenly
Use to have the stack’s items fill the horizontal space in the container and be equal widths, regardless of their content.
@@ -116,7 +116,7 @@ Use to have the stack’s items fill the horizontal space in the container and b
```
-### Stack where a single item fills the remaining space
+### Where a single item fills the remaining space
Use for aligning buttons or secondary content to the right edge of another element, allowing it to wrap below on small screens.
diff --git a/polaris-react/src/components/Subheading/README.md b/polaris-react/src/components/Subheading/README.md
index 9243b0c69ea..e5568b1476b 100644
--- a/polaris-react/src/components/Subheading/README.md
+++ b/polaris-react/src/components/Subheading/README.md
@@ -35,7 +35,7 @@ Subheadings should follow the content guidelines for [headings and subheadings](
## Examples
-### Typographic subheading
+### Default
Used for the title of any sub-sections in top-level page sections.
diff --git a/polaris-react/src/components/Tabs/README.md b/polaris-react/src/components/Tabs/README.md
index 2cae74a808b..edfb5c6ea74 100644
--- a/polaris-react/src/components/Tabs/README.md
+++ b/polaris-react/src/components/Tabs/README.md
@@ -66,7 +66,7 @@ Where possible, follow this pattern when writing tabs.
## Examples
-### Default tabs
+### Default
Use for most cases, especially when the number of tabs may be more than three.
@@ -115,7 +115,7 @@ function TabsExample() {
}
```
-### Fitted tabs
+### Fitted
Use when tabs contain a few (2 or 3) items within a narrow column.
@@ -154,7 +154,7 @@ function FittedTabsExample() {
}
```
-### Tabs with badge content
+### With badge content
Use to inform a piece of information about the tabs.
@@ -201,7 +201,7 @@ function TabsWithBadgeExample() {
}
```
-### Tabs with custom disclosure
+### With custom disclosure
Use to provide information about the popover contents
diff --git a/polaris-react/src/components/Tag/README.md b/polaris-react/src/components/Tag/README.md
index db5172d8dbb..40479673c8b 100644
--- a/polaris-react/src/components/Tag/README.md
+++ b/polaris-react/src/components/Tag/README.md
@@ -27,7 +27,7 @@ Tags should:
## Examples
-### Default tag
+### Default
Use to signify the attributes of an object.
@@ -35,7 +35,7 @@ Use to signify the attributes of an object.
Wholesale
```
-### Removable tag
+### Removable
Use to allow merchants to remove attributes from an object.
@@ -68,7 +68,7 @@ function RemovableTagExample() {
}
```
-### Clickable tag
+### Clickable
Use to allow merchants to add attributes to an object.
@@ -76,7 +76,7 @@ Use to allow merchants to add attributes to an object.
console.log('Clicked')}>Wholesale
```
-### Tag with link
+### With link
Use to allow merchants to navigate to a resource. For example a customer segment or a smart collection
@@ -86,7 +86,7 @@ function URLTagExample() {
}
```
-### Tag with custom content
+### With custom content
Use when a tag needs to be visually distinguished from others, like when it's added automatically.
@@ -99,7 +99,7 @@ Use when a tag needs to be visually distinguished from others, like when it's ad
```
-### Removable tag with link
+### Removable with link
A removable attribute to an object that allows merchants to navigate to a resource.
diff --git a/polaris-react/src/components/TextContainer/README.md b/polaris-react/src/components/TextContainer/README.md
index 9adb90747d0..3f20f37b2dc 100644
--- a/polaris-react/src/components/TextContainer/README.md
+++ b/polaris-react/src/components/TextContainer/README.md
@@ -29,7 +29,7 @@ The closer the spacing, the closer the relationship between content topics. The
## Examples
-### Default text container
+### Default
Use this component for default vertical spacing.
@@ -43,7 +43,7 @@ Use this component for default vertical spacing.
```
-### Tight text container
+### Tight
Use the tight spacing option to relate content topics to each other.
@@ -57,7 +57,7 @@ Use the tight spacing option to relate content topics to each other.
```
-### Loose text container
+### Loose
Use the loose spacing option to separate concepts that are independent of each other.
diff --git a/polaris-react/src/components/TextField/README.md b/polaris-react/src/components/TextField/README.md
index 23c3186290e..0a33d69b168 100644
--- a/polaris-react/src/components/TextField/README.md
+++ b/polaris-react/src/components/TextField/README.md
@@ -112,7 +112,7 @@ For text field content guidelines, reference the [text fields experience](https:
## Examples
-### Default text field
+### Default
Use to allow merchants to provide text input when the expected input is short. For longer input, use the auto grow or multiline options.
@@ -133,7 +133,7 @@ function TextFieldExample() {
}
```
-### Number field
+### Number
Use when input text should be a number.
@@ -155,7 +155,7 @@ function NumberFieldExample() {
}
```
-### Email field
+### Email
Use when the text input should be an email address.
@@ -177,7 +177,7 @@ function EmailFieldExample() {
}
```
-### Multiline text field
+### Multiline
Use when the expected input could be more than one line. The field will automatically grow to accommodate additional text.
@@ -199,7 +199,7 @@ function MultilineFieldExample() {
}
```
-### Text field with hidden label
+### With hidden label
Use to visually hide the label when the text field’s purpose is clear from context. The label will remain available to screen readers. Use this option with care. In almost all cases, show the label.
@@ -247,7 +247,7 @@ function HiddenLabelExample() {
}
```
-### Text field with label action
+### With label action
Use when an optional, secondary action is closely associated with a text field. For example, on a field for entering a customs tariff code, a label action might be to look up the appropriate code from a table.
@@ -272,7 +272,7 @@ function LabelActionExample() {
}
```
-### TextField with right aligned text
+### With right aligned text
Use when input text should be aligned right.
@@ -301,7 +301,7 @@ function RightAlignExample() {
}
```
-### Text field with placeholder text
+### With placeholder text
Use to provide a short, non-essential hint about the expected input. Placeholder text is low-contrast, so don’t rely on it for important information.
@@ -326,7 +326,7 @@ function PlaceholderExample() {
}
```
-### Text field with help text
+### With help text
Use to show short instructional content below the text field. Help text works to help merchants understand how to fix errors that result from incorrect formatting (such as dates or passwords with specific character requirements). If more explanation is needed, link to the Shopify Help Center.
@@ -354,12 +354,9 @@ function HelpTextExample() {
}
```
-### Text field with prefix or suffix
+### With prefix or suffix
-Use as a special form of help text that works best inline.
-
-- Use a prefix for things like currency symbols (“\$”, “¥”, “£”).
-- Use suffix for things like units of measure (“in”, “cm”).
+Use as a special form of help text that works best inline. Use a prefix for things like currency symbols (“\$”, “¥”, “£”). Use suffix for things like units of measure (“in”, “cm”).
```jsx
function PrefixExample() {
@@ -383,7 +380,7 @@ function PrefixExample() {
}
```
-### Text field with vertical content
+### With vertical content
Use to include custom vertical content above the input value, like selected tags.
@@ -419,11 +416,9 @@ function VerticalContent() {
}
```
-### Text field with connected fields
-
-Use when a text field and several related fields make up a logical unit.
+### With connected fields
-If inputting weight as a number and a separate unit of measurement, use a text field with a [select dropdown menu](https://polaris.shopify.com/components/select) (for example “kg”, “lb”) as a connected field.
+Use when a text field and several related fields make up a logical unit. If inputting weight as a number and a separate unit of measurement, use a text field with a [select dropdown menu](https://polaris.shopify.com/components/select) (for example “kg”, “lb”) as a connected field.
```jsx
function ConnectedFieldsExample() {
@@ -459,7 +454,7 @@ function ConnectedFieldsExample() {
}
```
-### Text field with validation error
+### With validation error
Use to let merchants know if their input is valid or if there’s an error. Whenever possible, validate input as soon as merchants have finished interacting with a field (but not before). If a field already has an error, validate and remove errors as merchants type so they can immediately see when an error has been fixed.
@@ -484,18 +479,10 @@ function ValidationErrorExample() {
}
```
-### Text field with separate validation error
+### With separate validation error
Use to let merchants know when their text field input is invalid in the context of a group of form inputs that the text field depends on.
-When the `error` prop has a boolean value of `true`, the text field component indicates to merchants that their input is invalid without rendering an error message directly below it. It anticipates that an inline error component exists separately within the form.
-
-To render an invalid text field and its validation error separately:
-
-- Set a unique identifier on the text field component `id` prop
-- Set a boolean on the text field component `error` prop
-- Use an [inline error component](https://polaris.shopify.com/components/inline-error) to describe the invalid text field input, and set its `fieldID` prop to be the same unique indentifier as the text field component’s `id`
-
```jsx
function SeparateValidationErrorExample() {
const [textFieldValue, setTextFieldValue] = useState('');
@@ -578,7 +565,7 @@ function SeparateValidationErrorExample() {
}
```
-### Disabled text field
+### Disabled
Use to show that a textfield is not available for interaction. Most often used in forms when information is required only in a particular state. For example, the text field next to Other in a choice list when Other is not selected.
@@ -586,7 +573,7 @@ Use to show that a textfield is not available for interaction. Most often used i
```
-### Text field with character count
+### With character count
Use to display the current number of characters in a text field. Use in conjunction with max length to display the current remaining number of characters in the text field.
@@ -612,7 +599,7 @@ function TextFieldWithCharacterCountExample() {
}
```
-### Text field with clear button
+### With clear button
Use to allow merchants to clear the content from a text field.
@@ -640,7 +627,7 @@ function TextFieldWithClearButtonExample() {
}
```
-### Text field with monospaced font
+### With monospaced font
Use to apply a monospaced font to the TextField
@@ -664,7 +651,7 @@ function TextFieldWithMonospacedFontExample() {
}
```
-### Text field with value selected on focus
+### With value selected on focus
Use to select all text inside TextField on focus.
@@ -688,7 +675,7 @@ function TextFieldWithSelectTextOnFocusExample() {
}
```
-### Text field with inline suggestion
+### With inline suggestion
Use to provide an autocomplete suggestion inline with the input value. See the combobox component's tag multi-select example for full implementation of the inline autocomplete pattern.
diff --git a/polaris-react/src/components/TextStyle/README.md b/polaris-react/src/components/TextStyle/README.md
index 5f623cbc082..92c828b412f 100644
--- a/polaris-react/src/components/TextStyle/README.md
+++ b/polaris-react/src/components/TextStyle/README.md
@@ -40,7 +40,7 @@ Text style should be:
## Examples
-### Subdued text style
+### Subdued
Use to de-emphasize a piece of text that is less important to merchants than other nearby text. May also be used to indicate when normal content is absent, for example, “No supplier listed”. Don’t use only for aesthetic effect.
@@ -48,7 +48,7 @@ Use to de-emphasize a piece of text that is less important to merchants than oth
No supplier listed
```
-### Strong text style
+### Strong
Use to mark text representing user input, or to emphasize the totals row in a price table.
@@ -56,7 +56,7 @@ Use to mark text representing user input, or to emphasize the totals row in a pr
Total
```
-### Positive text style
+### Positive
Use in combination with a symbol showing an increasing value to indicate an upward trend.
@@ -64,7 +64,7 @@ Use in combination with a symbol showing an increasing value to indicate an upwa
Orders increased
```
-### Negative text style
+### Negative
Use in combination with a symbol showing a decreasing value to indicate a downward trend.
@@ -72,7 +72,7 @@ Use in combination with a symbol showing a decreasing value to indicate a downwa
Orders decreased
```
-### Warning text style
+### Warning
Use to denote something that needs attention, or that merchants need to take action on.
@@ -80,7 +80,7 @@ Use to denote something that needs attention, or that merchants need to take act
Scheduled maintenance
```
-### Code text style
+### Code
Use to display inline snippets of code or code-like text.
diff --git a/polaris-react/src/components/Thumbnail/README.md b/polaris-react/src/components/Thumbnail/README.md
index 370945ea8bc..92ffc4b1834 100644
--- a/polaris-react/src/components/Thumbnail/README.md
+++ b/polaris-react/src/components/Thumbnail/README.md
@@ -50,7 +50,7 @@ For thumbnails, we recommend using a format that describes what will show in the
## Examples
-### Default thumbnail
+### Default
Use as the default size.
@@ -61,7 +61,7 @@ Use as the default size.
/>
```
-### Extra small thumbnail
+### Extra small
Use to present a thumbnail in a condensed layout, such as a data table cell or an action list item.
@@ -73,7 +73,7 @@ Use to present a thumbnail in a condensed layout, such as a data table cell or a
/>
```
-### Small thumbnail
+### Small
Use when the default size is too large for the layout, or when the thumbnail has less importance.
@@ -85,7 +85,7 @@ Use when the default size is too large for the layout, or when the thumbnail has
/>
```
-### Large thumbnail
+### Large
Use when a thumbnail is a major focal point. Avoid this size in lists of like items.
@@ -97,7 +97,7 @@ Use when a thumbnail is a major focal point. Avoid this size in lists of like it
/>
```
-### Thumbnail with component source
+### With component source
Use to render an icon inside of thumbnail.
diff --git a/polaris-react/src/components/Toast/README.md b/polaris-react/src/components/Toast/README.md
index ff704566387..3310b977a0a 100644
--- a/polaris-react/src/components/Toast/README.md
+++ b/polaris-react/src/components/Toast/README.md
@@ -114,7 +114,7 @@ Action should:
## Examples
-### Basic toast
+### Default
Use to convey general confirmation or actions that aren’t critical. For example, you might show a toast message to inform the merchant that their recent action was successful.
@@ -141,7 +141,7 @@ function ToastExample() {
}
```
-### Multiple toast messages
+### Multiple messages
Use multiple toast messages to inform the merchant about distinct actions.
@@ -185,7 +185,7 @@ function MultipleToastExample() {
}
```
-### Toast with custom duration
+### With custom duration
Use to shorten or lengthen the default duration of 5000 milliseconds.
@@ -212,7 +212,7 @@ function ToastWithCustomDurationExample() {
}
```
-### Toast with action
+### With action
Use when a merchant has the ability to act on the message. For example, to undo a change or retry an action.
@@ -247,7 +247,7 @@ function ToastWithActionExample() {
}
```
-### Error toast
+### Error
Although error toast is still available and used in the system, we discourage its use. Reserve it for errors not caused by merchants, like a connection issue. Error toast should convey what went wrong in plain language and should not go over 3 words. For all other error message types, follow the [error message guidelines](https://polaris.shopify.com/patterns/error-messages).
diff --git a/polaris-react/src/components/Tooltip/README.md b/polaris-react/src/components/Tooltip/README.md
index 64f816d2265..a37a8179192 100644
--- a/polaris-react/src/components/Tooltip/README.md
+++ b/polaris-react/src/components/Tooltip/README.md
@@ -57,7 +57,7 @@ To continue using Shopify, this amount must be paid immediately.
## Examples
-### Default tooltip
+### Default
Use only when necessary to provide an explanation for an interface element.
@@ -69,7 +69,7 @@ Use only when necessary to provide an explanation for an interface element.
```
-### Tooltip visible only with child interaction
+### Visible only with child interaction
Use when the tooltip overlays interactive elements when active, for example a form input. The `dismissOnMouseOut` prop prevents the tooltip from remaining active when mouse hover or focus leaves its `children` and enters the tooltip's content.
diff --git a/polaris-react/src/components/TopBar/README.md b/polaris-react/src/components/TopBar/README.md
index ecbf8fb65c9..80f4b46050a 100644
--- a/polaris-react/src/components/TopBar/README.md
+++ b/polaris-react/src/components/TopBar/README.md
@@ -134,7 +134,7 @@ A text field component that is tailor-made for a search use-case.
## Examples
-### Top bar with all of its elements
+### Default
Use to provide structure for the top of an application. Style the top bar component using the app provider component with a theme. Providing just the `background` key for the top bar component theme will result in intelligent defaults being set for complementary colors with contrasting text.
@@ -250,7 +250,7 @@ function TopBarExample() {
}
```
-### Top bar themed with colorScheme
+### With colorScheme
Provide specific keys and corresponding colors to the top bar theme for finer control. When giving more than just the `background`, providing all keys is necessary to prevent falling back to default colors.
diff --git a/polaris-react/src/components/VideoThumbnail/README.md b/polaris-react/src/components/VideoThumbnail/README.md
index eef2b54548d..055bc698723 100644
--- a/polaris-react/src/components/VideoThumbnail/README.md
+++ b/polaris-react/src/components/VideoThumbnail/README.md
@@ -33,7 +33,7 @@ Video thumbnails should:
## Examples
-### Basic video thumbnail
+### Default
Use as a play button for a video player within a media card.
@@ -54,7 +54,7 @@ Use as a play button for a video player within a media card.
```
-### Video thumbnail with progress
+### With progress
Use to indicate the video’s play progress in relation to its duration.
diff --git a/polaris-react/src/components/VisuallyHidden/README.md b/polaris-react/src/components/VisuallyHidden/README.md
index a27730c8ec4..bf9b5533e83 100644
--- a/polaris-react/src/components/VisuallyHidden/README.md
+++ b/polaris-react/src/components/VisuallyHidden/README.md
@@ -37,7 +37,7 @@ Visually hidden should:
## Examples
-### Visually hidden heading
+### Default
Always provide a heading for a major page section such as a card. In rare cases the heading is visually redundant and the meaning is conveyed by context. Rather than omit the heading, wrap the heading in the visually hidden component.
@@ -63,7 +63,7 @@ Always provide a heading for a major page section such as a card. In rare cases
```
-### Visually hidden table headers
+### Table headers
Whenever one or more table columns has no need for a visible header, hide the header content rather than omitting it. Note that due to browser quirks the visually hidden component must go inside each `