-
-
Notifications
You must be signed in to change notification settings - Fork 275
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(suite): Fix non-ascii banner in passphrase wallet #16932
Conversation
WalkthroughThe changes update the styling properties of the 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
packages/product-components/src/components/PassphraseTypeCard/NonAsciiBanner.tsx (2)
28-30
: LGTM! The styling changes effectively address the dark mode issue.The changes improve the banner's appearance by:
- Using theme-based colors for better dark mode support
- Adding rounded top corners for visual hierarchy
- Improving spacing with consistent padding
Consider using theme tokens for border width.
For better maintainability and consistency, consider extracting the
1px
border width to a theme token.- box-shadow: inset 0 0 0 1px ${({ theme }) => theme.borderElevation0}; + box-shadow: inset 0 0 0 ${({ theme }) => theme.borderWidths.normal} ${({ theme }) => theme.borderElevation0};
68-68
: Address the TODO comment about reusing LearnMoreButton.The comment suggests using a reusable
LearnMoreButton
component instead of the current implementation. This would improve code consistency and maintainability.Would you like me to help implement this change by generating the code to use the
LearnMoreButton
component?
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/product-components/src/components/PassphraseTypeCard/NonAsciiBanner.tsx
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (9)
- GitHub Check: run-desktop-tests (@group=wallet, trezor-user-env-unix bitcoin-regtest)
- GitHub Check: run-desktop-tests (@group=other, trezor-user-env-unix)
- GitHub Check: run-desktop-tests (@group=settings, trezor-user-env-unix bitcoin-regtest)
- GitHub Check: run-desktop-tests (@group=device-management, trezor-user-env-unix)
- GitHub Check: run-desktop-tests (@group=suite, trezor-user-env-unix)
- GitHub Check: Setup and Cache Dependencies
- GitHub Check: build-web
- GitHub Check: build-web
- GitHub Check: Analyze with CodeQL (javascript)
QA OK ![]() Info:
|
b2a8652
to
1031f69
Compare
Description
dark mode problem only
Related Issue
Resolve
Screenshots:
before
after