Skip to content

Reusable HelpPopover #22060

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

Merged
merged 7 commits into from
Apr 14, 2025
Merged

Reusable HelpPopover #22060

merged 7 commits into from
Apr 14, 2025

Conversation

gally47
Copy link
Contributor

@gally47 gally47 commented Mar 20, 2025

Motivation and Context

fixes #21986

/nocl

Screenshots (if appropriate):

Screenshot 2025-04-14 at 17 19 25

Screenshot 2025-04-14 at 17 19 40

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@gally47 gally47 self-assigned this Mar 20, 2025
@gally47 gally47 requested review from ousmaneo and vvasylenko March 21, 2025 09:25
Copy link
Contributor

@ousmaneo ousmaneo left a comment

Choose a reason for hiding this comment

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

Looks good. I added a comment inline

const DiagnosisHelp = ({ helpText, children = null }: Props) => {
const StyledIcon = styled(Icon)(
({ theme }) => css`
color: ${theme.colors.variant.warning};
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make the color use bsStyle variant so we can use different colors for the help icon when needed. We could set the warning as a default

@gally47 gally47 requested a review from ousmaneo March 21, 2025 13:43
Copy link
Contributor

@ousmaneo ousmaneo left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you !

@gally47 gally47 merged commit ca0a77a into master Apr 14, 2025
11 checks passed
@gally47 gally47 deleted the fix-21986 branch April 14, 2025 15:30
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.

Add a reusable Popover Helper component with a new info Icon and Color
3 participants