Skip to content

Commit

Permalink
feat(bar): exclude aria props from canvas bar item renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Aug 14, 2021
1 parent 3c3e8fc commit 95f9b15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/bar/src/hooks.ts
Expand Up @@ -28,7 +28,6 @@ export const useBar = <RawDatum extends BarDatum>({
data,
minValue = defaultProps.minValue,
maxValue = defaultProps.maxValue,
margin,
width,
height,
padding = defaultProps.padding,
Expand Down
8 changes: 7 additions & 1 deletion packages/bar/src/types.ts
Expand Up @@ -167,7 +167,13 @@ export interface BarItemProps<RawDatum extends BarDatum>

export type RenderBarProps<RawDatum extends BarDatum> = Omit<
BarItemProps<RawDatum>,
'isInteractive' | 'style' | 'tooltip'
| 'isInteractive'
| 'style'
| 'tooltip'
| 'isFocusable'
| 'ariaLabel'
| 'ariaLabelledBy'
| 'ariaDescribedBy'
> & {
borderColor: string
labelColor: string
Expand Down

0 comments on commit 95f9b15

Please sign in to comment.