Mp 2547 unlocking modal (#256)

* add modal

* add tests and update naming

* fix pr comments
This commit is contained in:
Bob van der Helm
2023-06-19 20:46:32 +02:00
committed by GitHub
parent 5aabf6f725
commit 0037c3dedf
17 changed files with 236 additions and 14 deletions
+3
View File
@@ -34,6 +34,7 @@ interface Props {
hasSubmenu?: boolean
hasFocus?: boolean
dataTestId?: string
tabIndex?: number
}
const Button = React.forwardRef(function Button(
@@ -54,6 +55,7 @@ const Button = React.forwardRef(function Button(
hasSubmenu,
hasFocus,
dataTestId,
tabIndex = 0,
}: Props,
ref,
) {
@@ -106,6 +108,7 @@ const Button = React.forwardRef(function Button(
id={id}
ref={ref as LegacyRef<HTMLButtonElement>}
onClick={isDisabled ? () => {} : onClick}
tabIndex={tabIndex}
>
{showProgressIndicator ? (
<CircularProgress size={size === 'small' ? 10 : size === 'medium' ? 12 : 18} />