Skip to content

Commit

Permalink
Fix completition widget: body placement + style. (#8119)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Oct 7, 2024
1 parent be26349 commit f13d303
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/web_app/lib/src/widget/completion/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ void create(HTMLElement element, Map<String, String> options) {
dropdown: dropdown,
data: data,
);
// Add dropdown after the <input>
document.body!.after(dropdown);
// Append dropdown to body
document.body!.append(dropdown);
});
}

Expand Down
8 changes: 4 additions & 4 deletions pkg/web_css/lib/src/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@
cursor: pointer;
white-space: nowrap;
padding: 0px 3px;
}

>.completion-option-selected {
background-color: var(--pub-selected-bgColor);

&:hover {
background-color: var(--pub-selected-bgColor);
}
}

>.completion-option-selected {
background-color: var(--pub-selected-bgColor);
}
}

0 comments on commit f13d303

Please sign in to comment.