Skip to content
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

Modernize "chat session refreshed" modal #6531

Merged

Conversation

hackerbirds
Copy link
Contributor

  • Hard-coded background colors were removed
  • Buttons were moved to Modal's footer
  • Use instead of HTML , removed the old buttons CSS

Contributor checklist:

  • My contribution is not related to translations.
  • My commits are in nice logical chunks with good commit messages
  • My changes are rebased on the latest main branch
  • A yarn ready run passes successfully (more about tests here)
  • My changes are ready to be shipped to users

Description

This is a rare error so it went unnoticed for a while, but the hard-coded background colors on the "chat session refreshed" modal clashed with the <Modal>'s background colors. I removed the CSS that did that, and I took this opportunity to also update the footer; first by moving the buttons into the <Modal>'s footer as it should, but also by changing the old <button> + their CSS with the more appropriate <Button> type. Those button changes were inspired from DeliveryIssueDialog.tsx which renders fine. Bonus, it shaved off a few lines from _modules.scss.

BEFORE:
chatbefore

AFTER:
newchat

@josh-signal josh-signal self-requested a review July 25, 2023 20:43
@josh-signal josh-signal self-assigned this Jul 25, 2023
* Hard-coded background colors were removed
* Buttons were moved to Modal's footer
* Use <Button> instead of HTML <button>, removed the old buttons CSS
@hackerbirds
Copy link
Contributor Author

Hi, this PR was rebased for v6.29.0.beta-1.

@trevor-signal
Copy link
Contributor

Thanks @hackerbirds! Really appreciate your work & attention to detail. We’ve merged this internally, and it will be released in our next beta family.

@jamiebuilds-signal jamiebuilds-signal merged commit 7fb01f1 into signalapp:main Dec 14, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants