Skip to content

Commit a052002

Browse files
committed
fix: styling for button with selector
1 parent b9960ad commit a052002

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/Shared/Components/ButtonWithSelector/ButtonWithSelector.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const ButtonWithSelector = ({
2929
const [isMenuOpen, setIsMenuOpen] = useState<boolean>(false)
3030

3131
return (
32-
<div className="flexbox">
32+
<div className="flexbox bcb-5 br-4">
3333
<button
3434
className={`cta flex h-28 ${showPopUp ? 'dc__no-right-radius' : ''} dc__no-border-imp fs-12 fw-6 lh-20-imp ${className}`}
3535
type="button"
@@ -39,9 +39,9 @@ const ButtonWithSelector = ({
3939
</button>
4040
{showPopUp && (
4141
<PopupMenu autoClose autoPosition onToggleCallback={setIsMenuOpen}>
42-
<PopupMenu.Button rootClassName="flex dc__transparent p-8 w-28 bcb-5 dc__right-radius-4 dc__no-left-radius dc__no-top-border dc__no-bottom-border dc__no-right-border button-with-selector">
42+
<PopupMenu.Button rootClassName="flex dc__transparent p-0 w-28 bcb-5 dc__right-radius-4 dc__no-left-radius dc__no-top-border dc__no-bottom-border dc__no-right-border button-with-selector">
4343
<ICDropdown
44-
className="icon-dim-12 fcn-0 dc__no-shrink rotate"
44+
className="icon-dim-16 fcn-0 dc__no-shrink rotate"
4545
style={{ ['--rotateBy' as any]: isMenuOpen ? '180deg' : '0deg' }}
4646
/>
4747
</PopupMenu.Button>
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
.button-with-selector {
2+
border-left: 1px solid rgba(255, 255, 255, 0.20);
3+
24
&:hover, &:active, &:focus {
3-
border: 1px solid var(--N200);
5+
border: none;
6+
border-left: 1px solid rgba(255, 255, 255, 0.20);
7+
background-color: var(--B600);
48
}
5-
}
9+
}

0 commit comments

Comments
 (0)