Skip to content

Bug: --lexical-indent-base-value: 20px; not work #8095

@fjw-ai

Description

@fjw-ai

Issue

--lexical-indent-base-value: 20px; not work, still 40px

Lexical version: 0.39.0

Steps To Reproduce

  1. set :root { --lexical-indent-base-value: 20px; } not work
Image

I think the bug is due to lexical use this code: getComputedStyle(dom).getPropertyValue('--lexical-indent-base-value')

because dom is not attached to the document, so the result is always empty and then will use the default 40px

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions