Skip to content

Commit

Permalink
Merge pull request #1202 from securityscorecard/ajkl2533@UXD-1668
Browse files Browse the repository at this point in the history
fix(HexGrade): allow passing additional props UXD-1668
  • Loading branch information
ajkl2533 authored Nov 26, 2024
2 parents 0ed4061 + 2d32f72 commit 09ac527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/HexGrade/HexGrade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defaultTo, path, pipe } from 'ramda';
import { isNotUndefined } from 'ramda-adjunct';
import styled, { useTheme } from 'styled-components';
import cls from 'classnames';
import { ComponentPropsWithoutRef } from 'react';

import { createMarginSpacing, getColor } from '../../utils';
import { HexGradeGrades, HexGradeVariants } from './HexGrade.enums';
Expand Down Expand Up @@ -59,7 +60,7 @@ const HexGrade = ({
margin,
className,
...props
}: HexGradeProps) => {
}: HexGradeProps & ComponentPropsWithoutRef<'svg'>) => {
const theme = useTheme();
const isCSVariant = variant === HexGradeVariants.cs;
const gradeColorType = pipe(
Expand Down

0 comments on commit 09ac527

Please sign in to comment.