Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element toolbar text shouldn't inherit content styles #254

Open
petersandor opened this issue Jul 7, 2023 · 0 comments
Open

Element toolbar text shouldn't inherit content styles #254

petersandor opened this issue Jul 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@petersandor
Copy link
Member

Current Behavior

Element toolbar text is inheriting styling which is intended for its content.

Steps To Reproduce

Add a text element and style it with the following styles:

    font-size: var(--cds-heading-04-font-size, 1.75rem);
    font-weight: var(--cds-heading-04-font-weight, 400);
    line-height: var(--cds-heading-04-line-height, 1.28572);
    letter-spacing: var(--cds-heading-04-letter-spacing, 0);
    min-height: 2.5rem;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

Expected Behavior

Toolbar text should not inherit styles which was meant for the actual text element content.

What browsers are you seeing the problem on?

No response

Environment

No response

Additional resources

Note the font size of the text in the toolbar:

Screenshot 2023-07-07 at 21 13 51

It is inherited because the class with the styles is applied on the parent element:

Screenshot 2023-07-07 at 21 21 07
@petersandor petersandor added the bug Something isn't working label Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant