Skip to content

Commit 5209f9a

Browse files
committed
adjust spacing and replace buttons with ExternalLink
1 parent 5ce83cb commit 5209f9a

File tree

2 files changed

+34
-18
lines changed

2 files changed

+34
-18
lines changed

routes/ai-home/stage.tsx

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
* WordPress dependencies
33
*/
44
import { Page } from '@wordpress/admin-ui';
5-
import { Button, Notice, Spinner, ToggleControl } from '@wordpress/components';
5+
import {
6+
Button,
7+
ExternalLink,
8+
Notice,
9+
Spinner,
10+
ToggleControl,
11+
} from '@wordpress/components';
612
import { store as coreStore } from '@wordpress/core-data';
713
import { useSelect, useDispatch, useRegistry } from '@wordpress/data';
814
import { DataForm } from '@wordpress/dataviews';
@@ -798,24 +804,14 @@ function AISettingsPage() {
798804
'ai'
799805
) }
800806
actions={
801-
<>
802-
<Button
803-
variant="secondary"
804-
href="https://github.com/WordPress/ai/tree/develop/docs"
805-
target="_blank"
806-
rel="noopener noreferrer"
807-
>
807+
<div className="ai-settings-page__actions">
808+
<ExternalLink href="https://github.com/WordPress/ai/tree/develop/docs">
808809
{ __( 'Docs', 'ai' ) }
809-
</Button>
810-
<Button
811-
variant="primary"
812-
href="https://github.com/WordPress/ai/blob/develop/CONTRIBUTING.md"
813-
target="_blank"
814-
rel="noopener noreferrer"
815-
>
810+
</ExternalLink>
811+
<ExternalLink href="https://github.com/WordPress/ai/blob/develop/CONTRIBUTING.md">
816812
{ __( 'Contribute', 'ai' ) }
817-
</Button>
818-
</>
813+
</ExternalLink>
814+
</div>
819815
}
820816
>
821817
<div className="ai-settings-page">

routes/ai-home/style.scss

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,35 @@
1010
}
1111

1212
.dataforms-layouts-card__field-header-label {
13-
font-size: 0.9rem;
13+
font-size: 1rem;
1414
font-weight: 600;
1515
}
16+
17+
.dataforms-layouts-card__field-description {
18+
margin-bottom: 36px;
19+
}
1620
}
1721

1822
.ai-settings-page .components-notice {
1923
margin: 0 0 24px;
2024
}
2125

26+
.ai-settings-page__actions {
27+
display: flex;
28+
align-items: center;
29+
gap: 16px;
30+
}
31+
32+
.ai-settings-page__link {
33+
display: inline-flex;
34+
align-items: center;
35+
gap: 4px;
36+
37+
svg {
38+
fill: currentColor;
39+
}
40+
}
41+
2242
.ai-feature-settings-form {
2343
margin-top: 4px;
2444
padding-left: 40px;

0 commit comments

Comments
 (0)