diff --git a/.changeset/healthy-rules-bathe.md b/.changeset/healthy-rules-bathe.md new file mode 100644 index 000000000..2988b89ac --- /dev/null +++ b/.changeset/healthy-rules-bathe.md @@ -0,0 +1,7 @@ +--- +"@getflip/swirl-components": minor +"@getflip/swirl-components-angular": minor +"@getflip/swirl-components-react": minor +--- + +Add swirl-aria-labelledby prop to swirl-car diff --git a/packages/swirl-components/src/components.d.ts b/packages/swirl-components/src/components.d.ts index d66bf93d4..9278980ef 100644 --- a/packages/swirl-components/src/components.d.ts +++ b/packages/swirl-components/src/components.d.ts @@ -337,6 +337,7 @@ export namespace Components { "paddingInlineEnd"?: SwirlCardPadding; "paddingInlineStart"?: SwirlCardPadding; "swirlAriaLabel"?: string; + "swirlAriaLabelledby"?: string; } /** * slot - The slides @@ -4312,6 +4313,7 @@ declare namespace LocalJSX { "paddingInlineEnd"?: SwirlCardPadding; "paddingInlineStart"?: SwirlCardPadding; "swirlAriaLabel"?: string; + "swirlAriaLabelledby"?: string; } /** * slot - The slides diff --git a/packages/swirl-components/src/components/swirl-card/swirl-card.tsx b/packages/swirl-components/src/components/swirl-card/swirl-card.tsx index 0d6904c27..546013441 100644 --- a/packages/swirl-components/src/components/swirl-card/swirl-card.tsx +++ b/packages/swirl-components/src/components/swirl-card/swirl-card.tsx @@ -60,6 +60,7 @@ export class SwirlCard { @Prop() paddingInlineEnd?: SwirlCardPadding; @Prop() paddingInlineStart?: SwirlCardPadding; @Prop() swirlAriaLabel?: string; + @Prop() swirlAriaLabelledby?: string; render() { const Tag = Boolean(this.href) ? "a" : this.as; @@ -111,6 +112,7 @@ export class SwirlCard { {
-
-
+
diff --git a/packages/swirl-components/src/components/swirl-console-layout/swirl-console-layout.tsx b/packages/swirl-components/src/components/swirl-console-layout/swirl-console-layout.tsx index 5be5cff47..e4499c4ee 100644 --- a/packages/swirl-components/src/components/swirl-console-layout/swirl-console-layout.tsx +++ b/packages/swirl-components/src/components/swirl-console-layout/swirl-console-layout.tsx @@ -179,12 +179,12 @@ export class SwirlConsoleLayout { onClick={this.onClick} onKeyDown={this.onKeyDown} > -
(this.sidebarEl = el)} > -
+
-
+