Skip to content

Conversation

gitdallas
Copy link
Contributor

What: Closes #8349

@patternfly-build
Copy link
Contributor

patternfly-build commented Jan 27, 2023

Copy link
Contributor

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

Nice @gitdallas ! Default svg spinners are looking great. Left a couple of comments.

@gitdallas gitdallas linked an issue Jan 30, 2023 that may be closed by this pull request
@gitdallas gitdallas requested a review from nicolethoen January 30, 2023 20:44
@gitdallas gitdallas requested a review from jenny-s51 February 7, 2023 19:21
@tlabaj tlabaj requested a review from mcoker February 8, 2023 15:58
Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

One little thing, not a blocker. Otherwise LGTM!

) : (
<Spinner diameter="1em" isSVG aria-label={defaultProgressArialabel} />
);
const _progressIcon = progressIcon ?? <Spinner diameter="1em" aria-label={defaultProgressArialabel} />;
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a prop for this now! 🥳 It's beta, but the icon component is beta, too. IMO we could promote isInline any time, it's really simple, so it should be promoted before or with <Icon>

Suggested change
const _progressIcon = progressIcon ?? <Spinner diameter="1em" aria-label={defaultProgressArialabel} />;
const _progressIcon = progressIcon ?? <Spinner isInline aria-label={defaultProgressArialabel} />;

If we make this update, can you also update this comment? We could replace "1em" with "inline", or just remove that and say "Defaults to a spinner."

/** Icon when isInProgress is set to true. Defaults to a 1em spinner. */

And if it's not scope creep, could we poke around and see if this is used anywhere else? I looked in the react-core dir and only found this one. I can open a separate issue if you'd prefer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mcoker - looks like this was merged soon after your comments... lmk if you open a new issue

Copy link
Contributor

Choose a reason for hiding this comment

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

@nicolethoen @tlabaj do you see any reason to hold off on using this beta prop (<Spinner isInline />)? Or maybe just go ahead and promote the prop?

@tlabaj tlabaj merged commit d811140 into patternfly:v5 Feb 8, 2023
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.

Spinner - remove legacy variant

7 participants