diff --git a/package.json b/package.json index 93fbc74..120cc34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@giveth/ui-design-system", - "version": "1.11.0", + "version": "1.11.1", "files": [ "/lib" ], diff --git a/src/components/buttonLinks/ButtonLink.tsx b/src/components/buttonLinks/ButtonLink.tsx index efa2c6c..cb7e476 100644 --- a/src/components/buttonLinks/ButtonLink.tsx +++ b/src/components/buttonLinks/ButtonLink.tsx @@ -5,7 +5,7 @@ import { brandColors, neutralColors } from '../../common/colors'; import { ButtonText } from '../typography/ButtonText'; import { IButtonLinkContainerProps, IButtonLinkProps } from './type'; -const ButtonLinkContainer = styled.a` +const ButtonLinkContainer = styled.span` border: none; border-radius: 48px; padding: ${props => (props.size === 'large' ? '24px' : '16px')} 24px; @@ -134,7 +134,7 @@ export const ButtonLink: FC = forwardRef( target, className, href, - onClick, + isExternal, }, ref, ) => { @@ -142,7 +142,7 @@ export const ButtonLink: FC = forwardRef( ` +const ButtonLinkContainer = styled.span` border: 2px solid; border-radius: 48px; padding: ${props => (props.size === 'large' ? '22px' : '14px')} 24px; @@ -87,7 +87,7 @@ export const OutlineLinkButton: FC = forwardRef( href, target, className, - onClick, + isExternal, }, ref, ) => { @@ -95,12 +95,12 @@ export const OutlineLinkButton: FC = forwardRef( {label} diff --git a/src/components/buttonLinks/type.ts b/src/components/buttonLinks/type.ts index 67f73fc..e25f112 100644 --- a/src/components/buttonLinks/type.ts +++ b/src/components/buttonLinks/type.ts @@ -9,6 +9,7 @@ export interface IButtonLinkContainerProps { | 'texty-secondary'; size?: 'small' | 'medium' | 'large'; disabled?: boolean; + isExternal?: boolean; } export interface IButtonLinkProps diff --git a/src/components/typography/ButtonText.tsx b/src/components/typography/ButtonText.tsx index 7c79fdd..3733fee 100644 --- a/src/components/typography/ButtonText.tsx +++ b/src/components/typography/ButtonText.tsx @@ -4,7 +4,7 @@ export interface IButtonTextProps { size?: 'small' | 'medium' | 'large'; } -export const ButtonText = styled.a` +export const ButtonText = styled.span` font-family: Red Hat Text, sans-serif; font-style: normal; text-transform: uppercase;