Button.propTypes = {
id: PropTypes.string,
className: PropTypes.string,
- variant: PropTypes.oneOf(['surface', 'primary', 'caution', 'danger']),
+ variant: PropTypes.oneOf(['surface', 'primary', 'positive', 'caution', 'danger']),
iconSrc: PropTypes.string,
type: PropTypes.oneOf(['button', 'submit']),
onClick: PropTypes.func,
.btn-surface,
.btn-primary,
+.btn-positive,
.btn-caution,
.btn-danger {
display: inline-flex;
@include state.focus(var(--bs-primary-outline));
@include state.active(var(--bg-primary-active));
}
+.btn-positive {
+ box-shadow: var(--bs-positive-border);
+ @include color(var(--tc-positive-high), var(--ic-positive-normal));
+ @include state.hover(var(--bg-positive-hover));
+ @include state.focus(var(--bs-positive-outline));
+ @include state.active(var(--bg-positive-active));
+}
.btn-caution {
box-shadow: var(--bs-caution-border);
@include color(var(--tc-caution-high), var(--ic-caution-normal));