From 37bc86c56a956550dca775326d2ca72325969339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20St=C3=BCrmer?= Date: Mon, 19 Mar 2018 15:11:00 +0100 Subject: [PATCH] Make `` props more specific (#518) --- CHANGELOG.md | 2 ++ src/components/progress/index.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c48fc23830..3177f3ddb70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # [`master`](https://github.com/elastic/eui/tree/master) +- Make `` TypeScript types more specific ([#518](https://github.com/elastic/eui/pull/518)) + **Bug fixes** - Made `EuiIconTip` screen reader accessible ([#534](https://github.com/elastic/eui/pull/534)) diff --git a/src/components/progress/index.d.ts b/src/components/progress/index.d.ts index a80244de69c..53037e1b3f7 100644 --- a/src/components/progress/index.d.ts +++ b/src/components/progress/index.d.ts @@ -1,6 +1,6 @@ /// -import { SFC, HTMLAttributes } from 'react'; +import { SFC, ProgressHTMLAttributes } from 'react'; declare module '@elastic/eui' { /** @@ -18,7 +18,7 @@ declare module '@elastic/eui' { export type EuiProgressPosition = 'fixed' | 'absolute' | 'static'; export type EuiProgressProps = CommonProps & - HTMLAttributes & { + ProgressHTMLAttributes & { size?: EuiProgressSize; color?: EuiProgressColor; position?: EuiProgressPosition;