Skip to content

Commit f5855bc

Browse files
committed
chore: size props added in links
1 parent 4c8f1eb commit f5855bc

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/Common/DocLink/DocLink.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const DocLink = ({
1111
showExternalIcon,
1212
onClick,
1313
hideVersion = false,
14+
size = ComponentSizeType.medium,
1415
}: DocLinkProps) => (
1516
<Button
1617
component={ButtonComponentType.anchor}
@@ -21,7 +22,7 @@ export const DocLink = ({
2122
dataTestId={dataTestId}
2223
text={text}
2324
variant={ButtonVariantType.text}
24-
size={ComponentSizeType.medium}
25+
size={size}
2526
endIcon={showExternalIcon && <Icon name="ic-open-in-new" color={null} />}
2627
/>
2728
)

src/Common/DocLink/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ButtonComponentType, ButtonProps } from '@Shared/Components'
22

33
import { DOCUMENTATION } from './constants'
44

5-
export interface DocLinkProps extends Pick<ButtonProps<ButtonComponentType.anchor>, 'onClick' | 'dataTestId'> {
5+
export interface DocLinkProps extends Pick<ButtonProps<ButtonComponentType.anchor>, 'onClick' | 'dataTestId' | 'size'> {
66
docLinkKey: keyof typeof DOCUMENTATION
77
text?: string
88
showExternalIcon?: boolean

0 commit comments

Comments
 (0)