mirror of
https://github.com/SomboChea/ui
synced 2026-01-18 00:56:00 +07:00
fix(styles): Updated dark colors (#455)
* ref(styles): updated dark colors * updated snaps
This commit is contained in:
committed by
GitHub
parent
1e1c088ac3
commit
d29aa05cc6
@@ -1,4 +1,5 @@
|
||||
import React, { forwardRef } from 'react';
|
||||
import styled from '@emotion/styled';
|
||||
import { default as MaterialUIMenuItem, MenuItemProps } from '@material-ui/core/MenuItem';
|
||||
|
||||
type HTMLElementTagName = keyof HTMLElementTagNameMap;
|
||||
@@ -11,7 +12,7 @@ interface Props extends Omit<MenuItemProps, 'component'> {
|
||||
const MenuItem = forwardRef<MenuItemRef, Props>(function MenuItem({ button, ...props }, ref) {
|
||||
// it seems typescript has some discrimination type limitions. Please see: https://github.com/mui-org/material-ui/issues/14971
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return <MaterialUIMenuItem {...props} button={button as any} innerRef={ref} />;
|
||||
return <StyledMaterialUIMenuItem {...props} button={button as any} innerRef={ref} />;
|
||||
});
|
||||
|
||||
MenuItem.defaultProps = {
|
||||
@@ -19,3 +20,7 @@ MenuItem.defaultProps = {
|
||||
};
|
||||
|
||||
export default MenuItem;
|
||||
|
||||
const StyledMaterialUIMenuItem = styled(MaterialUIMenuItem)({
|
||||
outline: 'none',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user