Skip to content

Icon Block: Unable to reset width setting #75604

@Mamaduka

Description

@Mamaduka

There are a couple of problems with the Icon block's width setting:

  1. The freshly inserted block already has a setting marked as resettable. Default values shouldn't be marked so.
  2. If you try to reset it, it changes to 12px, and the setting remains resettable. It's an odd loop caused by the blocks 0 width guard effect and the Width settings reset logic, which changes the value to undefined.

Steps to reproduce

  1. Enable block and icon experiments.
  2. Insert an icon block.
  3. Try resetting the width setting.
  4. Action can't be done, and the setting remains resettable.

Screencast

CleanShot.2026-02-17.at.13.12.42.mp4

cc @aaronrobertshaw, @t-hamano, @ryanwelcher

Metadata

Metadata

Assignees

Labels

[Block] IconAffects the Icon block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions