From 40eedf1ca195386c5e0242de489dc27d4bc5ec58 Mon Sep 17 00:00:00 2001 From: Jasper Van Proeyen Date: Thu, 25 Sep 2025 11:21:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Added=20a=20missing=20variant=20?= =?UTF-8?q?of=20a=20button=20with=20only=20a=20spinner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ .../react-components/src/lib/atoms/button/Button.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f444437..b45805bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 7.10.3 - 2025-09-25 + +### Fixed + +- Added a missing variant of a button with only a spinner + ## 7.10.2 - 2025-09-09 ### Fixed diff --git a/packages/antwerp-ui/react-components/src/lib/atoms/button/Button.tsx b/packages/antwerp-ui/react-components/src/lib/atoms/button/Button.tsx index ffe79012..093a1ba2 100644 --- a/packages/antwerp-ui/react-components/src/lib/atoms/button/Button.tsx +++ b/packages/antwerp-ui/react-components/src/lib/atoms/button/Button.tsx @@ -31,7 +31,7 @@ export function Button({ 'a-button--outlined': emphasis === Emphasis.MEDIUM, 'a-button--text': emphasis === Emphasis.LOW, 'a-button--full': !!fullWidth, - 'has-icon': addOn?.type === 'icon' && !['left', 'right'].includes(addOn?.align || ''), + 'has-icon': ['icon', 'spinner'].includes(addOn?.type || '') && !['left', 'right'].includes(addOn?.align || ''), 'has-icon-left': addOn?.type !== 'avatar' && addOn?.align === 'left', 'has-icon-right': (addOn?.type !== 'avatar' && addOn?.align === 'right') || (addOn?.type === 'spinner' && addOn?.align !== 'left'),