Skip to content

Commit 1b0bd6e

Browse files
Merge pull request #40 from a-ui/bugfix/centered-spinner
πŸ› Added a missing variant of a button with only a spinner
2 parents d3e05e3 + 40eedf1 commit 1b0bd6e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 7.10.3 - 2025-09-25
9+
10+
### Fixed
11+
12+
- Added a missing variant of a button with only a spinner
13+
814
## 7.10.2 - 2025-09-09
915

1016
### Fixed

β€Žpackages/antwerp-ui/react-components/src/lib/atoms/button/Button.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function Button({
3131
'a-button--outlined': emphasis === Emphasis.MEDIUM,
3232
'a-button--text': emphasis === Emphasis.LOW,
3333
'a-button--full': !!fullWidth,
34-
'has-icon': addOn?.type === 'icon' && !['left', 'right'].includes(addOn?.align || ''),
34+
'has-icon': ['icon', 'spinner'].includes(addOn?.type || '') && !['left', 'right'].includes(addOn?.align || ''),
3535
'has-icon-left': addOn?.type !== 'avatar' && addOn?.align === 'left',
3636
'has-icon-right':
3737
(addOn?.type !== 'avatar' && addOn?.align === 'right') || (addOn?.type === 'spinner' && addOn?.align !== 'left'),

0 commit comments

Comments
Β (0)