feat: tests & autosave improvements

This commit is contained in:
James
2021-12-30 16:37:49 -05:00
parent e910d8938f
commit 7220ff7a8a
24 changed files with 169 additions and 101 deletions

View File

@@ -11,6 +11,7 @@
border-radius: $style-radius-s;
padding: 0 base(.25);
padding-left: base(.0875 + .25);
cursor: default;
&:active,
&:focus {
@@ -37,12 +38,14 @@
}
&--style-light {
&:hover {
background: lighten($color-light-gray, 3%);
}
&.pill--has-action {
&:hover {
background: lighten($color-light-gray, 3%);
}
&:active {
background: lighten($color-light-gray, 5%);
&:active {
background: lighten($color-light-gray, 5%);
}
}
}
@@ -51,6 +54,14 @@
color: $color-dark-gray;
}
&--style-warning {
background: $color-yellow;
}
&--style-success {
background: $color-green;
}
&--style-dark {
background: $color-dark-gray;
color: white;
@@ -59,12 +70,14 @@
@include color-svg(white);
}
&:hover {
background: lighten($color-dark-gray, 3%);
}
&.pill--has-action {
&:hover {
background: lighten($color-dark-gray, 3%);
}
&:active {
background: lighten($color-dark-gray, 5%);
&:active {
background: lighten($color-dark-gray, 5%);
}
}
}
}

View File

@@ -4,7 +4,7 @@ export type Props = {
icon?: React.ReactNode,
alignIcon?: 'left' | 'right',
onClick?: () => void,
pillStyle?: 'light' | 'dark' | 'light-gray',
pillStyle?: 'light' | 'dark' | 'light-gray' | 'warning' | 'success',
}
export type RenderedTypeProps = {