chore: consolidating spinner color and refactoring institutional qr code modal#25011
chore: consolidating spinner color and refactoring institutional qr code modal#25011georgewrmarshall merged 3 commits intodevelopfrom
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
065d980 to
f38b38d
Compare
| **/ | ||
| @import 'jwt-dropdown/jwt-dropdown'; | ||
| @import 'note-to-trader/index'; | ||
| @import 'qr-code-modal/qr-code-modal'; |
There was a problem hiding this comment.
importing stylesheet to main index styles file
| @@ -0,0 +1,5 @@ | |||
| .institutional-qr-code-modal { | |||
| &__qr-code { | |||
| background-color: var(--qr-code-white-background); | |||
There was a problem hiding this comment.
Moving inline styles to custom classname
|
|
||
| const meta: Meta<typeof QRCodeModal> = { | ||
| title: 'Components/QRCodeModal', | ||
| title: 'Components/Institutional/QRCodeModal', |
| style={{ | ||
| padding: 20, | ||
| backgroundColor: 'var(--qr-code-white-background)', | ||
| display: 'flex', | ||
| alignItems: 'center', | ||
| flexDirection: 'column', | ||
| }} |
There was a problem hiding this comment.
Removing inlines styles in favor of style utility props and custom classname
| flexDirection: 'column', | ||
| }} | ||
|
|
||
| <ModalBody> |
There was a problem hiding this comment.
ModalBody handles overflow using a scroll container
| <QRCode value={qrCodeValue} size={270} /> | ||
| </Box> | ||
| ) : ( | ||
| <Spinner /> |
There was a problem hiding this comment.
We can remove the color as it now defaults to the correct icon-muted color
|
|
||
| const Spinner = ({ className = '', color = 'var(--color-text-default)' }) => { | ||
| const Spinner = ({ className = '', color = 'var(--color-icon-muted)' }) => { | ||
| return ( |
There was a problem hiding this comment.
Before
before.mov
After
after.mov
| }, | ||
| args: { | ||
| color: 'var(--color-warning-default)', | ||
| color: 'var(--color-icon-muted)', |
There was a problem hiding this comment.
Same as above
brianacnguyen
left a comment
There was a problem hiding this comment.
approved on ds side
|
The refactoring looks great! I really appreciate your work on this. I have one small request: Could you please reduce the size of the loader? It currently appears quite large, and adjusting it to a smaller size would be perfect. |
Builds ready [3a9c51c]
Page Load Metrics (339 ± 320 ms)
Bundle size diffs
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25011 +/- ##
========================================
Coverage 65.70% 65.70%
========================================
Files 1369 1369
Lines 54364 54365 +1
Branches 14149 14150 +1
========================================
+ Hits 35716 35717 +1
Misses 18648 18648 ☔ View full report in Codecov by Sentry. |
7fa0895
| &__spinner { | ||
| width: 100px; | ||
| } |
There was a problem hiding this comment.
Reducing the size of the spinner
Not a problem! Updated and updated screencasts in description @albertolive |
Builds ready [7fa0895]
Page Load Metrics (52 ± 3 ms)
Bundle size diffs
|


Description
Breaking out parts of #24971 for easier review. This PR replaces deprecated colors in favor of the most updated design system colors. I also noticed that this particular component could benefit from some layout and overflow updates.
Related issues
Part of: #24964
Manual testing steps
SpinnerandQRCodeModalScreenshots/Recordings
Before
before720.mov
After
after.mov
Pre-merge author checklist
Pre-merge reviewer checklist