Skip to content

Request - MRC: Change applyRoleStyle for Gradient styling #80

@Zacam

Description

@Zacam

Specifically, line 470:

            element.style = {
                color: unset,

To be:

            element.style = {
                color: colorObject.colorString,

Reason:
I have some ::before and ::after styling for role headers (See the "bars" from ClearVision as an example, but created to reflect the Role color).

If I do this and enable "Show Gradient Colors" on Role Headers, the styled gradients turn --text-normal color, even though the Roles are Gradient.

By setting the above code change locally, I'm able to retain the styling (and bonus; don't have to define my own background to set a 'currentColor` gradient) and it is able to color the styled bars in the ::before and ::after under both cases (Use Gradient Off/On).

Now, due to how it works, it's really only grabbing the primaryColor from the Gradient to set; but that's better than "nothing".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions