fix(striker-ui): remove background from Monospace

main
Tsu-ba-me 3 years ago
parent bcfda2e37d
commit d454acf113
  1. 7
      striker-ui/components/Text/Monospace.tsx
  2. 1
      striker-ui/lib/consts/DEFAULT_THEME.ts

@ -1,10 +1,5 @@
import { FC } from 'react'; import { FC } from 'react';
import {
BORDER_RADIUS,
MONOSPACE_BACKGROUND,
} from '../../lib/consts/DEFAULT_THEME';
import BodyText, { BodyTextProps } from './BodyText'; import BodyText, { BodyTextProps } from './BodyText';
const Monospace: FC<BodyTextProps> = ({ sx, ...bodyTextRestProps }) => ( const Monospace: FC<BodyTextProps> = ({ sx, ...bodyTextRestProps }) => (
@ -13,8 +8,6 @@ const Monospace: FC<BodyTextProps> = ({ sx, ...bodyTextRestProps }) => (
...bodyTextRestProps, ...bodyTextRestProps,
monospaced: true, monospaced: true,
sx: { sx: {
backgroundColor: MONOSPACE_BACKGROUND,
borderRadius: BORDER_RADIUS,
display: 'inline', display: 'inline',
padding: '.1rem .3rem', padding: '.1rem .3rem',

@ -13,7 +13,6 @@ export const DIVIDER = '#888';
export const SELECTED_ANVIL = '#00ff00'; export const SELECTED_ANVIL = '#00ff00';
export const DISABLED = '#AAA'; export const DISABLED = '#AAA';
export const BLACK = '#343434'; export const BLACK = '#343434';
export const MONOSPACE_BACKGROUND = '#222';
export const BORDER_RADIUS = '3px'; export const BORDER_RADIUS = '3px';
export const LARGE_MOBILE_BREAKPOINT = 1800; export const LARGE_MOBILE_BREAKPOINT = 1800;

Loading…
Cancel
Save