diff --git a/packages/beeq/src/components.d.ts b/packages/beeq/src/components.d.ts index be2de4b93..658dbe4ba 100644 --- a/packages/beeq/src/components.d.ts +++ b/packages/beeq/src/components.d.ts @@ -443,6 +443,10 @@ export namespace Components { * Set the stroke color of the SVG. The value should be a valid value of the palette color */ "color"?: string; + /** + * Label for the icon, used for accessibility + */ + "label"?: string; /** * Icon name to load. Please check all available icons [here](https://phosphoricons.com/) */ @@ -2413,6 +2417,10 @@ declare namespace LocalJSX { * Set the stroke color of the SVG. The value should be a valid value of the palette color */ "color"?: string; + /** + * Label for the icon, used for accessibility + */ + "label"?: string; /** * Icon name to load. Please check all available icons [here](https://phosphoricons.com/) */ diff --git a/packages/beeq/src/components/icon/_storybook/bq-icon.stories.tsx b/packages/beeq/src/components/icon/_storybook/bq-icon.stories.tsx index 27ec3f9ed..223428284 100644 --- a/packages/beeq/src/components/icon/_storybook/bq-icon.stories.tsx +++ b/packages/beeq/src/components/icon/_storybook/bq-icon.stories.tsx @@ -20,6 +20,7 @@ const meta: Meta = { argTypes: { icons: { table: { disable: true } }, color: { control: 'text' }, + label: { control: 'text' }, name: { control: 'select', options: [...ICONS_SET] }, size: { control: 'number' }, src: { control: 'text' }, @@ -27,6 +28,7 @@ const meta: Meta = { }, args: { color: 'text--brand', + label: undefined, size: 24, src: undefined, weight: 'regular', @@ -39,6 +41,7 @@ type Story = StoryObj; const Template = (args: Args) => html`