Skip to content

Commit

Permalink
Add new experimental link color theme support (#541)
Browse files Browse the repository at this point in the history
* Update core.php

* Add styles for links with colors

* Add theme support for custom-units

* Remove custom spacing/units as it doesnt work as expected yet

Co-authored-by: AnthonyLedesma <anthonymledesma@gmail.com>
  • Loading branch information
richtabor and AnthonyLedesma committed Aug 4, 2020
1 parent c1ae003 commit 3db1906
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dev/assets/shared/css/blocks/paragraph.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
padding-top: 0;
}
}

.has-link-color a:hover {
color: var(--go--color--text) !important;
}
3 changes: 3 additions & 0 deletions includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ function theme_setup() {
// Add support for editor styles.
add_theme_support( 'editor-styles' );

// Add support for experimental link colors.
add_theme_support( 'experimental-link-color' );

// Add custom editor font sizes.
add_theme_support(
'editor-font-sizes',
Expand Down

0 comments on commit 3db1906

Please sign in to comment.