Skip to content

iconColor not working for box when light or seamless is enabled #2174

@yucheng11122017

Description

@yucheng11122017

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

No response

Tell us about your environment

Windows 10

MarkBind version

V4.1.0

Describe the bug and the steps to reproduce it

Code to reproduce issue:

<box type="info" seamless icon-color="red"> 
hi
</box>
<box type="info" light icon-color="red"> 
hi
</box>

Source code causing the problem:
When light or seamless is enabled, an additional class is added to the wrapper of the icon (code).
Eg. text-info is added to the icon-wrapper.

The CSS has !important leading it to override the inline CSS for color.
CSS for text-info:
image

Expected behavior

Expected for iconColor in box to be red it is still blue

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions