Skip to content

Commit

Permalink
fix(fuselage): FramedIcon HTMLAttributes props (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti authored Dec 27, 2023
1 parent 1e6a5ac commit 84b486f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/many-cobras-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/fuselage": patch
---

fix(fuselage): `FramedIcon` HTMLAttributes props
5 changes: 4 additions & 1 deletion packages/fuselage/src/components/FramedIcon/FramedIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Keys } from '@rocket.chat/icons';
import type { AllHTMLAttributes } from 'react';
import React from 'react';

import { Icon } from '../Icon';
Expand All @@ -10,7 +11,7 @@ type FramedIconProps = {
danger?: boolean;
neutral?: boolean;
icon: Keys;
};
} & Omit<AllHTMLAttributes<HTMLElement>, 'is'>;

export const FramedIcon = ({
info,
Expand All @@ -19,8 +20,10 @@ export const FramedIcon = ({
danger,
neutral,
icon,
...props
}: FramedIconProps) => (
<Icon
{...props}
rcx-framed-icon
rcx-framed-icon--info={info}
rcx-framed-icon--success={success}
Expand Down

0 comments on commit 84b486f

Please sign in to comment.