Skip to content

Commit

Permalink
fix: add dropdown button type
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn320 committed Aug 17, 2023
1 parent 1127772 commit cf77d83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/CustomDropdown/CustomDropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
padding-right: 14px;
outline: none;
color: #6f6f6f;
background-color: rgba(255, 255, 255, 1);
}

.dropdown-open {
Expand All @@ -34,7 +33,6 @@
padding-left: 14px;
cursor: pointer;
outline: none;
background-color: rgba(255, 255, 255, 1);
}

.dropdown-option:hover {
Expand Down
2 changes: 2 additions & 0 deletions src/components/CustomDropdown/CustomDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export const CustomDropdown = (props) => {
props.hasError ? "ds-border-[#D3080C]" : "ds-border-[#6f6f66]"
} dropdown-select ds-border-2`}
onClick={() => setIsOpen(!isOpen)}
style={{ backgroundColor: "#FFFFFF" }}
type="button"
>
{isOpen ? (
<div className={`ds-flex ${props.hasSearch ? "" : "ds-hidden"}`}>
Expand Down

0 comments on commit cf77d83

Please sign in to comment.