Added positive variant in ContextMenu
This commit is contained in:
parent
b9b2f9f2c3
commit
42f68f61c6
2 changed files with 4 additions and 1 deletions
|
@ -93,7 +93,7 @@ MenuItem.defaultProps = {
|
||||||
};
|
};
|
||||||
|
|
||||||
MenuItem.propTypes = {
|
MenuItem.propTypes = {
|
||||||
variant: PropTypes.oneOf(['surface', 'caution', 'danger']),
|
variant: PropTypes.oneOf(['surface', 'positive', 'caution', 'danger']),
|
||||||
iconSrc: PropTypes.string,
|
iconSrc: PropTypes.string,
|
||||||
type: PropTypes.oneOf(['button', 'submit']),
|
type: PropTypes.oneOf(['button', 'submit']),
|
||||||
onClick: PropTypes.func.isRequired,
|
onClick: PropTypes.func.isRequired,
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
color: var(--tc-surface-low);
|
color: var(--tc-surface-low);
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(:first-child) {
|
&:not(:first-child) {
|
||||||
|
|
Loading…
Reference in a new issue