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'),