Skip to content

Commit 7945303

Browse files
committed
feat: use LinkButton, adjust styles
1 parent 10c2d0b commit 7945303

5 files changed

Lines changed: 63 additions & 56 deletions

File tree

src/components/content/Button.astro

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/content/docs/online-payments/plugins/prestashop.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ sidebar:
55
order: 60
66
---
77

8-
import { Aside } from '@astrojs/starlight/components';
9-
import Button from '@components/content/Button.astro';
8+
import { Aside, LinkButton } from '@astrojs/starlight/components';
109

1110
To use PrestaShop with SumUp, download the SumUp Payment module plugin, which requires configuration in your SumUp dashboard.
1211

13-
<Button href="https://addons.prestashop.com/en/payment-card-wallet/44630-sumup-payment.html">Download PrestaShop Plugin</Button>
12+
<LinkButton
13+
href="https://addons.prestashop.com/en/payment-card-wallet/44630-sumup-payment.html"
14+
icon="external"
15+
>
16+
Download PrestaShop Plugin
17+
</LinkButton>
1418

1519
## Prerequisites
1620

src/content/docs/online-payments/plugins/woocommerce.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ sidebar:
55
order: 80
66
---
77

8-
import { Aside } from "@astrojs/starlight/components";
9-
import Button from "@components/content/Button.astro";
8+
import { Aside, LinkButton } from "@astrojs/starlight/components";
109

1110
The [SumUp Payment Gateway for WooCommerce](https://wordpress.org/plugins/sumup-payment-gateway-for-woocommerce/) enables payments on WordPress sites without coding, enabling your customizations and providing your customers the convenience of securely buying products from your website without being redirected to other pages. The plugin supports major cards (Visa, Mastercard, Amex, Diners, Discover, JCB) via embedded forms. Transactions are processed through the SumUp payment platform with [transaction history provided in the SumUp Dashboard](https://me.sumup.com/sales/transactions).
1211

1312
<Aside type="note">
1413
The SumUp WooCommerce plugin is SCA ready and compliant with PCI standards.
1514
</Aside>
1615

17-
<Button href="https://wordpress.org/plugins/sumup-payment-gateway-for-woocommerce/">
16+
<LinkButton
17+
href="https://wordpress.org/plugins/sumup-payment-gateway-for-woocommerce/"
18+
icon="external"
19+
>
1820
Go to plugin page
19-
</Button>
21+
</LinkButton>
2022

2123
## Prerequisites
2224

src/content/docs/online-payments/sdks/react-native.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ sidebar:
77
---
88

99
import { Aside, Tabs, TabItem } from '@astrojs/starlight/components';
10-
import Button from '@components/content/Button.astro';
1110
import Image from '@components/content/Image.astro';
1211

1312
SumUp's React Native Payment SDK provides a payment sheet that is displayed on top of your app. It collects user payment details, confirms a payment, and saves a card for future usage. Moreover, it allows a user to use Apple Pay or Google Pay to process payments.

src/styles/starlight-vars.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,53 @@
2727
--sl-color-orange: var(--cui-border-warning);
2828
--sl-color-orange-low: var(--cui-bg-warning);
2929
}
30+
31+
/* Bring Starlight LinkButton closer to Circuit UI button styling. */
32+
.sl-link-button {
33+
border-radius: var(--cui-border-radius-byte);
34+
font-weight: var(--cui-font-weight-semibold);
35+
line-height: var(--cui-body-m-line-height);
36+
padding: calc(var(--cui-spacings-kilo) - var(--cui-border-width-kilo))
37+
calc(var(--cui-spacings-giga) - var(--cui-border-width-kilo));
38+
transition:
39+
opacity var(--cui-transitions-default),
40+
color var(--cui-transitions-default),
41+
background-color var(--cui-transitions-default),
42+
border-color var(--cui-transitions-default);
43+
}
44+
45+
.sl-link-button.primary {
46+
color: var(--cui-fg-on-strong);
47+
background-color: var(--cui-bg-accent-strong);
48+
border-color: transparent;
49+
}
50+
51+
.sl-link-button.primary:hover {
52+
color: var(--cui-fg-on-strong-hovered);
53+
background-color: var(--cui-bg-accent-strong-hovered);
54+
border-color: transparent;
55+
}
56+
57+
.sl-link-button.primary:active {
58+
color: var(--cui-fg-on-strong-pressed);
59+
background-color: var(--cui-bg-accent-strong-pressed);
60+
border-color: transparent;
61+
}
62+
63+
.sl-link-button.secondary {
64+
color: var(--cui-fg-normal);
65+
background-color: var(--cui-bg-normal);
66+
border-color: var(--cui-border-normal);
67+
}
68+
69+
.sl-link-button.secondary:hover {
70+
color: var(--cui-fg-normal-hovered);
71+
background-color: var(--cui-bg-subtle-hovered);
72+
border-color: var(--cui-border-normal-hovered);
73+
}
74+
75+
.sl-link-button.secondary:active {
76+
color: var(--cui-fg-normal-pressed);
77+
background-color: var(--cui-bg-subtle-pressed);
78+
border-color: var(--cui-border-normal-pressed);
79+
}

0 commit comments

Comments
 (0)