Skip to content

Commit 95f9b15

Browse files
committedAug 14, 2021
feat(bar): exclude aria props from canvas bar item renderer
1 parent 3c3e8fc commit 95f9b15

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎packages/bar/src/hooks.ts

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const useBar = <RawDatum extends BarDatum>({
2828
data,
2929
minValue = defaultProps.minValue,
3030
maxValue = defaultProps.maxValue,
31-
margin,
3231
width,
3332
height,
3433
padding = defaultProps.padding,

‎packages/bar/src/types.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,13 @@ export interface BarItemProps<RawDatum extends BarDatum>
167167

168168
export type RenderBarProps<RawDatum extends BarDatum> = Omit<
169169
BarItemProps<RawDatum>,
170-
'isInteractive' | 'style' | 'tooltip'
170+
| 'isInteractive'
171+
| 'style'
172+
| 'tooltip'
173+
| 'isFocusable'
174+
| 'ariaLabel'
175+
| 'ariaLabelledBy'
176+
| 'ariaDescribedBy'
171177
> & {
172178
borderColor: string
173179
labelColor: string

0 commit comments

Comments
 (0)
Please sign in to comment.