Skip to content

Commit 0010361

Browse files
committed
Simplifying the Metadata and ActionIcon interfaces
1 parent edf2214 commit 0010361

File tree

1 file changed

+2
-1
lines changed
  • packages/ibm-products/src/components/Card

1 file changed

+2
-1
lines changed

packages/ibm-products/src/components/Card/Card.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ interface Metadata {
3232
id?: string;
3333
icon?: () => ReactNode;
3434
iconDescription?: string;
35+
[key: `data-${string}`]: string;
3536
}
3637

3738
type LinkType = {
@@ -40,7 +41,7 @@ type LinkType = {
4041
[key: string]: unknown;
4142
};
4243

43-
export interface ActionIcon extends Metadata, HTMLAttributes<HTMLElement> {
44+
export interface ActionIcon extends Metadata {
4445
onKeydown?: (event: KeyboardEvent) => void;
4546
onClick?: (
4647
event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>

0 commit comments

Comments
 (0)