forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mobile - Fix Custom Palette colors and support multiple origins and t…
…heme cache issues (WordPress#38417) * Mobile - Rich Text - Validate link colors before passing an invalid one to Aztec, the color parser throws an error if its invalid. * Remove unneeded check * Mobile - Global styles - Parse custom palette colors e.g var:preset|color|custom-color-2 * Mobile - Global styles - Update tests to take into account custom colors * Mobile - Adds useMobileGlobalStylesColors hook to get global styles palette colors * Mobile - Update Cover and Global styles test * Mobile - Cover - Use memo for the inline color palette * Mobile - Cover - Revert test change due to colors update * Mobile - Add support for multiple color palettes and gradients including custom ones * Mobile - Rich Text - Simply color palettes merge * Mobile - Global styles - Enable default palette and default gradients if no value comes from the API * Mobile - Update CHANGELOG * Mobile - Global styles utils - Update test with default values * Mobile - Provider - Fix replacing previous colors on settings update * Mobile - Enable text and color settings since we are providing default colors when there's no theme data available * Mobile - Android - Fix issue where a restart was needed to load the theme colors * Mobile - Reset Global styles base styles for standard themes. Fixes sync issues when changing between themes. * Mobile - Palette screen - Add top and bottom padding for the container of the color palettes * Mobile - Bottom sheet navigation screen - Add missing dependencies in useMemo * Mobile - Global styles - useMobileGlobalStylesColors: use the type to get the fallback colors/gradients * Mobile - Provider - Always return getColorsAndGradients if it's not a block theme * Mobile - Global styles - Enable default color/gradient palette if its not an empty array * Mobile - Global styles - Set default values for defaultEditor colors and defaultEditorGradients
- Loading branch information
Gerardo Pacheco
authored
Feb 16, 2022
1 parent
5a533a0
commit b22ce95
Showing
25 changed files
with
344 additions
and
239 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export { default as transformStyles } from './transform-styles'; | ||
export * from './theme'; | ||
export * from './block-variation-transforms'; | ||
export { default as getPxFromCssUnit } from './parse-css-unit-to-px'; |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.