Skip to content

fix(select): use kbqHighlightBackground for search highlighting in dropdowns (#DS-5293)#1774

Open
lskramarov wants to merge 3 commits into
mainfrom
fix/DS-5293
Open

fix(select): use kbqHighlightBackground for search highlighting in dropdowns (#DS-5293)#1774
lskramarov wants to merge 3 commits into
mainfrom
fix/DS-5293

Conversation

@lskramarov

Copy link
Copy Markdown
Contributor

No description provided.

@lskramarov lskramarov self-assigned this Jul 23, 2026
@lskramarov
lskramarov requested a review from NikGurev as a code owner July 23, 2026 08:56
@lskramarov lskramarov added the bug Something isn't working label Jul 23, 2026
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit fefb4c6):

https://koobiq-next--prs-1774-1agrbtqi.web.app

(expires Thu, 30 Jul 2026 11:51:28 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates search-match highlighting in dropdown/overlay-based pickers to use the kbqHighlightBackground pipe (background fill) instead of mcHighlight (bold), and adjusts highlight documentation accordingly.

Changes:

  • Switched select/tree-select/dropdown option templates from mcHighlight to kbqHighlightBackground for search highlighting in dropdowns/overlays.
  • Updated several examples/components to import KbqHighlightBackgroundPipe where they previously imported KbqHighlightPipe.
  • Revised highlight documentation (EN/RU) to describe when to use bold vs background highlighting.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/docs-examples/components/tree-select/tree-select-search-overview/tree-select-search-overview-example.ts Uses kbqHighlightBackground for tree-select search highlighting in the example.
packages/docs-examples/components/select/select-search/select-search-example.ts Uses kbqHighlightBackground for select search highlighting in the example.
packages/docs-examples/components/select/select-paging/select-paging-example.ts Swaps pipe import + template usage to KbqHighlightBackgroundPipe / kbqHighlightBackground.
packages/docs-examples/components/select/select-paging-error/select-paging-error-example.ts Same as above for the error variant example.
packages/docs-examples/components/select/select-loading/select-loading-example.ts Same as above for the loading variant example.
packages/docs-examples/components/select/select-loading-error/select-loading-error-example.ts Same as above for the loading+error variant example.
packages/docs-examples/components/highlight/highlight-select/highlight-select-example.ts Updates highlight-select example to use background highlighting.
packages/docs-examples/components/dropdown/dropdown-with-filter/dropdown-with-filter-example.ts Updates dropdown filtering example to use background highlighting.
packages/components/timezone/timezone-option.component.ts Switches component imports to KbqHighlightBackgroundPipe.
packages/components/timezone/timezone-option.component.html Updates timezone option highlighting to kbqHighlightBackground.
packages/components/filter-bar/pipes/pipe-tree-select.html Updates filter-bar tree-select pipe template to kbqHighlightBackground.
packages/components/filter-bar/pipes/pipe-multi-tree-select.html Updates filter-bar multi-tree-select pipe template to kbqHighlightBackground.
packages/components/core/highlight/highlight.ru.md Updates RU docs describing highlight pipes/usage.
packages/components/core/highlight/highlight.en.md Updates EN docs describing highlight pipes/usage.
packages/components-dev/tree-select/template.html Updates dev tree-select template highlighting to kbqHighlightBackground.
packages/components-dev/select/template.html Updates commented dev select snippets to kbqHighlightBackground.
packages/components-dev/form-field/template.html Updates dev form-field tree-select highlighting to kbqHighlightBackground.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 5 to 8
#### Bold

Used in selects with search and homogeneous lists (for example, choosing a department or a name). This style is unobtrusive and ideal for quickly scanning familiar data: the user immediately sees that the searched word is in the row but is not distracted from the main choice.

<!-- example(highlight-select) -->
Used in homogeneous lists rendered inline on the page, without a dropdown or overlay (for example, filtering a tree list). This style is unobtrusive and ideal for quickly scanning familiar data: the user immediately sees that the searched word is in the row but is not distracted from the main choice.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

действительно 😊

Comment on lines 5 to 8
#### Жирный шрифт

Применяется в селектах с поиском и однородных списках (например, выбор отдела или имени). Этот способ ненавязчив и идеален для быстрого сканирования знакомых данных: пользователь сразу видит, что искомое слово есть в строке, но не отвлекается от основного выбора.

<!-- example(highlight-select) -->
Применяется в однородных списках, отображаемых прямо на странице, без выпадающего окна или оверлея (например, фильтрация дерева). Этот способ ненавязчив и идеален для быстрого сканирования знакомых данных: пользователь сразу видит, что искомое слово есть в строке, но не отвлекается от основного выбора.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

молодец) я займусь этим

@rmnturov rmnturov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По задаче я понял так: нужно, чтобы во всех перечисленных компонентах появилась подсветка совпадений фоном. Не «заменить, где есть», а «сделать так, чтобы было». В описании задачи же прямо перечислены: Select, TreeSelect, Dropdown, Autocomplete, Timezone, Tag Input, Tag Autocomplete.

В PR отлично залетела замена вида подсветки в селектах, три-селеуктах, дропдауне и таймзоне — там где подсветка уже была, все ок.

Но в Autocomplete и Tag Autocomplete ее не было ранее, и в PR она не добавилась. Получается, что эти компоненты остались без подсветки, хотя задача подразумевает, что она должна быть.

@lskramarov

Copy link
Copy Markdown
Contributor Author

@rmnturov добавил везде где есть поиск в выпадающем списке

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants