-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled laterUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] Code QualityIssues or PRs that relate to code qualityIssues or PRs that relate to code quality[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
Describe the bug
When you delete an Additional CSS Class, it leaves an empty className attribute in the HTML comment code.
To Reproduce
Steps to reproduce the behavior:
- Insert a heading block and type some text
- In the Advanced panel, set an Additional CSS class
- Empty the Additional CSS class field
- Switch to Code Editor.
<!-- wp:heading {"className":""} -->
<h2>Heading</h2>
<!-- /wp:heading -->
Desktop:
- OS: Windows 10, Mac OS
- Browser; Chrome, Safari Firefox, Edge
Additional context
Gutenberg 4.2.0
Metadata
Metadata
Assignees
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled laterUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] Code QualityIssues or PRs that relate to code qualityIssues or PRs that relate to code quality[Type] EnhancementA suggestion for improvement.A suggestion for improvement.