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

fix: qrcode fgColor for dark mode #43162

Merged
merged 2 commits into from
Jun 24, 2023

Conversation

ds1371dani
Copy link
Contributor

@ds1371dani ds1371dani commented Jun 24, 2023

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

image

QRCode remains black in dark theme.

📝 Changelog

Language Changelog
🇺🇸 English 💄 Fix QRCode color in dark theme
🇨🇳 Chinese 💄 修复深色主题下 QRCode 颜色问题

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

🤖 Generated by Copilot at 00d333f

Improved the QRCode component's color handling. Made it possible to omit the color prop and use the theme's text color instead.

🔍 Walkthrough

🤖 Generated by Copilot at 00d333f

  • Make the color prop of the QRCode component optional and use the theme token colorText as the default foreground color of the QR code (link, link)
  • Update the fgColor option of the QRCodeGenerator to respect the color prop or the theme token colorText (link)

@github-actions
Copy link
Contributor

github-actions bot commented Jun 24, 2023

@codecov
Copy link

codecov bot commented Jun 24, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (5c350a8) 100.00% compared to head (00d333f) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #43162   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          648       648           
  Lines        10963     10963           
  Branches      2976      2976           
=========================================
  Hits         10963     10963           
Impacted Files Coverage Δ
components/qrcode/index.tsx 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@afc163
Copy link
Member

afc163 commented Jun 24, 2023

图片

@afc163 afc163 merged commit e1dcfd6 into ant-design:master Jun 24, 2023
56 checks passed
@PeachScript PeachScript mentioned this pull request Jun 25, 2023
20 tasks
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.

3 participants