Skip to content

Commit

Permalink
Started dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Nov 9, 2023
1 parent e48e002 commit 4282ceb
Show file tree
Hide file tree
Showing 5 changed files with 365 additions and 18 deletions.
271 changes: 271 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
},
"dependencies": {
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-toggle-group": "^1.0.4",
"@radix-ui/react-tooltip": "1.0.6",
Expand Down
35 changes: 35 additions & 0 deletions src/components/DropdownButton/DropdownButton.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,39 @@
background: var(--sideBar_background);
border: none;
cursor: pointer;
}

.dropdown_content {
width: 300px;
background-color: white;
border-radius: 6px;
padding: 5px;
box-shadow: 0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2);
animation-duration: 400ms;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
will-change: transform, opacity;
}

.dropdown_item {
font-size: 16px;
line-height: 1;
color: var(--violet-11);
border-radius: 3px;
display: flex;
align-items: center;
height: 25px;
padding: 0 5px;
position: relative;
padding-left: 25px;
user-select: none;
outline: none;
}

.dropdown_item[data-highlighted] {
background-color: var(--violet-9);
color: var(--violet-1);
}

.dropdown_arrow {
fill: white;
}
Loading

0 comments on commit 4282ceb

Please sign in to comment.