Skip to content

Commit

Permalink
chore: use tokens for border radius
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Nov 22, 2023
1 parent c44a7bb commit b387903
Show file tree
Hide file tree
Showing 49 changed files with 54 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function HeaderActionButton(props: HeaderActionButtonProps) {
cursor: isWaitingOnPerformedAction ? 'unset' : 'pointer',
}}
data-testid={HomePageSelectors.DrawerHeaderActionBtn}
borderRadius="8px"
borderRadius="xs"
color="accent.action-primary-default"
height="36px"
onClick={isWaitingOnPerformedAction ? undefined : onAction}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function CustomFeeField({
</styled.label>
<styled.input
autoComplete="off"
borderRadius="8px"
borderRadius="xs"
color="accent.text-subdued"
data-testid={SharedComponentsSelectors.CustomFeeFieldInput}
display="block"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function FeeEstimateSelectLayout({
{isVisible ? (
<Stack
bg="accent.background-primary"
borderRadius="8px"
borderRadius="xs"
boxShadow="0px 8px 16px rgba(27, 39, 51, 0.08)"
data-testid={SharedComponentsSelectors.FeeEstimateSelect}
flexDirection="column"
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/generic-error/generic-error.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function GenericErrorLayout(props: GenericErrorProps) {
</styled.h2>
<styled.ul
border="default"
borderRadius="10px"
borderRadius="sm"
fontSize="14px"
lineHeight="1.6"
listStyleType="circle"
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/info-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function InfoLabel({ children, title, ...rest }: InfoLabelProps) {
<Stack
alignItems="start"
bg="disabled"
borderRadius="10px"
borderRadius="sm"
minHeight="48px"
px="space.04"
py="space.03"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function InscriptionPreviewContainer({ children, ...props }: HasChildren
return (
<Box
bg="black"
borderRadius="8px"
borderRadius="xs"
width="100px"
height="100px"
overflow="hidden"
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/pill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function Pill({ hoverLabel, label, ...props }: PillProps) {
<Tooltip disabled={!hoverLabel} label={hoverLabel} maxWidth="200px" placement="bottom">
<Box
border="1px solid"
borderRadius="24px"
borderRadius="xxl"
borderColor="#DCDDE2"
lineHeight="16px"
ml="space.03"
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/request-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function RequestPassword({ title, caption, onSuccess }: RequestPasswordPr
autoComplete="off"
autoFocus
border="active"
borderRadius="10px"
borderRadius="sm"
data-testid={SettingsSelectors.EnterPasswordInput}
disabled={isRunning}
height="64px"
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/requester-flag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function RequesterFlag({ requester }: RequesterFlagProps) {
justifyContent="center"
py="space.04"
px="space.02"
borderRadius="10px"
borderRadius="sm"
width="fit-content"
>
<styled.span textStyle="label.02">{requester}</styled.span>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/secret-key/two-column.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function TwoColumnLayout({
pb={['space.02', 'space.05']}
gap="space.04"
backgroundColor="accent.background-primary"
borderRadius="8px"
borderRadius="xs"
width="100%"
flex="1"
>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/sponsored-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function SponsoredLabel(): React.JSX.Element {
<HStack
alignItems="center"
bg="accent.component-background-hover"
borderRadius="10px"
borderRadius="sm"
height="48px"
pl="space.04"
>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/text-input-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function TextInputField({
bottom: '-1px',
}}
border="default"
borderRadius="10px"
borderRadius="sm"
className={css({
'& :has(:focus)::before': {
border: '2px solid #bfc6ff',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function TxTransferIconWrapper({ icon }: TxTransferIconWrapperProps) {
return (
<Box
bg="stacks"
borderRadius="50%"
borderRadius="lg"
color="accent.background-primary"
flexShrink={0}
height="36px"
Expand Down
8 changes: 4 additions & 4 deletions src/app/features/add-network/add-network.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export function AddNetwork() {
</styled.span>
<Input
autoFocus
borderRadius="10px"
borderRadius="sm"
height="64px"
onChange={formikProps.handleChange}
name="name"
Expand Down Expand Up @@ -263,7 +263,7 @@ export function AddNetwork() {
</SelectRoot>
<Title>Stacks API URL</Title>
<Input
borderRadius="10px"
borderRadius="sm"
height="64px"
onChange={formikProps.handleChange}
name="stacksUrl"
Expand All @@ -274,7 +274,7 @@ export function AddNetwork() {
/>
<Title>Bitcoin API URL</Title>
<Input
borderRadius="10px"
borderRadius="sm"
height="64px"
onChange={formikProps.handleChange}
name="bitcoinUrl"
Expand All @@ -284,7 +284,7 @@ export function AddNetwork() {
data-testid={NetworkSelectors.NetworkBitcoinAddress}
/>
<Input
borderRadius="10px"
borderRadius="sm"
height="64px"
onChange={formikProps.handleChange}
name="key"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function CollectibleHover({
_hover={{ bg: 'accent.component-background-hover' }}
alignItems="center"
bg="accent.background-primary"
borderRadius="50%"
borderRadius="lg"
display="flex"
height="30px"
justifyContent="center"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function CollectibleItemLayout({
outlineOffset: onClickLayout ? '-4px' : 'unset',
}}
_hover={{ bg: 'accent.background-secondary' }}
borderRadius="20px"
borderRadius="xl"
cursor={onClickLayout ? 'pointer' : 'default'}
onClick={onClickLayout}
p="space.01"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function HiroMessageItem(props: HiroMessageItemProps) {
mt={['space.02', null, 'unset']}
transform={[null, null, 'translateY(-50%)']}
right={0}
borderRadius="50%"
borderRadius="lg"
_focus={{ outline: '1px solid white' }}
onClick={() => onDismiss(id)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function IncreaseFeeActions(props: IncreaseFeeActionsProps) {
flex="1"
onClick={handleSubmit as any}
aria-busy={isLoading}
borderRadius="10px"
borderRadius="sm"
aria-disabled={isDisabled}
>
{actionText}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function ConnectLedgerErrorLayout(props: ConnectLedgerErrorLayoutProps) {
) : (
<ErrorLabel>Unable to connect</ErrorLabel>
)}
<Stack borderRadius="12px" gap="space.01" textAlign="left" py="space.05">
<Stack borderRadius="md" gap="space.01" textAlign="left" py="space.05">
<PossibleReasonUnableToConnect text="Check if Ledger Live is open. Close it and try again" />
<PossibleReasonUnableToConnect text="Ensure you only have one instance of Leather open" />
<PossibleReasonUnableToConnect
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/message-signer/message-preview-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function MessagePreviewBox({ message, hash }: MessageBoxProps) {
bg="accent.background-primary"
border="4px solid"
borderColor="accent.background-primary"
borderRadius="20px"
borderRadius="xl"
paddingBottom={hash ? 'space.02' : 0}
>
<Stack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function PsbtRequestDetailsHeader() {
<HStack
alignItems="center"
border={isPsbtMutable ? 'warning' : 'subdued'}
borderRadius="24px"
borderRadius="xxl"
gap="space.01"
px="space.02"
py="space.01"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function SecretKeyWord({ word, num }: SecretKeyWordProps) {
gap="space.01"
px="space.03"
backgroundColor="accent.component-background-default"
borderRadius="8px"
borderRadius="xs"
>
{/* FIXME #4130: need to fix this color color: var(--color-grey-light-8, #BBB); */}
<styled.span display="flex" alignItems="center" mr="space.01" color="accent.text-subdued">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const MenuWrapper = forwardRef<HTMLDivElement, MenuWrapperProps>(
isShowing ? (
<Box
bg="accent.background-primary"
borderRadius="10px"
borderRadius="sm"
boxShadow="0px 8px 16px rgba(27, 39, 51, 0.08)"
cursor={isShowing ? 'all' : 'none'}
position="absolute"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ContractCallDetailsSuspense() {
<Stack
border="4px solid"
borderColor="accent.border-default"
borderRadius="12px"
borderRadius="md"
mb="space.05"
px="space.04"
py="32px"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function ContractDeployDetails() {
gap="space.05"
border="4px solid"
borderColor="accent.border-default"
borderRadius="12px"
borderRadius="md"
py="space.06"
px="space.04"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function ContractPreviewLayout({
return (
<HStack
p="space.04"
borderRadius="12px"
borderRadius="md"
gap="space.04"
alignItems="center"
border="1px solid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function MinimalErrorMessageSuspense(props: HstackProps) {
alignItems="center"
// #4476 TODO change this colour
bg="#FCEEED"
borderRadius="12px"
borderRadius="md"
color="error.label"
p="space.04"
width="100%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function PostConditionsSuspense(): React.JSX.Element | null {
<Flex
border="4px solid"
borderColor="accent.border-default"
borderRadius="12px"
borderRadius="md"
flexDirection="column"
mb="space.05"
width="100%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function StxTransferDetails(): React.JSX.Element | null {
<Stack
border="4px solid"
borderColor="accent.border-default"
borderRadius="12px"
borderRadius="md"
mb="space.05"
px="space.04"
py="space.06"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ErrorMessage = memo(({ border, title, body, actions }: ErrorMessage
bg="accent.background-primary"
// #4476 TODO change this colour
border={border ? border : '4px solid #FCEEED'}
borderRadius="12px"
borderRadius="md"
gap="space.06"
mb="space.05"
p="space.05"
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/fund/components/fast-checkout-badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function FastCheckoutBadge() {
alignItems="center"
border="1px solid"
borderColor="#D9EDD4"
borderRadius="24px"
borderRadius="xxl"
height="24px"
justifyContent="center"
paddingX="space.02"
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/fund/components/zero-percent-fees-badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function ZeroPercentFeesBadge() {
alignItems="center"
border="1px solid"
borderColor="#FFE0C2"
borderRadius="24px"
borderRadius="xxl"
height="24px"
justifyContent="center"
paddingX="space.02"
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/home/components/home.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function HomeLayout({ children }: HomeLayoutProps) {
px={['space.04', 'space.04', 'space.08']}
width="100%"
backgroundColor="brown.1"
borderRadius={['space.00', 'space.02']}
borderRadius="lg"
>
<AccountInfoCard />
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function PasswordField({ strengthResult, isDisabled }: PasswordFieldProps
autoComplete="off"
autoFocus
border="active"
borderRadius="10px"
borderRadius="sm"
data-testid={OnboardingSelectors.NewPasswordInput}
disabled={isDisabled}
height="64px"
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/receive/components/address-qr-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const QrCode = memo(({ principal, ...rest }: { principal: string }) => {
alignItems="center"
border="1px solid"
borderColor="accent.border-default"
borderRadius="18px"
borderRadius="lg"
boxShadow="low"
justifyContent="center"
mx="auto"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface SendTransferActionsProps {
export function SendTransferActions({ action, isLoading, onApprove }: SendTransferActionsProps) {
return (
<SendTransferFooter>
<LeatherButton borderRadius="10px" flexGrow={1} aria-busy={isLoading} onClick={onApprove}>
<LeatherButton borderRadius="sm" flexGrow={1} aria-busy={isLoading} onClick={onApprove}>
{action}
</LeatherButton>
</SendTransferFooter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function SendTransferConfirmationDetails({
<Stack
border="4px solid"
borderColor="accent.border-default"
borderRadius="16px"
borderRadius="lg"
p="space.05"
gap="space.04"
width="100%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function SendTransferDetails({ address, amount, currentAddress }: SendTra
<Stack
border="4px solid"
borderColor="accent.border-default !important"
borderRadius="16px"
borderRadius="lg"
gap="space.04"
p="space.05"
width="100%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function CollectibleAsset({ icon, name, symbol }: CollectibleAssetProps)
<Flex
alignItems="center"
border="default"
borderRadius="10px"
borderRadius="sm"
minHeight="64px"
mb="space.04"
mt="space.05"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function RecipientDropdownLayout({
{isVisible ? (
<Stack
bg="accent.background-primary"
borderRadius="8px"
borderRadius="xs"
boxShadow="0px 8px 16px rgba(27, 39, 51, 0.08)"
flexDirection="column"
minWidth="100px"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function SelectedAssetField({ icon, name, symbol }: SelectedAssetFieldPro
<Flex
alignItems="center"
border="default"
borderRadius="10px"
borderRadius="sm"
minHeight="64px"
mb="space.04"
mt="space.06"
Expand Down
Loading

0 comments on commit b387903

Please sign in to comment.