Skip to content

Commit

Permalink
styling accordians and drop downs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammii-HK committed Apr 24, 2024
1 parent 49f3776 commit cf89e3b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion @/components/ui/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const AccordionContent = React.forwardRef<
)}
{...props}
>
<div className="pb-4 pt-0">{children}</div>
<div className="pb-4 pt-0 text-neutral-50">{children}</div>
</AccordionPrimitive.Content>
))
AccordionContent.displayName = AccordionPrimitive.Content.displayName
Expand Down
4 changes: 2 additions & 2 deletions components/layout/search/filter/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function FilterItemDropdown({ list }: { list: ListItem[] }) {
onClick={() => {
setOpenSelect(!openSelect);
}}
className="flex w-full items-center justify-between rounded border border-black/30 px-4 py-2 text-sm dark:border-white/30"
className="flex w-full items-center justify-between rounded border border-neutral-500/30 px-4 py-2 text-sm text-neutral-100 dark:border-white/30"
>
<div>{active}</div>
<ChevronDownIcon className="h-4" />
Expand All @@ -52,7 +52,7 @@ export default function FilterItemDropdown({ list }: { list: ListItem[] }) {
onClick={() => {
setOpenSelect(false);
}}
className="absolute z-40 w-full rounded-b-md bg-white p-4 shadow-md dark:bg-black"
className="absolute z-40 w-full rounded-b-md bg-neutral-800 text-neutral-100 p-4 shadow-md dark:bg-black"
>
{list.map((item: ListItem, i) => (
<FilterItem key={i} item={item} />
Expand Down
4 changes: 2 additions & 2 deletions components/layout/search/filter/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function PathFilterItem({ item }: { item: PathFilterItem }) {
}, [pathname, item.path]);

return (
<li className="mt-2 flex text-black dark:text-white" key={item.title}>
<li className="mt-2 flex text-neutral-200 dark:text-white" key={item.title}>
<DynamicTag
href={createUrl(item.path, newParams)}
className={clsx(
Expand Down Expand Up @@ -57,7 +57,7 @@ function SortFilterItem({ item }: { item: SortFilterItem }) {
}, [searchParams, item.slug]);

return (
<li className="mt-2 flex text-sm text-black dark:text-white" key={item.title}>
<li className="mt-2 flex text-sm text-neutral-200 dark:text-white" key={item.title}>
<DynamicTag
prefetch={!active ? false : undefined}
href={href}
Expand Down
6 changes: 3 additions & 3 deletions components/product/gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ export function Gallery({ images }: { images: { src: string; altText: string }[]

{images.length > 1 ? (
<div className="bottom-2 z-50 flex w-full justify-center absolute">
<div className="mx-auto flex h-8 items-center rounded border border-white bg-neutral-50/50 text-neutral-500 backdrop-blur dark:border-black dark:bg-neutral-900/80">
<div className="mx-auto flex h-8 items-center rounded border border-neutral-500 bg-neutral-500/30 text-neutral-200 backdrop-blur dark:border-black dark:bg-neutral-900/80">
<button
aria-label="Previous product image"
onClick={() => handleNavigate('previous')}
className={buttonClassName}
>
<ArrowLeftIcon className="h-5" />
</button>
<div className="mx-1 h-6 w-px bg-neutral-500"></div>
<div className="mx-1 h-6 w-px bg-neutral-600"></div>
<button
aria-label="Next product image"
onClick={() => handleNavigate('next')}
Expand All @@ -57,7 +57,7 @@ export function Gallery({ images }: { images: { src: string; altText: string }[]
</div>

{images.length > 1 ? (
<div className="flex items-center justify-center gap-2 overflow-auto py-1 pl-20 md:pl-0">
<div className="flex items-center justify-center gap-2 overflow-auto py-1 md:pl-0">
{images.map((image, index) => {
const isActive = index === currentImageIndex;
return (
Expand Down
2 changes: 1 addition & 1 deletion components/ui/prose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Prose: FunctionComponent<TextProps> = ({ html, className }) => {
return (
<div
className={clsx(
'prose mx-auto max-w-6xl text-base leading-7 text-black prose-headings:mt-8 prose-headings:font-semibold prose-headings:tracking-wide prose-headings:text-black prose-h1:text-5xl prose-h2:text-4xl prose-h3:text-3xl prose-h4:text-2xl prose-h5:text-xl prose-h6:text-lg prose-a:text-black prose-a:underline hover:prose-a:text-neutral-300 prose-strong:text-black prose-ol:mt-8 prose-ol:list-decimal prose-ol:pl-6 prose-ul:mt-8 prose-ul:list-disc prose-ul:pl-6 dark:text-white dark:prose-headings:text-white dark:prose-a:text-white dark:prose-strong:text-white',
'prose mx-auto max-w-6xl text-base leading-7 text-neutral-50 prose-headings:mt-8 prose-headings:font-semibold prose-headings:tracking-wide prose-headings:text-black prose-h1:text-5xl prose-h2:text-4xl prose-h3:text-3xl prose-h4:text-2xl prose-h5:text-xl prose-h6:text-lg prose-a:text-black prose-a:underline hover:prose-a:text-neutral-300 prose-strong:text-black prose-ol:mt-8 prose-ol:list-decimal prose-ol:pl-6 prose-ul:mt-8 prose-ul:list-disc prose-ul:pl-6 dark:text-white dark:prose-headings:text-white dark:prose-a:text-white dark:prose-strong:text-white',
className
)}
dangerouslySetInnerHTML={{ __html: html as string }}
Expand Down

0 comments on commit cf89e3b

Please sign in to comment.