Commit 9b8c7be
committed
fix(cloud-frontend/login): correct BNB icon + i18n a handful of strings
### BNB icon
The EVM wallet button shows three chain icons in a row (Ethereum,
Base, BNB). The BNB glyph was rendering as a white disc with yellow
diamonds, which is not how the BNB Chain mark is drawn anywhere. The
brand spec and every reference rendering (bnbchain.org, Wikimedia
reference SVG, Brandfetch) use a yellow disc with the diamond pattern
in white.
Fix: wrap the diamond path in a yellow `<circle>` background and
recolor the diamonds white. The diamond geometry itself was already
correct (4 outer + 1 center, viewBox `0 0 32 32` centered on 16,16),
so only the fill colors and the surrounding disc had to change.
### i18n nits
A handful of user-facing strings in `steward-login-section.tsx`
shipped untranslated while every neighboring label uses `useT()`.
Bring them into the same translation surface so that locales can
override them and so the file is internally consistent:
- Email input placeholder ("you@example.com")
- Passkey button label ("Passkey")
- Magic Link button label ("Magic Link")
- "Redirecting to dashboard..." success state
- "Loading sign-in options..." loading state (text + aria-label)
All new translation keys live under `cloud.login.*` and carry a
`defaultValue` matching the previous literal so existing
case-insensitive button-name selectors in `steward-login-section.test.tsx`
(`{ name: /passkey/i }`, `{ name: /magic link/i }`) continue to
resolve.
No behavior change. Typecheck + biome clean.1 parent 3231145 commit 9b8c7be
2 files changed
Lines changed: 29 additions & 8 deletions
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
| |||
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
425 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
426 | 432 | | |
427 | 433 | | |
428 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
429 | 439 | | |
430 | 440 | | |
431 | 441 | | |
| |||
444 | 454 | | |
445 | 455 | | |
446 | 456 | | |
447 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
448 | 460 | | |
449 | 461 | | |
450 | 462 | | |
| |||
463 | 475 | | |
464 | 476 | | |
465 | 477 | | |
466 | | - | |
| 478 | + | |
| 479 | + | |
467 | 480 | | |
468 | 481 | | |
469 | 482 | | |
| |||
473 | 486 | | |
474 | 487 | | |
475 | 488 | | |
476 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
477 | 493 | | |
478 | 494 | | |
479 | 495 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
367 | 371 | | |
368 | 372 | | |
369 | | - | |
| 373 | + | |
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
373 | 377 | | |
| 378 | + | |
374 | 379 | | |
375 | | - | |
| 380 | + | |
376 | 381 | | |
377 | 382 | | |
378 | 383 | | |
| |||
0 commit comments