diff --git a/docs/api/item.md b/docs/api/item.md
index 913135eebad..16df7d28462 100644
--- a/docs/api/item.md
+++ b/docs/api/item.md
@@ -45,9 +45,9 @@ If a visual is required to interact with the item, such as an icon button, then
}
- dontImage={}
+ doNotImage={}
/>
In the example below, we are creating two lists with supporting visuals. The first list uses icons, and the second list uses avatars. The visuals are decorative, so they all have `aria-hidden="true"`. Additionally, they are presented consistently in the `start` slot.
@@ -63,9 +63,9 @@ The text content type includes form control labels or other visible text. This t
If you find that you need a few more sentences to clarify the item's purpose, consider moving the additional sentences to a Note at the bottom of the list. Adding the item to its own list makes it clear which item the text is associated with.>}
doText="Move long text outside of the list"
- dontText="Don't try to fit long text in an item"
+ doNotText="Don't try to fit long text in an item"
doImage={}
- dontImage={}
+ doNotImage={}
/>
In the example below, we are creating a list with different types of text. The "First Name" and "Last Name" labels serve to indicate what to type into the text inputs.
@@ -85,9 +85,9 @@ Metadata provides additional context for an item such as status text or counts.
}
- dontImage={}
+ doNotImage={}
/>
}
- dontImage={}
+ doNotImage={}
/>
In the example below, we are creating a list of contacts. Each item is a stubbed button intended to bring you to the full contact page for that item. There are additional actions associated with each item that users can reveal by swiping on the item.
@@ -133,25 +133,25 @@ Controls are form components such as checkboxes, inputs, radios, and more. Each
Metadata such as helper text or character counts should not be used on form controls in list views. If such metadata is needed, the form control should be placed outside of a list. Filled Inputs are a great way of visually defining the input container outside of a list.>}
doText="Place inputs with metadata outside of the list."
- dontText="Don't put metadata for inputs in the list."
+ doNotText="Don't put metadata for inputs in the list."
doImage={}
- dontImage={}
+ doNotImage={}
/>
Alternatively, the metadata can be placed in a Note at the bottom of the list.>}
doText="Place metadata for inputs at the end of a list."
- dontText="Don't put metadata for inputs in the list."
+ doNotText="Don't put metadata for inputs in the list."
doImage={}
- dontImage={}
+ doNotImage={}
/>
Items should typically have no more than two controls. If you need more controls, consider adding the additional controls in a Modal that is accessible from the item.>}
doText="Move additional controls to a submenu accessible from the item."
- dontText="Don't use more than two controls within an item."
+ doNotText="Don't use more than two controls within an item."
doImage={}
- dontImage={}
+ doNotImage={}
/>
In the example below, we are creating a list of to-do tasks. Each item has a checkbox and an input. The checkbox lets the user mark a task as complete, and the input lets the user change the name of the task.
diff --git a/src/components/global/BestPracticeFigure/index.tsx b/src/components/global/BestPracticeFigure/index.tsx
index 73e1eb7d91f..b0254eca824 100644
--- a/src/components/global/BestPracticeFigure/index.tsx
+++ b/src/components/global/BestPracticeFigure/index.tsx
@@ -10,9 +10,9 @@ import './best-practice-figure.css';
}
- dontImage={}
+ doNotImage={}
/>
All images must have alt text for screen readers.
@@ -39,14 +39,22 @@ import './best-practice-figure.css';
@prop text - Text that describes the figure as a whole
@prop doText - Text that describes a best practice
- @prop dontText - Text that describes an anti-pattern
+ @prop doNotText - Text that describes an anti-pattern
@prop cautionText - Text that describes something that could be an anti-pattern based on use case
@prop doImage - Image associated with doText
- @prop dontImage - Image associated with dontText
+ @prop doNotImage - Image associated with doNotText
@prop cautionImage - Image associated with cautionText
*/
-export default function BestPracticeFigure({ text, doText, dontText, cautionText, doImage, dontImage, cautionImage }) {
+export default function BestPracticeFigure({
+ text,
+ doText,
+ doNotText,
+ cautionText,
+ doImage,
+ doNotImage,
+ cautionImage,
+}) {
return (