Skip to content

[Chat] Wrap ImageOverlay with theme provider and change some of the APIs#4117

Merged
Leah-Xia-Microsoft merged 16 commits intomainfrom
leahxia/WrapImageOverlayWithAThemeProvider
Feb 9, 2024
Merged

[Chat] Wrap ImageOverlay with theme provider and change some of the APIs#4117
Leah-Xia-Microsoft merged 16 commits intomainfrom
leahxia/WrapImageOverlayWithAThemeProvider

Conversation

@Leah-Xia-Microsoft
Copy link
Copy Markdown
Member

What

  • Remove unnecessary onError prop from ImageOverlayProps api.
  • Make onDownloadButtonClicked optional, if not provided, download button will not be rendered.
  • Wrap up ImageOverlay with theme provider and export a new theme called imageOverlayTheme. This way, by default, ImageOverlay will always use the dark imageOverlayTheme, disregard the theme of the outer components.

Why

How Tested

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 8, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 8, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 8, 2024

@Leah-Xia-Microsoft Leah-Xia-Microsoft enabled auto-merge (squash) February 9, 2024 00:15
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks like the test images are no longer on a black overlay background; is this intended?

@Leah-Xia-Microsoft Leah-Xia-Microsoft added the update_snapshots Set this label to request automated update of UI snapshots label Feb 9, 2024
@github-actions github-actions Bot removed the update_snapshots Set this label to request automated update of UI snapshots label Feb 9, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2024

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2024

@Leah-Xia-Microsoft Leah-Xia-Microsoft added the update_snapshots Set this label to request automated update of UI snapshots label Feb 9, 2024
@github-actions github-actions Bot removed the update_snapshots Set this label to request automated update of UI snapshots label Feb 9, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2024

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

@Leah-Xia-Microsoft Leah-Xia-Microsoft added update_snapshots Set this label to request automated update of UI snapshots update_chat_snapshots labels Feb 9, 2024
@github-actions github-actions Bot removed update_chat_snapshots update_snapshots Set this label to request automated update of UI snapshots labels Feb 9, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2024

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2024

@Leah-Xia-Microsoft Leah-Xia-Microsoft merged commit 81d6697 into main Feb 9, 2024
@Leah-Xia-Microsoft Leah-Xia-Microsoft deleted the leahxia/WrapImageOverlayWithAThemeProvider branch February 9, 2024 23:10
Leah-Xia-Microsoft added a commit that referenced this pull request Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants