From 3b72308226d17924c433b9210c0a78a747ff2bc4 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 30 Jan 2024 15:06:21 +0300 Subject: [PATCH] Add missing types for contrast button --- api-generator/components/button.js | 2 +- components/lib/button/Button.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-generator/components/button.js b/api-generator/components/button.js index 5e83c6cf4..486dbfcce 100644 --- a/api-generator/components/button.js +++ b/api-generator/components/button.js @@ -57,7 +57,7 @@ const ButtonProps = [ name: 'severity', type: 'string', default: 'null', - description: 'Defines the style of the button, valid values are "secondary", "success", "info", "warning", "help", "danger".' + description: 'Defines the style of the button, valid values are "secondary", "success", "info", "warning", "help", "danger", "contrast".' }, { name: 'raised', diff --git a/components/lib/button/Button.d.ts b/components/lib/button/Button.d.ts index 768e3ff28..e323b3706 100755 --- a/components/lib/button/Button.d.ts +++ b/components/lib/button/Button.d.ts @@ -137,7 +137,7 @@ export interface ButtonProps extends ButtonHTMLAttributes { /** * Defines the style of the button. */ - severity?: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | string | undefined; + severity?: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'contrast' | string | undefined; /** * Add a shadow to indicate elevation. * @defaultValue false