Fix product data field description styling, including checkboxes and radio buttons #38066
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.
Submission Review Guidelines:
Changes proposed in this Pull Request:
This PR tweaks the fix originally supplied in #37791 to improve the product data field description styling, including checkbox and radio buttons. The previous fix, while addressing checkbox and radio buttons, made the styling of descriptions associated with other types of inputs worse on smaller viewports.
This updated implementation keeps the improvement of the checkbox and radio button label styling, and also improves the styling of descriptions associated with other types of inputs by always showing those descriptions below the corresponding input field, regardless of viewport width. This improves situations where the description is long and would wrap oddly before.
I resisted making changes to the structure of the HTML, since that may lead to unexpected issues for extensions. There is certainly a lot of room for improvement, but any such changes would need to be carefully considered.
Before
After
(No visual change to Inventory tab)
How to test the changes in this Pull Request:
/wp-admin/post-new.php?post_type=product
)Downloadable
General
tabSchedule
link is below theSale price ($)
fieldDownload limit
andDownload expiry
are below the input fieldInventory
tab