Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/remove extra shadow menu #40

Merged
merged 3 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@internxt/ui",
"version": "0.0.11",
"version": "0.0.12",
"description": "Library of Internxt components",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ exports[`Breadcrumbs Component > should match snapshot 1`] = `
rounded-md border border-gray-10 bg-surface dark:bg-gray-5 shadow-subtle-hard z-10"
>
<div
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 shadow-subtle-hard outline-none dark:bg-gray-5"
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 outline-none dark:bg-gray-5"
>
<div>
<div
Expand Down Expand Up @@ -237,7 +237,7 @@ exports[`Breadcrumbs Component > should match snapshot 1`] = `
rounded-md border border-gray-10 bg-surface dark:bg-gray-5 shadow-subtle-hard z-10"
>
<div
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 shadow-subtle-hard outline-none dark:bg-gray-5"
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 outline-none dark:bg-gray-5"
>
<div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`ContextMenu Component > should match snapshot 1`] = `
style="position: absolute; left: 100px; top: 100px; z-index: 99;"
>
<div
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 shadow-subtle-hard outline-none dark:bg-gray-5"
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 outline-none dark:bg-gray-5"
>
<div>
<div
Expand Down Expand Up @@ -97,7 +97,7 @@ exports[`ContextMenu Component > should match snapshot 1`] = `
style="position: absolute; left: 100px; top: 100px; z-index: 99;"
>
<div
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 shadow-subtle-hard outline-none dark:bg-gray-5"
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 outline-none dark:bg-gray-5"
>
<div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`Dropdown component > should match snapshot 1`] = `
class="absolute menu"
>
<div
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 shadow-subtle-hard outline-none dark:bg-gray-5"
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 outline-none dark:bg-gray-5"
>
<div>
<div
Expand Down
4 changes: 1 addition & 3 deletions src/components/menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ const Menu = <T,>({
);

return (
<div
className={`z-20 mt-0 flex flex-col rounded-lg bg-surface ${paddingY} shadow-subtle-hard outline-none dark:bg-gray-5`}
>
<div className={`z-20 mt-0 flex flex-col rounded-lg bg-surface ${paddingY} outline-none dark:bg-gray-5`}>
{menu?.map((option, i) => (
<div key={i}>
{option && option.separator ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Menu Component > should match snapshot 1`] = `
<div>
<div
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 shadow-subtle-hard outline-none dark:bg-gray-5"
class="z-20 mt-0 flex flex-col rounded-lg bg-surface py-1.5 outline-none dark:bg-gray-5"
>
<div>
<div
Expand Down
1 change: 0 additions & 1 deletion src/stories/components/dropdown/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const defaultArgs: DropdownProps<unknown> = {
{
name: 'Action 1',
action: () => {
console.log('llamada');
alert('Launched action 1');
},
},
Expand Down
Loading