An open source design system that's fully customizable and agent ready
TypeScript
Improve Spinner docs page and block examples (#1628)
Ted McDonald5ea3d60f3929
diff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerSizes.doc.mjs b/packages/cli/templates/blocks/components/Spinner/SpinnerSizes.doc.mjsindex 5dc65484fc..0de4c07caa 100644--- a/packages/cli/templates/blocks/components/Spinner/SpinnerSizes.doc.mjs+++ b/packages/cli/templates/blocks/components/Spinner/SpinnerSizes.doc.mjs@@ -2,7 +2,7 @@export const doc = {type: 'block',name: 'Spinner — Sizes',- description: 'All four spinner sizes displayed side by side.',+ description: 'All spinner sizes displayed side by side.',isReady: true,aspectRatio: 4 / 3,componentsUsed: ['Spinner'],diff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjs b/packages/cli/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjsindex dd15bc63f7..5c14606862 100644--- a/packages/cli/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjs+++ b/packages/cli/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjs@@ -3,7 +3,7 @@ export const doc = {type: 'block',name: 'Spinner — With Label',description:- 'Spinners with simple text and rich multi-line label content.',+ 'Spinners with text and rich multi-line labels.',isReady: true,aspectRatio: 4 / 3,componentsUsed: ['Spinner', 'Text'],diff --git a/packages/core/src/Spinner/Spinner.doc.mjs b/packages/core/src/Spinner/Spinner.doc.mjsindex b3957bca71..4752b96f23 100644--- a/packages/core/src/Spinner/Spinner.doc.mjs+++ b/packages/core/src/Spinner/Spinner.doc.mjs@@ -42,12 +42,12 @@ export const docs = {},usage: {description:- 'An animated loading indicator for indeterminate wait states. Use Spinner to signal ongoing processes with unknown duration, such as data fetching or form submission. For loading content of known dimensions, use Skeleton instead.',+ 'An animated loading indicator for processes with unknown duration, such as data fetching or form submission. Supports visible labels, multiple sizes, and a dark background variant. For content with known dimensions, use Skeleton instead.',bestPractices: [{guidance: true, description: 'Provide a meaningful label to describe what is loading for screen reader users.'},- {guidance: true, description: 'Choose the appropriate shade — use "onMedia" when placed on dark or accent-colored backgrounds.'},+ {guidance: true, description: 'Use the "onMedia" shade when placed on dark or accent-colored backgrounds.'},{guidance: false, description: 'Use for content areas with known dimensions — use Skeleton to preserve layout instead.'},- {guidance: false, description: 'Stack multiple Spinners in the same view — use one to represent the overall loading state.'},+ {guidance: false, description: 'Stack multiple spinners in the same view — use one to represent the overall loading state.'},],},};@@ -93,12 +93,12 @@ export const docsZh = {},usage: {description:- 'An animated loading indicator for indeterminate wait states. Use Spinner to signal ongoing processes with unknown duration, such as data fetching or form submission. For loading content of known dimensions, use Skeleton instead.',+ 'An animated loading indicator for processes with unknown duration, such as data fetching or form submission. Supports visible labels, multiple sizes, and a dark background variant. For content with known dimensions, use Skeleton instead.',bestPractices: [{guidance: true, description: 'Provide a meaningful label to describe what is loading for screen reader users.'},- {guidance: true, description: 'Choose the appropriate shade — use "onMedia" when placed on dark or accent-colored backgrounds.'},+ {guidance: true, description: 'Use the "onMedia" shade when placed on dark or accent-colored backgrounds.'},{guidance: false, description: 'Use for content areas with known dimensions — use Skeleton to preserve layout instead.'},- {guidance: false, description: 'Stack multiple Spinners in the same view — use one to represent the overall loading state.'},+ {guidance: false, description: 'Stack multiple spinners in the same view — use one to represent the overall loading state.'},],},};@@ -107,12 +107,12 @@ export const docsZh = {export const docsDense = {usage: {description:- 'An animated loading indicator for indeterminate wait states. Use Spinner to signal ongoing processes with unknown duration, such as data fetching or form submission. For loading content of known dimensions, use Skeleton instead.',+ 'An animated loading indicator for processes with unknown duration, such as data fetching or form submission. Supports visible labels, multiple sizes, and a dark background variant. For content with known dimensions, use Skeleton instead.',bestPractices: [{guidance: true, description: 'Provide a meaningful label to describe what is loading for screen reader users.'},- {guidance: true, description: 'Choose the appropriate shade — use "onMedia" when placed on dark or accent-colored backgrounds.'},+ {guidance: true, description: 'Use the "onMedia" shade when placed on dark or accent-colored backgrounds.'},{guidance: false, description: 'Use for content areas with known dimensions — use Skeleton to preserve layout instead.'},- {guidance: false, description: 'Stack multiple Spinners in the same view — use one to represent the overall loading state.'},+ {guidance: false, description: 'Stack multiple spinners in the same view — use one to represent the overall loading state.'},],},propDescriptions: {