feat(author-profile-social): add support for colors, block spacing, brand style#4509
feat(author-profile-social): add support for colors, block spacing, brand style#4509thomasguillot wants to merge 54 commits intotrunkfrom
Conversation
…margin, remove block padding
laurelfulford
left a comment
There was a problem hiding this comment.
This is looking really cool, @thomasguillot!
I have a couple suggestions and some not-necessary nits. Just let me know if anything doesn't make sense, or doesn't line up with how it seems to work for you!
| * @param string $value Raw value, e.g. "var:preset|spacing|20" or "#fff". | ||
| * @return string CSS value, e.g. "var(--wp--preset--spacing--20)" or "#fff". | ||
| */ | ||
| private static function preset_to_css( string $value ): string { |
There was a problem hiding this comment.
Looking at Core's Social Links block, it uses the <ul> as the outer wrapper, rather than an extra <div> that the author profile social block uses.
I think we can rejig it a bit so the <ul> is the outermost container, then the block gap stuff should just work without this workaround (cc @rbcorrales in case I am horribly wrong)! This looks like it works, but it'd be nice to take advantage of the baked in way to do it if we can 🙂
There was a problem hiding this comment.
One issue with this approach is that it would leave us with two separate versions of the block that use different structures: the legacy version built with <div><ul>, and the InnerBlocks version that uses only <ul>.
Co-authored-by: Laurel <laurel.fulford@automattic.com>
Co-authored-by: Laurel <laurel.fulford@automattic.com>
…lock.php Co-authored-by: Laurel <laurel.fulford@automattic.com>
All Submissions:
Changes proposed in this Pull Request:
This PR adds a bunch of enhancements to the block:
We are extracting the gaps and colours to apply them to the actual link
video.mp4
How to test the changes in this Pull Request:
Other information: