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;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: $unit;
|
||||
min-width: $unit * 20;
|
||||
max-width: $unit * 40;
|
||||
gap: $unit-2x;
|
||||
min-width: 20vw;
|
||||
max-width: 30vw;
|
||||
padding: $unit * 4;
|
||||
|
||||
.description {
|
||||
|
|
@ -34,25 +34,4 @@
|
|||
align-self: flex-end;
|
||||
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">
|
||||
<AlertDialog.Cancel asChild>
|
||||
<Button
|
||||
contained={true}
|
||||
onClick={props.cancelAction}
|
||||
text={props.cancelActionText}
|
||||
/>
|
||||
|
|
@ -37,6 +38,7 @@ const Alert = (props: Props) => {
|
|||
{props.primaryAction ? (
|
||||
<AlertDialog.Action asChild>
|
||||
<Button
|
||||
contained={true}
|
||||
onClick={props.cancelAction}
|
||||
text={props.primaryActionText}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue