Skip to content

Replace Red Hat color tokens with PatternFly v4 global tokens in pf-select #2954

@bennypowers

Description

@bennypowers

Description

The pf-select and pf-option components are using Red Hat color tokens (--rh-color-*) instead of PatternFly v4 global color tokens.

Current Usage

Found in rg '\-\-rh-color-gray':

elements/pf-select/pf-select.css:8

--_pf-option-selected-background-color: var(--rh-color-gray-20, #e0e0e0);

elements/pf-select/pf-option.css:18

background-color: var(--_pf-option-selected-background-color, var(--rh-color-gray-20, #e0e0e0));

Expected

These should use PatternFly v4 global color tokens instead, provided they meet contrast requirements. For example, tokens like:

  • --pf-global--BackgroundColor--*
  • --pf-global--palette--black-*

Impact

This affects the selected option background color in the select component.

Color Reference

Current fallback value: #e0e0e0 (light gray)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions