Repository navigation
Blocks: Revert the default fonti size changes for Paragraph - #6075
Merged
Merged
Conversation
3 tasks done
| className="blocks-paragraph__custom-size-slider" | ||
| label={ __( 'Custom Size' ) } | ||
| value={ fontSize } | ||
| value={ fontSize || '' } |
Member
There was a problem hiding this comment.
Minor: I think the || ''may not be necessary.
Member
Author
There was a problem hiding this comment.
It was there before so let's leave it as it is until you find a proper fix :D
jorgefilipecosta
approved these changes
Apr 9, 2018
jorgefilipecosta
left a comment
Member
There was a problem hiding this comment.
Thank you for coming back to this, it tests well 👍 I'm trying an approach to improve the slider initial position using fallback styles it may just increase UX does not change this logic and does not conflict with this revert :)
Member
Author
|
@jorgefilipecosta, awesome. Thanks for taking care of it and catching this early 👍 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
As noted by @jorgefilipecosta in #5995:
This PR reverts this behavior. I tried a few different tricks, but they all have some flaws. The most promising one was to set 16px only when it matches the computed style, but it doesn't work properly when switching back from HTML mode. In addition, it isn't consistent when you set the value back to 16px. Then it adds class name which isn't perfect. We can tackle it later in a separate PR.
How Has This Been Tested?
Manually. This is how font size setting should look like on the initial load for the default Paragraph block:
Checklist: