Skip to content

Commit

Permalink
fix: fixing the select styles
Browse files Browse the repository at this point in the history
  • Loading branch information
macci001 committed Feb 13, 2025
1 parent c33522b commit 9b1b860
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/docs/components/marketing/hero/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const Hero = () => {
<div className="flex justify-center w-full md:hidden">
<Chip
as={NextLink}
className="bg-foreground-100/50 border-1 hover:bg-foreground-100/80 border-foreground-200/50 cursor-pointer"
className="bg-default-200/50 border-1 hover:bg-default-200/80 border-default-400/50 cursor-pointer"
classNames={{
content: "font-semibold text-foreground text-xs ",
}}
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const Navbar: FC<NavbarProps> = ({children, routes, mobileRoutes = [], sl
{versionDropdown}
<Chip
as={NextLink}
className="hidden sm:flex bg-foreground-100/50 border-1 hover:bg-foreground-100/80 border-foreground-200/50 cursor-pointer"
className="hidden sm:flex bg-default-200/50 border-1 hover:bg-default-200/80 border-default-400/50 cursor-pointer"
classNames={{
content: "font-semibold text-foreground text-xs ",
}}
Expand Down
7 changes: 6 additions & 1 deletion apps/docs/components/themes/components/select-template.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Select, SelectItem} from "@heroui/react";
import {cn, Select, SelectItem} from "@heroui/react";

import {templates} from "../templates";
import {Template, TemplateType} from "../types";
Expand Down Expand Up @@ -33,6 +33,7 @@ export function SelectTemplate({name, onChange, currentTheme}: SelectTemplatePro
className="my-3"
classNames={{
trigger: "bg-default-200",
popoverContent: "bg-white dark:bg-[#18181B]",
}}
placeholder="Select a theme"
selectedKeys={name === null ? [] : [name]}
Expand All @@ -41,6 +42,10 @@ export function SelectTemplate({name, onChange, currentTheme}: SelectTemplatePro
{templates.map((template, index) => (
<SelectItem
key={template.name}
className={cn(
"data-[hover=true]:transition-none dark:data-[hover=true]:bg-[#26262A] dark:text-white dark:data-[hover=true]:text-white dark:data-[selectable=true]:focus:bg-[#26262A] dark:data-[selectable=true]:focus:text-white",
"data-[hover=true]:bg-white text-black data-[hover=true]:text-black data-[selectable=true]:focus:bg-[#F4F4F5] data-[selectable=true]:focus:text-black",
)}
startContent={
<Swatch
colors={
Expand Down

0 comments on commit 9b1b860

Please sign in to comment.