Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Side orders from modals & refactoring #903

Merged
merged 26 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
431 changes: 255 additions & 176 deletions src/components/Synthetics/ConfirmationBox/ConfirmationBox.tsx

Large diffs are not rendered by default.

126 changes: 0 additions & 126 deletions src/components/Synthetics/ConfirmationBox/SLTPEntries.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.SLTPEntries-wrapper {
.SidecarEntries-wrapper {
display: grid;
grid-row-gap: 0.35rem;

.SLTPEntry-row {
.SidecarEntry-row {
display: grid;
grid-template-columns: auto auto auto;
grid-column-gap: 1rem;
Expand All @@ -11,14 +11,16 @@
margin-bottom: 1rem;
}

.SLTP-price {
.Sidecar-size,
.Sidecar-price {
border: 1px solid #212540;
border-radius: var(--border-radius-sm);
padding-left: 0.5rem;
line-height: 1;
background: #212540;
position: relative;

.size-input,
.price-input {
padding: 0.2rem 0.5rem 0.2rem;
font-size: 1.4rem;
Expand All @@ -43,7 +45,8 @@
cursor: pointer;
opacity: 0.7;
}
.SLTP-price-error {
.Sidecar-price-error,
.Sidecar-size-error {
display: none;
&.Tooltip-popup {
min-width: 0;
Expand All @@ -52,12 +55,35 @@
}

&:hover {
.SLTP-price-error {
.Sidecar-price-error,
.Sidecar-size-error {
display: block;
}
}

.Sidecar-size-info {
display: none;
&.Tooltip-popup {
min-width: 25rem;
}
}

&:focus-within {
.Sidecar-size-info {
display: none;
}
}

&:hover {
.Sidecar-size-info {
display: block;
}
}
}
.SLTP-percentage {
.Sidecar-size .size-input {
max-width: 8rem;
}
.Sidecar-percentage {
position: relative;

&.input-error {
Expand All @@ -72,34 +98,21 @@
}
}

.SLTP-percent-info {
.Sidecar-size-info {
display: none;
&.Tooltip-popup {
min-width: 25rem;
}
}

&:focus-within {
.SLTP-percent-info {
.Sidecar-size-info {
display: none;
}
}

&:hover {
.SLTP-percent-info {
display: block;
}
}
.SLTP-percent-error {
display: none;
&.Tooltip-popup {
min-width: 0;
width: max-content;
}
}

&:hover {
.SLTP-percent-error {
.Sidecar-size-info {
display: block;
}
}
Expand All @@ -113,7 +126,7 @@
padding-right: 0.5rem;
}

.SLTP-actions {
.Sidecar-actions {
display: flex;
align-items: center;
height: 100%;
Expand Down Expand Up @@ -150,7 +163,7 @@
}
}

.SLTP-helper-text .Tooltip-popup {
.Sidecar-helper-text .Tooltip-popup {
min-width: min-content;
text-wrap: nowrap;

Expand Down