Should particular 'fluid' setting of a font size preset work if the global typography.fluid setting isn't set or it's false? #64766
Labels
[Feature] Typography
Font and typography-related issues and PRs
Needs Decision
Needs a decision to be actionable or relevant
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
[Type] Question
Questions about the design or development of the editor.
Description
Should particular
fluid
settings of a font size preset work ifsettings.typography.fluid
is false or not set intheme.json
?Let's consider these settings as example:
In this case, the 'Large' font size preset fluid settings are ignored by the styles renderer because
settings.typography.fluid
isn't set. The same would happen ifsettings.typography.fluid
is set tofalse
. Fluid styles are only set ifsettings.typography.fluid
istrue
.Expected
If the particular font size preset has fluid settings defined, it should render the fluid styles because more specific settings take precedence over more general settings. In the case mentioned before, the global
fluid
setting is not even defined, so the more particular font size preset fluid settings should be used. What do you think?If we think that the particular font size preset fluid settings should be respected if they are set explicitely we can close this another related issue because it won't be valid anymore: # 64765 Font size presets inconsistent with the global fluid typography setting
.
cc. @WordPress/gutenberg-design @WordPress/block-themers
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: