Added positive variant in ContextMenu

This commit is contained in:
unknown 2021-09-09 17:33:32 +05:30
parent b9b2f9f2c3
commit 42f68f61c6
2 changed files with 4 additions and 1 deletions

View file

@ -93,7 +93,7 @@ MenuItem.defaultProps = {
};
MenuItem.propTypes = {
variant: PropTypes.oneOf(['surface', 'caution', 'danger']),
variant: PropTypes.oneOf(['surface', 'positive', 'caution', 'danger']),
iconSrc: PropTypes.string,
type: PropTypes.oneOf(['button', 'submit']),
onClick: PropTypes.func.isRequired,

View file

@ -30,6 +30,9 @@
.text {
color: var(--tc-surface-low);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&:not(:first-child) {