Added positive vaiant in button
This commit is contained in:
parent
cdf421f0f1
commit
b9b2f9f2c3
2 changed files with 9 additions and 1 deletions
|
@ -40,7 +40,7 @@ Button.defaultProps = {
|
||||||
Button.propTypes = {
|
Button.propTypes = {
|
||||||
id: PropTypes.string,
|
id: PropTypes.string,
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
variant: PropTypes.oneOf(['surface', 'primary', 'caution', 'danger']),
|
variant: PropTypes.oneOf(['surface', 'primary', 'positive', 'caution', 'danger']),
|
||||||
iconSrc: PropTypes.string,
|
iconSrc: PropTypes.string,
|
||||||
type: PropTypes.oneOf(['button', 'submit']),
|
type: PropTypes.oneOf(['button', 'submit']),
|
||||||
onClick: PropTypes.func,
|
onClick: PropTypes.func,
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
.btn-surface,
|
.btn-surface,
|
||||||
.btn-primary,
|
.btn-primary,
|
||||||
|
.btn-positive,
|
||||||
.btn-caution,
|
.btn-caution,
|
||||||
.btn-danger {
|
.btn-danger {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
@ -67,6 +68,13 @@
|
||||||
@include state.focus(var(--bs-primary-outline));
|
@include state.focus(var(--bs-primary-outline));
|
||||||
@include state.active(var(--bg-primary-active));
|
@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 {
|
.btn-caution {
|
||||||
box-shadow: var(--bs-caution-border);
|
box-shadow: var(--bs-caution-border);
|
||||||
@include color(var(--tc-caution-high), var(--ic-caution-normal));
|
@include color(var(--tc-caution-high), var(--ic-caution-normal));
|
||||||
|
|
Loading…
Reference in a new issue