Skip to content

Combo: the focused "Add item" fills with the list item's focus background #17992

Open

Description

@IMinchev64

Description

When allowCustomValues is on and the search text matches no item, the combo shows its default "Add item" button. When that item gets keyboard focus, the igx-combo-add-item wrapper takes the dropdown's focused-item background. The wrapper is the size of the button, so the result looks like a filled button with flat-button text, a button that does not exist in the theme. In Bootstrap dark, for example, the button turns solid gray (#56616b) under blue text.

Theme Focused "Add item"
Material Gray fill (#f5f5f5 light, #424242 dark)
Bootstrap Gray fill (#ebedef light, #56616b dark)
Fluent No fill
Indigo Outline around the button, with no fill

igx-combo-add-item is styled as a dropdown item. .igx-combo__add-item sets only background: var(--empty-list-background), and the igx-drop-down__item--focused rule overrides it while the item has focus. The button itself never receives DOM focus (focus stays on .igx-combo__content), so its own focus styles do not apply.

Framework

Angular

Angular Version

22.3.0

Ignite UI for Angular Version

igniteui-angular 22.3.0-alpha.0

Component / Area

Combo / Simple Combo

Browser

Chrome

Operating System

Windows

Command Not Working

Steps to Reproduce

  1. Use the Bootstrap theme (dark mode shows it best).
  2. Render an igx-combo with [allowCustomValues]="true".
  3. Open the combo and type text that matches no item. The "Add item" button shows below "The list is empty".
  4. Press Arrow Down in the search input.

Actual Result

The wrapper gets igx-drop-down__item--focused and the dropdown's focused-item background. Behind the flat button's text this reads as a filled gray button.

The focus also persists. After the item has been focused once, it is gray again every time the list reopens with no matches, without any key press.

Expected Result

The focused "Add item" looks like the theme's flat button in its focus state, with no list-item fill behind it.

Reproduction URL

(waiting for new combo samples so i can link it directly)

Attachments

image image

IgniteUI/igniteui-documentation#1032 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions