Skip to content

[bug]: Badge add transparent as possible backgroundColor value and find a way to overwrite the textColor with the prop passed #1724

Closed
@simotae14

Description

@simotae14

What version of strapi-design-system are you using?

DS - v2.0.0-beta.3
Node - v20.10.0
NPM - v10.2.3
YARN - v4.0.1
Browser - Chrome

What's Wrong?

it is impossible to pass transparent as backgroundColor (we have a Type issue)

And if you try to pass a value to the textColor prop it doesn't apply

To Reproduce

Create a Badge content in the cms and try to pass the two props, transparent is not allowed as backgroundColor and the textColor doesn't work

Expected Behaviour

I think transparent needs to be an option for the the background color and the textColor needs to be applied

Metadata

Metadata

Labels

issue: bugIssue reporting a bugseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solvestatus: pending reproductionWaiting for free time to reproduce the issue, or more information

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions