Skip to content

Commit

Permalink
Change selector to style only direct separator child
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Nov 1, 2024
1 parent 6176306 commit 96f810e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ export const PRODUCTS_MENU_LIST: MenuItem['items'] = Object.fromEntries(
<>
{/* This is a one-off class, because I want to style the parent. */}
{/* eslint-disable-next-line tailwindcss/no-custom-classname */}
<style className="label-separator">
<style className="hive-label-separator">
{
'li:has(.label-separator) { margin: 0.75rem 0 0.25rem 0 !important; padding: 0 !important; }'
'li:has(>.hive-label-separator) { margin: 0.75rem 0 0.25rem 0 !important; padding: 0 !important; }'
}
</style>
<span className="ml-2 font-medium text-gray-500 dark:text-neutral-400">{item}</span>
Expand Down

0 comments on commit 96f810e

Please sign in to comment.