Skip to content

Commit

Permalink
Fix support rule in site-header.tsx (shadcn-ui#1628)
Browse files Browse the repository at this point in the history
Fixes shadcn-ui#1627 if that is desired.
  • Loading branch information
ollema authored Oct 19, 2023
1 parent 1d68617 commit 8acb8d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/www/components/site-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { buttonVariants } from "@/registry/new-york/ui/button"

export function SiteHeader() {
return (
<header className="supports-backdrop-blur:bg-background/60 sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur">
<header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
<div className="container flex h-14 items-center">
<MainNav />
<MobileNav />
Expand Down
2 changes: 1 addition & 1 deletion templates/next-template/components/site-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ThemeToggle } from "@/components/theme-toggle"

export function SiteHeader() {
return (
<header className="bg-background sticky top-0 z-40 w-full border-b">
<header className="sticky top-0 z-40 w-full border-b bg-background">
<div className="container flex h-16 items-center space-x-4 sm:justify-between sm:space-x-0">
<MainNav items={siteConfig.mainNav} />
<div className="flex flex-1 items-center justify-end space-x-4">
Expand Down

0 comments on commit 8acb8d1

Please sign in to comment.