Skip to content

Conversation

gitdallas
Copy link
Contributor

@gitdallas gitdallas commented Oct 4, 2025

Closes #11983

image

@patternfly-build
Copy link
Contributor

patternfly-build commented Oct 4, 2025

@gitdallas gitdallas force-pushed the feat/11983-Progress-disableStatusIcon-flag branch from e86cf84 to 6c5dcc6 Compare October 4, 2025 16:07
)}
{StatusIcon && (
<span className={css(progressStyle.progressStatusIcon)}>
<span className={css(progressStyle.progressStatusIcon)} data-testid="progress-status-icon">
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want to hard code this test id into the component? I'm not sure what a better way to do it would be, but I don't love this, and the fact that there isn't a better way is probably signaling a lack of a11y on this. Would love @thatblindgeye's thoughts on this.

@gitdallas gitdallas requested review from a team and rebeccaalpert and removed request for a team October 8, 2025 21:38
Signed-off-by: gitdallas <[email protected]>
Copy link
Member

@rebeccaalpert rebeccaalpert left a comment

Choose a reason for hiding this comment

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

Do we want to add a demo? Probably want to add a prop comment. Otherwise looks fine to me!

@gitdallas
Copy link
Contributor Author

@rebeccaalpert i replaced a few examples with an interactive one
image

Copy link
Member

@rebeccaalpert rebeccaalpert left a comment

Choose a reason for hiding this comment

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

Thank you! Surge doesn't have it for whatever Surge-y reason, but localhost looks great.

* We recommend the helper text component as it was designed for this purpose.
*/
helperText?: React.ReactNode;
/** Hide the status icon, helpful when space is limited (such as within table cells) */
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a slight tweak to this:

Suggested change
/** Hide the status icon, helpful when space is limited (such as within table cells) */
/** Flag indicating whether the status icon should be hidden, helpful when space is limited (such as within table cells). When set to true, you must ensure the context of the status is provided in another way, such as via the progress measure. */

Or something along those lines. Basically, I think we should recommend that a consumer NOT have an implementation where they:

  • want to use status,
  • have measureLocation="none",
  • and hide the status icon

At that point they end up with a progress that visually may indicate the status via the bar color, but without the icon it falls into the "don't use color alone to convey status" issue. The measure percentage/value in lieu of an icon might be an okay alternative.

Or maybe instead of updating this description we update the logic so that hideStatusIcon only applies when measureLocation is anything other than "none", prevent that from even happening.

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.

Progress - Option to disable icons for variants

5 participants