Skip to content

fix(form-field): background-color for input in select, tree-select and dropdown (#DS-4725)#1398

Merged
lskramarov merged 3 commits into
mainfrom
fix/DS-4725
Mar 4, 2026
Merged

fix(form-field): background-color for input in select, tree-select and dropdown (#DS-4725)#1398
lskramarov merged 3 commits into
mainfrom
fix/DS-4725

Conversation

@lskramarov

Copy link
Copy Markdown
Contributor

No description provided.

@lskramarov lskramarov requested review from NikGurev and rmnturov March 2, 2026 15:10
@lskramarov lskramarov self-assigned this Mar 2, 2026
@lskramarov lskramarov requested a review from artembelik as a code owner March 2, 2026 15:11
@lskramarov lskramarov changed the title fix(form-field): background-color for input in select, tree-select an… fix(form-field): background-color for input in select, tree-select and dropdown (#DS-4725) Mar 2, 2026
@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

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

https://koobiq-next--prs-1398-iyfwhzvr.web.app

(expires Sat, 07 Mar 2026 17:25:11 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

@lskramarov

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

✅ Snapshots updated!

)
.subscribe((focusedItem) => this.keyManager.updateActiveItem(focusedItem as KbqDropdownItem));

this.search?.inOverlay.set(true);

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.

может будем устанавливать значение через провайдеры?

providers: [{kbqFormFieldDefaultOptionsProvider({inOverlay:true})}]

в таком случае, вместо model можно input использовать

readonly inOverlay = input(!!this.defaultOptions?.inOverlay, { transform: booleanAttribute });

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

какие преимущества это дает ?

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.

не нужно инжектить форм-филд и переопределять его свойства напрямую, вместо этого оперируем токенами и не нарушаем принцип инверсии зависимостей (классы должны зависеть от абстракций, а не от реализации)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

formField не инжектится, это же контент, который тут фактически есть и мы его донастраиваем (конкретный/один инстанс, не весь класс), а через провайд мы изменим поведение всем дочерним классам..

Для бага этого фикса более чем (максимально точечный фикс), а так да, хорошее место подсветил, спасибо!

@lskramarov lskramarov merged commit c494bdd into main Mar 4, 2026
8 checks passed
@lskramarov lskramarov deleted the fix/DS-4725 branch March 4, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants