-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
336a080
commit 27d7b1f
Showing
19 changed files
with
365 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./search"; | ||
export * from "./search-view"; | ||
export * from "./search-anchor"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
import { Splash } from "@material/solid/components/splash"; | ||
import type { Component } from "solid-js"; | ||
import { searchAnchorIconStyle, searchAnchorLabelStyle, searchAnchorStyle } from "./search-anchor.css"; | ||
import { Splash } from "@material/solid/components/splash"; | ||
import { Focus } from "@material/solid/components/focus"; | ||
import { searchAnchorContentStyle, searchAnchorIconStyle, searchAnchorLabelStyle, searchAnchorStyle } from "./search-anchor.css"; | ||
|
||
import SearchIcon from "~icons/material-symbols-rounded/search:outlined"; | ||
|
||
export const SearchAnchor: Component = (props) => { | ||
let ref!: HTMLButtonElement; | ||
export const SearchAnchor: Component = () => { | ||
let ref!: HTMLElement; | ||
|
||
return ( | ||
<button ref={ref} class={searchAnchorStyle}> | ||
<Splash for={ref} /> | ||
<SearchIcon class={searchAnchorIconStyle} /> | ||
<span class={searchAnchorLabelStyle}>Search</span> | ||
<button | ||
ref={ref as HTMLButtonElement} | ||
class={searchAnchorStyle}> | ||
<Focus for={ref} /> | ||
<Splash for={ref} /> | ||
<div class={searchAnchorContentStyle}> | ||
<SearchIcon class={searchAnchorIconStyle} /> | ||
<span class={searchAnchorLabelStyle}>Search</span> | ||
</div> | ||
</button> | ||
); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.