Skip to content

Move search-suggestions outside the TermInput's form#368

Draft
BastianLedererIcinga wants to merge 3 commits intomainfrom
move-suggestions
Draft

Move search-suggestions outside the TermInput's form#368
BastianLedererIcinga wants to merge 3 commits intomainfrom
move-suggestions

Conversation

@BastianLedererIcinga
Copy link
Copy Markdown
Contributor

Moving the search-suggestions elements outside the TermInput's form ensures the button elements are not styled by css rules that target .icinga-controls button. This way the specificity hack introduced by #366 is no longer necessary and can be reverted.

requires Icinga/ipl-html#197
Since TermInput::onRegistered is used to add the search-suggestions element, we first need to ensure that it is called when the TermInput is part of a fieldset.

Allow `ValidHtml` to be passed via the `label-html` key
which is then rendered inside a `button` element.

css selectors are adjusted to have increased specificity
because otherwise the button elements are styled by icingaweb2.
Css rules that target forms will no longer style the button elements
used in the suggestions and the css hack can be reverted.
@cla-bot cla-bot Bot added the cla/signed label Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant