UX: let search button click through to full search (#29)
This commit is contained in:
parent
7dd9002c9f
commit
5f6eddaabc
|
|
@ -78,6 +78,9 @@ $max-width: 600px;
|
||||||
order: 2;
|
order: 2;
|
||||||
right: 0;
|
right: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
.d-icon {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
.discourse-no-touch & {
|
.discourse-no-touch & {
|
||||||
&:hover {
|
&:hover {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import { apiInitializer } from "discourse/lib/api";
|
import { apiInitializer } from "discourse/lib/api";
|
||||||
import { logSearchLinkClick } from "discourse/lib/search";
|
import { logSearchLinkClick } from "discourse/lib/search";
|
||||||
|
import { iconNode } from "discourse-common/lib/icon-library";
|
||||||
|
|
||||||
export default apiInitializer("0.8", (api) => {
|
export default apiInitializer("0.8", (api) => {
|
||||||
const enableConnectorName = settings.plugin_outlet;
|
const enableConnectorName = settings.plugin_outlet;
|
||||||
|
|
@ -111,10 +112,11 @@ export default apiInitializer("0.8", (api) => {
|
||||||
|
|
||||||
if (formFactor === "widget") {
|
if (formFactor === "widget") {
|
||||||
contents.push(
|
contents.push(
|
||||||
this.attach("button", {
|
this.attach("link", {
|
||||||
icon: "search",
|
href: this.fullSearchUrl({ expanded: true }),
|
||||||
className: "search-icon",
|
contents: () => iconNode("search"),
|
||||||
action: "showResults",
|
className: "btn search-icon",
|
||||||
|
title: "search.open_advanced",
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue