Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BR-511] feat(navbar): remove border-top and change search button border-radius #67

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export function Autocomplete({ className }: AutocompleteProps) {

return (
<div className="relative hidden lg:block">
<div className={cn("relative block w-[240px] overflow-hidden rounded-[66px]", className)}>
<div className={cn("relative block w-[240px] overflow-hidden rounded-md", className)}>
{!!isPending && <Spinner className="absolute inset-y-1.5 right-2" />}
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3.5">
<SearchIcon className="size-4 text-neutral-500" />
</div>
<input
type="search"
className="block w-full rounded-[66px] border border-neutral-300 bg-neutral-100 px-2.5 py-1.5 pl-10 text-sm text-black focus:border-blue-500 focus:ring-blue-500 "
className="block w-full rounded-md border border-neutral-300 bg-neutral-100 px-2.5 py-1.5 pl-10 text-sm text-black focus:border-blue-500 focus:ring-blue-500 "
placeholder="Search..."
onChange={onChange}
onFocus={handleOnInputFocus}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function NavigationBar({ items }: NavigationBarProps) {
))

return (
<header className="mega-navbar sticky top-0 z-50 mx-auto my-0 flex w-full flex-wrap content-center items-center justify-between border-b border-black bg-white py-6 md:border-y ">
<header className="mega-navbar sticky top-0 z-50 mx-auto my-0 flex w-full flex-wrap content-center items-center justify-between border-b border-black bg-white py-6">
<div className="flex justify-start px-4 md:mx-auto md:w-full md:max-w-container-md md:px-0">
<Link prefetch={false} href="/" className="brand mr-20 hidden items-center text-xl font-bold md:flex">
Acme
Expand Down
Loading