-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Post Featured Image block: Enable gradient overlay (#43838)
* Feat: Add block attributes related to the overlay * Feat: Add overlay settings and markup for editor * Feat: Add overlay markup for the front-end * Feat: Add styles for the overlay * Feat: Add custom gradient on front-end * Refact: Use overlay instead of background for variable names * Chore: Remove default opacity * Feat: Export the Overlay settings as a component * Feat: Add the Overlay settings in the site editor * Refact: Set default overlay opacity to 0 * Refact: Export the overlay markup in the separate component * Feat: Export the utility function to a separate file * Fix: Add missing custom overlay attribute * Fix: Links not working because of the overlay * Fix: The upload button on placeholder not working * Refact: Rename variable to a shorten name 'overlay_element_markup' to 'overlay_markup' * Chore: Remove unnecessary brackets * Refact: Remove duplicate style property * Feat: Add overlay when block is used inside query loop * Fix: Missing attribute in unit test and doc
- Loading branch information
Showing
9 changed files
with
357 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
147 changes: 77 additions & 70 deletions
147
packages/block-library/src/post-featured-image/editor.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.