-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RN Mobile][Global Styles] Adds new Prop for Global Styles Settings #30544
Conversation
Size Change: -6 B (0%) Total Size: 1.05 MB
ℹ️ View Unchanged
|
8a662f1
to
c3dde94
Compare
|
||
private func properties(from editorSettings: GutenbergEditorSettings?) -> [String : Any] { | ||
var settingsUpdates = [String : Any]() | ||
settingsUpdates["isFSETheme"] = editorSettings?.isFSETheme ?? false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antonis @geriux I pushed the iOS Changes in bf75be1. As part of that, I included isFSETheme
which maps to __unstableEnableFullSiteEditingBlocks
which may not be critical yet but I included it in case it helps identify if colors
and gradients
are blank because the theme wants the default values or if it's blank because we're using an FSE theme.
…ents (#30684) * Mobile - Read global styles and set color palette and gradients * Parse all color variables * Fix gradients * Update global styles mocked data * Move color settings * Removed added spaces * Add tests * Update experimental features path and prepare for rawGlobalStylesBaseStyles * Remove mock data and update code to use latest API changes
# Conflicts: # packages/editor/src/components/provider/index.native.js
This reverts commit 32a2b3a.
* Mobile - Read global styles and set color palette and gradients * Mobile - Enable colors for blocks that support it * Parse all color variables * Mobile - Set background, title, text and link colors * Fix gradients * Add placeholder color * Update global styles mocked data * Move color settings * Removed added spaces * Add tests * Update experimental features path and prepare for rawGlobalStylesBaseStyles * Add missing provider * Get the right color attribute * Remove mock data * Mobile - Fix base global colors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good to me. I agree with @geriux we can move this forward and merge as we work to figure out the best timing to enable the feature.
Fixes: wordpress-mobile/gutenberg-mobile#3163
gutenberg-mobile
PR: wordpress-mobile/gutenberg-mobile#3459WordPress-Android
PR: wordpress-mobile/WordPress-Android#14597WordPress-FluxC-Android
PR: wordpress-mobile/WordPress-FluxC-Android#1940WordPress-iOS
PR: wordpress-mobile/WordPress-iOS#16411WordPressKit-iOS
PR: wordpress-mobile/WordPressKit-iOS#394Description
Adds new Prop for Global Styles Settings
How has this been tested?
Follow the test instructions on:
Types of changes
New feature (non-breaking change which adds functionality)
Checklist:
*.native.js
files for terms that need renaming or removal).