Skip to content

Commit b937d2d

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(emcn): restrict specialized action button sizing props
1 parent d7f9938 commit b937d2d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎packages/emcn/src/components/bulk-action-button/bulk-action-button.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export const bulkActionButtonVariants = cva(
1818
}
1919
)
2020

21-
export interface BulkActionButtonProps extends Omit<ButtonProps, 'variant' | 'size'> {
21+
export interface BulkActionButtonProps
22+
extends Omit<ButtonProps, 'variant' | 'size' | 'iconPadding' | 'iconSize'> {
2223
/** Accessible name for the icon action; tooltip content is supplied separately. */
2324
'aria-label': string
2425
/**

‎packages/emcn/src/components/composer-action-button/composer-action-button.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export const composerActionButtonVariants = cva('rounded-full p-0', {
2626
defaultVariants: { size: 'md', active: true },
2727
})
2828

29-
export interface ComposerActionButtonProps extends Omit<ButtonProps, 'variant' | 'size'> {
29+
export interface ComposerActionButtonProps
30+
extends Omit<ButtonProps, 'variant' | 'size' | 'iconPadding' | 'iconSize'> {
3031
/** Accessible name for the caller's icon action. */
3132
'aria-label': string
3233
/** 28px by default; `sm` retains compact chat's 22px geometry and hover treatment. */

0 commit comments

Comments
 (0)