Skip to content

Commit

Permalink
btn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rubycop committed Jan 14, 2025
1 parent 0ea95e9 commit 7abf1a8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const SidebarMenu = ({ currentTab }) => {
src={`${REPL_BASE_DEPLOYMENT_ACCOUNT}/widget/components.InsufficientBannerModal`}
props={{
ActionButton: () => (
<button className="btn btn-primary primary d-flex align-items-center gap-2 mb-0">
<button className="btn primary-button d-flex align-items-center gap-2 mb-0">
<i class="bi bi-plus-lg h5 mb-0"></i>Create Request
</button>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ return (
src={`${REPL_BASE_DEPLOYMENT_ACCOUNT}/widget/components.InsufficientBannerModal`}
props={{
ActionButton: () => (
<button className="btn btn-primary primary d-flex align-items-center gap-2">
<button className="btn primary-button d-flex align-items-center gap-2">
<i class="bi bi-plus-lg h5 mb-0"></i>New Member
</button>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,9 @@ const CreateBtn = () => {
border: 1px solid var(--border-color);
background-color: var(--bg-page-color) !important;
color: var(--text-color) !important;
padding: 0.5rem;
z-index: 99;
font-size: 13px;
border-radius:0.375rem !important;
opacity: 0;
font-size: 14px;
transform: translateY(-10px);
transition: opacity 0.2s ease, transform 0.2s ease;
Expand Down Expand Up @@ -191,20 +189,22 @@ const CreateBtn = () => {
tabIndex="0"
onBlur={() => setCreateBtnOpen(false)}
>
<button className={"btn btn-primary primary d-flex align-items-center"}>
<button className={"btn primary-button d-flex align-items-center"}>
<div className="d-flex gap-2 align-items-center ">
<i class="bi bi-plus-lg h5 mb-0"></i>Create Request
</div>
</button>

<div
className={`options-card ${isCreateBtnOpen ? "visible" : "hidden"}`}
className={`rounded-3 mt-1 options-card ${
isCreateBtnOpen ? "visible" : "hidden"
}`}
>
{btnOptions.map((option) => (
<div key={option.value} className="option" onClick={option.onClick}>
<div className="d-flex gap-2 align-items-center">
{option.icon}
<div className="fw-bold">{option.label}</div>
<div>{option.label}</div>
</div>
</div>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ async function openWithdrawForm({
lockupContract,
}) {
await expect(page.getByText("Create Request", { exact: true })).toBeVisible();
await page.locator(".h-100 > .p-2").click();

await page.locator(".primary-button").click();
await page.locator(".options-card > div:nth-child(3)").click();
await expect(
page.getByRole("heading", { name: "Create Withdraw Request" })
Expand All @@ -256,7 +255,7 @@ async function openWithdrawForm({

async function openUnstakeForm({ page, isLockup, daoAccount, lockupContract }) {
await expect(page.getByText("Create Request", { exact: true })).toBeVisible();
await page.locator(".h-100 > .p-2").click();
await page.locator(".primary-button").click();
await page.getByText("Unstake", { exact: true }).click();
await expect(
page.getByRole("heading", { name: "Create Unstake Request" })
Expand Down

0 comments on commit 7abf1a8

Please sign in to comment.