Fix Alert buttons and sizing
This commit is contained in:
parent
efcd2ea47c
commit
23c520f549
2 changed files with 5 additions and 24 deletions
|
|
@ -15,9 +15,9 @@
|
||||||
border-radius: $unit;
|
border-radius: $unit;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: $unit;
|
gap: $unit-2x;
|
||||||
min-width: $unit * 20;
|
min-width: 20vw;
|
||||||
max-width: $unit * 40;
|
max-width: 30vw;
|
||||||
padding: $unit * 4;
|
padding: $unit * 4;
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
|
|
@ -34,25 +34,4 @@
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
gap: $unit;
|
gap: $unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Button {
|
|
||||||
font-size: $font-regular;
|
|
||||||
padding: ($unit * 1.5) ($unit * 2);
|
|
||||||
margin-top: $unit * 2;
|
|
||||||
|
|
||||||
&.btn-disabled {
|
|
||||||
background: $grey-90;
|
|
||||||
color: $grey-70;
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:not(.btn-disabled) {
|
|
||||||
background: $grey-90;
|
|
||||||
color: $grey-50;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: $grey-80;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ const Alert = (props: Props) => {
|
||||||
<div className="buttons">
|
<div className="buttons">
|
||||||
<AlertDialog.Cancel asChild>
|
<AlertDialog.Cancel asChild>
|
||||||
<Button
|
<Button
|
||||||
|
contained={true}
|
||||||
onClick={props.cancelAction}
|
onClick={props.cancelAction}
|
||||||
text={props.cancelActionText}
|
text={props.cancelActionText}
|
||||||
/>
|
/>
|
||||||
|
|
@ -37,6 +38,7 @@ const Alert = (props: Props) => {
|
||||||
{props.primaryAction ? (
|
{props.primaryAction ? (
|
||||||
<AlertDialog.Action asChild>
|
<AlertDialog.Action asChild>
|
||||||
<Button
|
<Button
|
||||||
|
contained={true}
|
||||||
onClick={props.cancelAction}
|
onClick={props.cancelAction}
|
||||||
text={props.primaryActionText}
|
text={props.primaryActionText}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue