Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

EVG-20201: Use new LeafyGreen props in LoadingButton component #2077

Merged
merged 7 commits into from
Oct 4, 2023

Conversation

minnakt
Copy link
Contributor

@minnakt minnakt commented Oct 3, 2023

EVG-20201

Description

Updates the LoadingButton component to use the native props on the LG button.

@cypress
Copy link

cypress bot commented Oct 3, 2023

Passing run #13086 ↗︎

0 595 7 0 Flakiness 0

Details:

Merge branch 'main' into EVG-20201
Project: Spruce Commit: 6e0d7cc249
Status: Passed Duration: 18:28 💡
Started: Oct 4, 2023 3:20 PM Ended: Oct 4, 2023 3:38 PM

Review all test suite changes for PR #2077 ↗︎

@minnakt minnakt marked this pull request as ready for review October 3, 2023 14:00
@minnakt minnakt requested a review from a team October 3, 2023 14:00
@@ -13,7 +13,8 @@ export const LoadingButton: ExtendableBox<
> = forwardRef(({ leftGlyph, loading = false, ...rest }: Props, ref) => (
<LeafyGreenButton
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we include LoadingButton in storybook?

@@ -13,7 +13,8 @@ export const LoadingButton: ExtendableBox<
> = forwardRef(({ leftGlyph, loading = false, ...rest }: Props, ref) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type definition above could be tightened up a little bit, I think; it currently includes loading and isLoading. We should probably choose one or the other for clarity.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops thanks sophie! I kind of like loading more so I kept that one

@minnakt minnakt requested a review from sophstad October 4, 2023 13:01
@minnakt minnakt changed the title EVG-20201: Update LoadingButton component EVG-20201: Use isLoading and loadingIndicator props in LoadingButton component Oct 4, 2023
@minnakt minnakt changed the title EVG-20201: Use isLoading and loadingIndicator props in LoadingButton component EVG-20201: Use new LeafyGreen props in LoadingButton component Oct 4, 2023
@minnakt minnakt merged commit 4e0b778 into evergreen-ci:main Oct 4, 2023
2 checks passed
@minnakt minnakt deleted the EVG-20201 branch October 4, 2023 17:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants