DONE: Full typography
CHANGES: Everywhere change <span> labels to <Typography> FIXED: Imports in SASS files
This commit is contained in:
@@ -5,6 +5,7 @@ import { ButtonProps } from './button.types';
|
||||
import { bool, oneOf, string } from 'prop-types';
|
||||
import { ButtonLayout } from '../button-layout/button-layout';
|
||||
import { IconWrapper } from '../../icon/icon-wrapper';
|
||||
import { Typography } from '../../typography/typography';
|
||||
|
||||
/**
|
||||
* Button component
|
||||
@@ -32,7 +33,13 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
ref={ref}
|
||||
>
|
||||
<IconWrapper icon={icon} iconPlace={iconPlace}>
|
||||
<span className={'label-large'}>{props.children}</span>
|
||||
<Typography
|
||||
className={'label-large'}
|
||||
role={'label'}
|
||||
size={'large'}
|
||||
>
|
||||
{props.children}
|
||||
</Typography>
|
||||
</IconWrapper>
|
||||
</ButtonLayout>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user