Skip to content

Commit f7129d8

Browse files
authored
Components description edits
2 parents fcb2164 + c278a94 commit f7129d8

File tree

28 files changed

+94
-48
lines changed

28 files changed

+94
-48
lines changed

packages/ui-extensions/src/docs/shared/components/Abbreviation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type {SharedReferenceEntityTemplateSchema} from '../docs-type';
22

33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'Abbreviation',
5-
description: 'A text that represents an abbreviation or acronym.',
5+
description:
6+
'Displays abbreviated text or acronyms, revealing their full meaning or additional context through a tooltip on hover or focus. Use to clarify shortened terms, initialisms, or technical language without interrupting the reading flow.',
67
category: 'Polaris web components',
78
subCategory: 'Titles and text',
89
related: [

packages/ui-extensions/src/docs/shared/components/Banner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {SharedReferenceEntityTemplateSchema} from '../docs-type';
33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'Banner',
55
description:
6-
'Use `s-banner` to communicate important status updates or indicate that there are important actions that users must take. \n\n You can use banners both as a standalone component on a page or inside of a `s-section`.',
6+
'Highlights important information or required actions prominently within the interface. Use to communicate statuses, provide feedback, or draw attention to critical updates.',
77
category: 'Polaris web components',
88
subCategory: 'Feedback',
99
related: [],

packages/ui-extensions/src/docs/shared/components/Box.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {SharedReferenceEntityTemplateSchema} from '../docs-type';
33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'Box',
55
description:
6-
'The `s-box` component is an escape hatch for building custom user interfaces. You should only use `s-box` when you cannot build what you need with the existing components.',
6+
'A generic container that provides a flexible alternative for custom designs not achievable with existing components. Use it to apply styling such as backgrounds, padding, or borders, or to nest and group other components. The contents of Box always maintain their natural size, making it especially useful within layout components that would otherwise stretch their children.',
77
category: 'Polaris web components',
88
subCategory: 'Structure',
99
related: [],

packages/ui-extensions/src/docs/shared/components/Button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {SharedReferenceEntityTemplateSchema} from '../docs-type';
33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'Button',
55
description:
6-
'Use `s-button` when you want to provide users the ability to perform specific actions, submitting forms, or opening dialogs.',
6+
'Triggers actions or events, such as submitting forms, opening dialogs, or navigating to other pages. Use Button to let users perform specific tasks or initiate interactions throughout the interface. Buttons can also function as links, guiding users to internal or external destinations.',
77
category: 'Polaris web components',
88
subCategory: 'Actions',
99
related: [

packages/ui-extensions/src/docs/shared/components/ClipboardItem.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@ import type {SharedReferenceEntityTemplateSchema} from '../docs-type';
22

33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'ClipboardItem',
5-
description: `
6-
This component is used alongside a \`Button\` or \`Link\` component to facilitate writing to the user's clipboard.
7-
8-
ClipboardItem's \`--auto\` command is \`--copy\`, which copies the content of the text prop to the clipboard.
9-
10-
\`ClipboardItem\` is a non-rendering component.
11-
`,
5+
description:
6+
'Enables copying text to the user’s clipboard. Use alongside Button or Link components to let users easily copy content. `<s-clipboard-item>` doesn’t render visually.',
127
category: 'Polaris web components',
138
subCategory: 'utilities',
149
related: [

packages/ui-extensions/src/docs/shared/components/DropZone.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ import type {SharedReferenceEntityTemplateSchema} from '../docs-type';
22

33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'DropZone',
5-
description: `
6-
\`s-drop-zone\` allows file uploads through drag-and-drop functionality into a designated area on a page, or by activating a button. At present, \`s-drop-zone\` does not offer image upload preview capabilities. The use of object URLs directly in an image component is not possible due to the extension and host operating on separate domains.
7-
8-
Any element focused within the \`s-drop-zone\` component, including child elements such as the 'Add file' button, will initiate the file selector when the Enter or Spacebar key is pressed.
9-
`,
5+
description:
6+
'Lets users upload files through drag-and-drop functionality into a designated area on a page, or by activating a button.',
107
category: 'Polaris web components',
118
subCategory: 'Forms',
129
related: [],

packages/ui-extensions/src/docs/shared/components/Form.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {SharedReferenceEntityTemplateSchema} from '../docs-type';
33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'Form',
55
description:
6-
'The form component should be used to wrap one or more form controls. This component provides an "implicit submit" behavior, where customers can submit the form from any input by pressing "Enter" on their keyboards. This behavior is widely expected, and should be respected as often as possible.\n\nUnlike an HTML `form` element, this component does not support configuring the descendant fields to be submitted via HTTP automatically. Instead, you must provide an `onSubmit` callback that will perform the necessary HTTP requests in JavaScript.',
6+
'Wraps one or more form controls and enables implicit submission, letting users submit the form from any input by pressing Enter.” Unlike the HTML form element, this component doesn’t automatically submit data via HTTP. You must register a `submit` event to handle form submission in JavaScript.',
77
category: 'Polaris web components',
88
subCategory: 'Forms',
99
related: [],

packages/ui-extensions/src/docs/shared/components/Heading.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {SharedReferenceEntityTemplateSchema} from '../docs-type';
33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'Heading',
55
description:
6-
'The `s-heading` component renders hierarchical titles similar to HTML’s `h1-h6` elements. Heading levels are automatically determined by parent `s-section` nesting depth starting from `h2`. Always prefer using the `heading` property on `s-section` and `s-banner` components before constructing custom layout with `s-heading`.',
6+
'Renders hierarchical titles to communicate the structure and organization of page content. Heading levels adjust automatically based on nesting within parent Section components, ensuring a meaningful and accessible page outline.',
77
category: 'Polaris web components',
88
subCategory: 'Titles and text',
99
related: [

packages/ui-extensions/src/docs/shared/components/Icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {SharedReferenceEntityTemplateSchema} from '../docs-type';
33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'Icon',
55
description:
6-
'Icons are pictograms or graphic symbols. They can act as wayfinding tools or as a means of communicating functionality.',
6+
'Renders a graphic symbol to visually communicate core parts of the product and available actions. Icons can act as wayfinding tools to help users quickly understand their location within the interface and common interaction patterns.',
77
category: 'Polaris web components',
88
subCategory: 'Media',
99
related: [

packages/ui-extensions/src/docs/shared/components/Image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {SharedReferenceEntityTemplateSchema} from '../docs-type';
33
const data: SharedReferenceEntityTemplateSchema = {
44
name: 'Image',
55
description:
6-
'Use `s-image` when you want to display an image. \n\n When using images or illustrations in your app, ensure that they add clarity and clearly direct users to the next step. Make sure to use high-resolution images to ensure a professional, high-quality experience.',
6+
'Embeds an image within the interface and controls its presentation. Use to visually illustrate concepts, showcase products, or support user tasks and interactions.',
77
category: 'Polaris web components',
88
subCategory: 'Media',
99
related: [],

0 commit comments

Comments
 (0)