From 49334a4171960deebc267268128189e029230501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20Sch=C3=BCrch?= Date: Thu, 28 Mar 2024 09:22:51 +0100 Subject: [PATCH] Update packages/components/src/components/post-card-control/post-card-control.tsx Co-authored-by: Philipp Gfeller <1659006+gfellerph@users.noreply.github.com> --- .../src/components/post-card-control/post-card-control.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/components/post-card-control/post-card-control.tsx b/packages/components/src/components/post-card-control/post-card-control.tsx index d5a7a736e2..36ebcae76e 100644 --- a/packages/components/src/components/post-card-control/post-card-control.tsx +++ b/packages/components/src/components/post-card-control/post-card-control.tsx @@ -26,7 +26,7 @@ let cardControlIds = 0; /** * @class PostCardControl - representing a stencil component * - * @slot default - Content to place into the `default` slot.

Markup accepted: block content.

Even if it is generally possible, we do not recommend using interactive elements in this slot for accessibility reasons.

+ * @slot default - Content to place into the `default` slot.

Markup accepted: block content.

Even if it is generally possible, we do not recommend using interactive elements in this slot because the background of the card control is clickable. This can lead to confusion when the hit box of nested interactive controls is not clearly separated from the background, is invalid HTML and click events bubbling up to the card control will unexpectedly toggle it if they're not captured. More info: https://accessibilityinsights.io/info-examples/web/nested-interactive/

* @slot icon - To insert a custom icon into the named `icon` slot.

Markup accepted: inline content.

It is only meant for img or svg elements and overrides the `icon` property.

*/ @Component({