Skip to content

Commit

Permalink
fix(Dropdown): added class identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
N00nDay committed Oct 4, 2023
1 parent b825a07 commit c2d6c8e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/dropdown/Divider.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { twMerge } from 'tailwind-merge';
const forwardEvents = forwardEventsBuilder(get_current_component());
const defaultClass = 'relative my-2 h-px';
const defaultClass = 'relative my-2 h-px stwui-dropdown-divider';
$: finalClass = twMerge(defaultClass, $$props.class);
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/dropdown/Dropdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
setContext('dropdown-handleClose', handleClose);
const defaultClass = 'relative inline-block';
const defaultClass = 'relative inline-block stwui-dropdown';
$: finalClass = twMerge(defaultClass, $$props.class);
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/dropdown/Item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
const defaultClass =
'w-full group relative flex items-center px-3 py-2 text-sm font-medium rounded-md overflow-hidden text-secondary-content !outline-none !border-none !ring-0';
'w-full group relative flex items-center px-3 py-2 text-sm font-medium rounded-md overflow-hidden text-secondary-content !outline-none !border-none !ring-0 stwui-dropdown-item';
$: finalClass = twMerge(defaultClass, $$props.class);
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/dropdown/Items.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
const defaultClass =
'floating-ui-el origin-top-right absolute z-10 border border-border w-56 p-1 rounded-md shadow-xl py-1 bg-surface';
'floating-ui-el origin-top-right absolute z-10 border border-border w-56 p-1 rounded-md shadow-xl py-1 bg-surface stwui-dropdown-items';
$: finalClass = twMerge(defaultClass, $$props.class);
Expand Down

0 comments on commit c2d6c8e

Please sign in to comment.