fix(ui-toolkit): anchor button should be same size as button by default (#3172)
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
This commit is contained in:
parent
965f7f6e2d
commit
90ceeebf15
@ -9,7 +9,8 @@ import classnames from 'classnames';
|
|||||||
export type ButtonVariant = 'default' | 'primary' | 'secondary' | 'ternary';
|
export type ButtonVariant = 'default' | 'primary' | 'secondary' | 'ternary';
|
||||||
export type ButtonSize = 'lg' | 'md' | 'sm' | 'xs';
|
export type ButtonSize = 'lg' | 'md' | 'sm' | 'xs';
|
||||||
|
|
||||||
const base = 'inline-block uppercase border rounded-md disabled:opacity-60';
|
const base =
|
||||||
|
'inline-block uppercase border rounded-md disabled:opacity-60 text-base text-center';
|
||||||
const xs = 'px-2 py-0 text-sm';
|
const xs = 'px-2 py-0 text-sm';
|
||||||
const sm = 'px-2 py-1 text-sm';
|
const sm = 'px-2 py-1 text-sm';
|
||||||
const md = 'px-10 py-2 text-base';
|
const md = 'px-10 py-2 text-base';
|
||||||
@ -115,7 +116,7 @@ export const AnchorButton = forwardRef<HTMLAnchorElement, AnchorButtonProps>(
|
|||||||
(
|
(
|
||||||
{
|
{
|
||||||
variant = 'default',
|
variant = 'default',
|
||||||
size = 'lg',
|
size = 'md',
|
||||||
fill = false,
|
fill = false,
|
||||||
icon,
|
icon,
|
||||||
rightIcon,
|
rightIcon,
|
||||||
|
Loading…
Reference in New Issue
Block a user