Skip to content

Commit 53c7c6d

Browse files
n2erjo00n2erjo00t-hamanoMamadukacoder-rancho
authored andcommitted
Match front-page link style to admin styles (WordPress#70600)
* Add color styles to link. Add :hover and :focus styles by copying button component * Match paddings of button component * Remove external from rel attribute * Conditionally add exteral rel if the href is pointing to external url * Revert style changes to ExternalLink component * Apply style changes only to front-page-link and include theme-variables * Using css variables * Remove import * Reverting changes Co-authored-by: n2erjo00 <n2erjo00@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: coder-rancho <vyasnaman@git.wordpress.org> Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: joedolson <joedolson@git.wordpress.org>
1 parent a19c2ea commit 53c7c6d

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

packages/editor/src/components/post-url/style.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,20 @@
1818

1919
.editor-post-url__front-page-link {
2020
// Match padding on tertiary buttons for alignment.
21-
padding: $grid-unit-15 * 0.5 0 $grid-unit-15 * 0.5 $grid-unit-15;
21+
padding: $grid-unit-15 * 0.5 $grid-unit-15;
22+
border-radius: $radius-small;
23+
color: var(--wp-admin-theme-color);
24+
25+
&:hover {
26+
background: color-mix(in srgb, var(--wp-admin-theme-color) 4%, transparent);
27+
color: var(--wp-admin-theme-color-darker-20, #183ad6);
28+
}
29+
30+
&:focus {
31+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
32+
color: var(--wp-admin-theme-color);
33+
outline: 3px solid #0000;
34+
}
2235
}
2336

2437

0 commit comments

Comments
 (0)