Expose the Global Styles precedence logic to an endpoint that native mobile editor can use #25049
Labels
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
lib/global-styles.php
merges data from 3 sources:Later origins take precedence, so, for example, if the user has set up a font-size value for the paragraph block it'll take precedence from the value from the theme origin.
We need to extract the parts of lib/global-styles.php that makes sense for mobile to an endpoint.
Prioritization:
For the first iteration we are interested in supporting colors (text, background, links, gradients)
But it is important to keep an eye on spacing (margin, padding) settings for upcoming features, at least to make sure it is applicable on mobile.
More context: #24165
The text was updated successfully, but these errors were encountered: