Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some issues with loading states on buttons and icon buttons #972

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

selbekk
Copy link
Contributor

@selbekk selbekk commented Dec 8, 2023

Background

The loading state on buttons was a bit borked. It grew in height when you used icons, and the wrong spinner was used.

Solution

There were a few things wrong.

  • All props were forwarded to the underlying button component, instead of removing the correct ones
  • The icon button loading spinner was misaligned.

Fixes #945

Copy link

changeset-bot bot commented Dec 8, 2023

🦋 Changeset detected

Latest commit: cb40dbe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@vygruppen/spor-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@selbekk selbekk merged commit 6043ebf into main Dec 8, 2023
2 checks passed
@selbekk selbekk deleted the fix-loading-states-for-buttons branch December 8, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugs i knapper med ikon: endrer størrelse i loading-state
1 participant