-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix how appearanceTools
works
#37254
Conversation
blockGap
cannot be disabled
blockGap
cannot be disabledappearanceTools
: only opt-in if it is true
9dddcee
to
35498b3
Compare
@ndiego Let me rephrase: this PR fixes a couple of issues with |
appearanceTools
: only opt-in if it is true
appearanceTools
works
Thanks for this @oandregal, I have tested and confirm that this fix works as intended! |
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.
Thanks for the ping and fix @oandregal!
✅ Tested that the appearanceTools
setting only affects the opt-ins when set to true
.
✅ Tested that null
is a valid override value in settings.spacing.blockGap
and that the settings overrides appear to work correctly with the appearanceTools
setting.
LGTM! 🚀
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.
Nice work as always @oandregal 👍
✅ code changes LGTM
✅ unit tests pass
✅ appearanceTools
only opts-in other features when set to true
✅ null
override for settings.spacing.blockGap
works
Fixes #37232
Follow-up to #36646
This PR fixes two things:
appearanceTools
flag was activating the others, while it should only be the case ifappearanceTools
wastrue
.blockGap
) for which thenull
value is actually valid, so we need to detect whether they are set/unset using a different marker.How to test
Verify that without
appearanceTools
things work as expected:false
the flagappearanceTools
in thetheme.json
of TwentyTwentyTwo.Verity that with
appearanceTools
active blockGap can be disabled:true
the flagappearanceTools
in thetheme.json
of TwentyTwentyTwo.settings.spacing.blockGap
tonull
.