Skip to content

Bug - Label - Links render with too little contrast in a colored Label. #1662

@mvollmer

Description

@mvollmer

Describe the problem
This is an issue with

  • Patternfly 5

  • Patternfly 6

  • other

With the update from 6.4.0 to 6.5.2, links in colored labels now look "wrong".

They used to look like this:

image

and now they look like this:

image

Note how they used to have a text-colored underline, which works ok with the redish background. Now they have always-grey "underdots" which don't seem to take contrast with the background into consideration.

Is this even a supported thing to do? (Putting links into labels.) I think the fact that they turn out to be black instead of the usual blue in PF 6.4 is already unintended, maybe.

Any advice for how to design this properly would be appreciated.

Here is the code that produces that label:

<Label color="red"
                icon={<ErrorCircleOIcon />}
                className="resource-state-text"
                closeBtnAriaLabel={_("Close")}
                onClose={dismissError}
                id={`${valueId}-error`}>
                <>
                    {_("Failed")}
                    <Button variant="link" isInline>{_("view more...")}</Button>
                </>
            </Label>

The CSS for resource-state-class changes the layout, but doesn't do anything about colors or text styles, as far as I can see.


Jira Issue: PF-4274

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    Status
    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions