Feat/BOOK-293 button adjustments
* feat(BOOK-293): Adjusted padding of the buttons to match Figma design * feat(BOOK-293): Updated variants for IconButton * feat(BOOK-113): Updated focus indicators on buttons and added default focus ring color * feat(BOOK-293): Replaced buttons inside booking widget Approved-by: Christel Westerberg
This commit is contained in:
@@ -1,20 +1,24 @@
|
||||
import { Button as ButtonRAC } from 'react-aria-components'
|
||||
|
||||
import { VariantProps } from 'class-variance-authority'
|
||||
import { ComponentProps } from 'react'
|
||||
import { variants } from './variants'
|
||||
|
||||
import type { IconButtonProps } from './types'
|
||||
interface IconButtonProps
|
||||
extends ComponentProps<typeof ButtonRAC>,
|
||||
VariantProps<typeof variants> {}
|
||||
|
||||
export function IconButton({
|
||||
theme,
|
||||
style,
|
||||
variant,
|
||||
emphasis,
|
||||
size,
|
||||
className,
|
||||
wrapping,
|
||||
...props
|
||||
}: IconButtonProps) {
|
||||
const classNames = variants({
|
||||
theme,
|
||||
style,
|
||||
wrapping,
|
||||
variant,
|
||||
emphasis,
|
||||
size,
|
||||
className,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user