Skip to content

Icon Label Block - Icon Gap Resets to a Different Value When an Icon Size Is Set #3426

@malalacharm

Description

@malalacharm

Describe the bug
If an Icon Size has a set value, the Icon Gap resets to a different value instead of remaining at 0 when it is set to 0 in all views.

  • Happens in editor
  • Happens in frontend

To Reproduce
Steps to reproduce the behavior:

  1. Add a page
  2. Add an Icon Label Block
  3. On the Icon Label Block, set the Icon Gap value to 0 in Desktop, Tablet, and Mobile views
  4. On the Icon Block, increase the icon size value to 30
  5. Save the page and check on frontend (no icon gap)
  6. Refresh the page
  7. See the error on the editor, there is an icon gap visible and the value is 34
  8. Add the word "block" on the Icon Label Heading and Save page
  9. See the error on frontend (Icon Gap is visible)

Expected behavior

  • When an Icon Size is set to any value, the Icon Gap should remain at the specified value across all views.
  • If the Icon Gap value is set to 0 for Desktop, Tablet, and Mobile views, it should stay at 0 and not reset to another value.
  • Any content updates should not cause the Icon Gap to change unexpectedly

Screenshots

Icon.Gap.mp4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions