From 710acbc68a53706aa7e7691bbbc0e4c055395eef Mon Sep 17 00:00:00 2001 From: Thomas Roberts Date: Tue, 18 May 2021 16:21:23 +0100 Subject: [PATCH] Ensure Label accepts correct HTML Attributes Props --- packages/checkout/label/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/checkout/label/index.tsx b/packages/checkout/label/index.tsx index 582a96a5d5f..2c31cf7f680 100644 --- a/packages/checkout/label/index.tsx +++ b/packages/checkout/label/index.tsx @@ -3,13 +3,13 @@ */ import { Fragment } from '@wordpress/element'; import classNames from 'classnames'; -import type { ReactElement, HTMLAttributes } from 'react'; +import type { ReactElement, HTMLProps } from 'react'; -interface LabelProps { +interface LabelProps extends HTMLProps< HTMLLabelElement > { label?: string; screenReaderLabel?: string; wrapperElement?: string; - wrapperProps?: HTMLAttributes< HTMLElement >; + wrapperProps?: HTMLProps< HTMLElement >; } /**