Skip to content

Commit

Permalink
enhance: use <DropdownItem divider> consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Dec 4, 2024
1 parent 1d0317b commit 5a54861
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const DataFilesAddButton = ({ readOnly }) => {
<i className="icon-folder" /> Shared Workspace
</DropdownItem>
)}
<DropdownItem divider />
<DropdownItem
className={`complex-dropdown-item ${styles[writeItemStyle]}`}
onClick={toggleUploadModal}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
}

.complex-dropdown-item {
border-top: 1px solid #707070;
display: flex;
}

Expand Down
5 changes: 5 additions & 0 deletions client/src/styles/components/dropdown-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ Styleguide Components.Dropdown
.dropdown-item:hover {
background-color: var(--global-color-accent--weak);
}

.dropdown-divider {
margin-block: 0.25em;
border-color: var(--global-color-primary--dark);
}
}

0 comments on commit 5a54861

Please sign in to comment.