All files / src/components/PieChart/Arc Arc.styles.ts

60% Statements 3/5
0% Branches 0/12
0% Functions 0/1
50% Lines 2/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12  2x 2x                  
import { IArcProps, IArcStyles } from './Arc.types';
import { DefaultPalette, ITheme } from '@fluentui/react/lib/Styling';
export const getStyles = (props: IArcProps, theme: ITheme | undefined): IArcStyles => {
  const { color } = props;
  return {
    arcRoot: { fill: color },
    arcRootFocussed: { fill: color, stroke: theme?.palette.black || DefaultPalette.black, strokeWidth: 2 },
    arc: { outline: 'none' },
    arcText: { fill: theme?.palette.black || DefaultPalette.black, outline: 'none' },
  };
};