Skip to content

Pass font size to color panel when using "__experimentalColor" attribute #24607

Open

Description

@tellthemachines

Is your feature request related to a problem? Please describe.

With the new way for blocks to declare support for color and font size customizations, there is currently no way for the color panel to read the block font size. This is important because the font size allows the contrast checker in the color panel to output more accurate recommendations.

Describe the solution you'd like

As per this comment, get the block font size and pass it to the contrast checker in ColorPanel.

Activity

  1. added
    Global Styles
    on Aug 18, 2020
  2. added
    [Type] Developer Documentation
    and removed on Nov 24, 2021
  3. added
    [Focus] Accessibility (a11y)
    and removed on Jul 24, 2023
  4. added
    Good First Issue
    on Nov 11, 2026
  5. added
    [Status] In Progress
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesGood First Issue[Focus] Accessibility (a11y)[Status] In Progress[Type] Developer Documentation

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions