Skip to content

Forms: Can't easily reset style values other than colors #41205

Open
@aaronrobertshaw

Description

@aaronrobertshaw

Impacted plugin

Jetpack

Quick summary

In form field blocks, once you set a style value there's no easy way for users to reset the values to their defaults.

The colors use the ToolsPanel component so can be reset via that panel's ellipsis menu. The other styles, e.g. font size, line-height, border width or radius etc., are more difficult.

Font size: The user has to toggle the control to the custom value view, then clear the unit control there.
Line height: Simply delete the value from the unit control
Border width & radius: There's no way to reset the control. Clearing the UnitControl input doesn't clear the internal state for the control so the slider portion of the range control retains its value.

Steps to reproduce

  1. Add a contact form to a post
  2. Select a form field and expand the Input Styles panel
  3. Add values for all the style controls under Input Styles
  4. Try clearing those style values

Site owner impact

Fewer than 20% of the total website/platform users

Severity

Minor

What other impact(s) does this issue have?

No response

If a workaround is available, please outline it here.

No response

Platform (Simple and/or Atomic)

No response

Metadata

Metadata

Assignees

Type

Projects

  • Status

    Triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions