Skip to content

Migrate Kyper ChevronRight Icon to MXUI - #357

Open
mwclemy wants to merge 10 commits into
cmwimo/CT-2388from
cmwimo/CT-2389
Open

Migrate Kyper ChevronRight Icon to MXUI#357
mwclemy wants to merge 10 commits into
cmwimo/CT-2388from
cmwimo/CT-2389

Conversation

@mwclemy

@mwclemy mwclemy commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Before(Kyper)

Screenshot 2026-07-29 at 13 35 08 Screenshot 2026-07-29 at 13 35 23

After(MXUI)

Screenshot 2026-08-04 at 18 58 32 Screenshot 2026-08-04 at 16 57 02

Comment thread src/components/InstitutionTile.js Outdated
Comment thread src/views/disclosure/Interstitial.js Outdated
Comment thread src/views/disclosure/Interstitial.js Outdated
Comment thread src/views/disclosure/PoweredByMX.js Outdated
Comment thread src/views/loginError/ImpededMemberError.js Outdated
Comment thread src/views/loginError/ImpededMemberError.js Outdated
Comment thread src/views/microdeposits/AccountInfo.js Outdated
Comment thread src/views/microdeposits/RoutingNumber.js Outdated
Comment thread src/components/support/SupportMenu.js Outdated
Comment thread src/views/disclosure/DataRequested.js Outdated
Comment thread src/views/manualAccount/ManualAccountMenu.js Outdated
Comment thread src/components/support/SupportMenu.js
Comment thread src/components/InstitutionTile.js
Comment thread src/views/disclosure/DataRequested.js Outdated
Comment thread src/views/disclosure/Interstitial.js Outdated
Comment thread src/views/disclosure/Interstitial.js Outdated
Comment thread src/views/disclosure/PoweredByMX.js Outdated
Comment thread src/views/loginError/ImpededMemberError.js
Comment thread src/views/loginError/ImpededMemberError.js
Comment thread src/views/manualAccount/ManualAccountMenu.js
Comment thread src/views/microdeposits/AccountInfo.js
Comment thread src/views/microdeposits/RoutingNumber.js
>
{__('Other available data')}
<ChevronRight style={styles.chevron} />
<Icon name="chevron_right" size={16} sx={{ ml: 0.5 }} />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stacks for spacing

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This icon is inside a Link component which is already a flex row.

>
{__('Data requested')}
<ChevronRight style={styles.chevron} />
<Icon name="chevron_right" size={16} sx={{ marginLeft: 0.5 }} />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stacks for spacing

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

{_p('connect/disclosure/policy/link', 'MX Privacy Policy')}

<ChevronRight style={styles.chevron} />
<Icon name="chevron_right" size={16} sx={{ marginLeft: 0.5 }} />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stacks for spacing

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

>
<PoweredByMXText />
<ChevronRight style={styles.chevron} />
<Icon name="chevron_right" size={24} sx={{ marginLeft: '6px' }} />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stacks for spacing

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. It's inside a Button that's a centered flex row out of the box.

styleOverrides: {
// MUI sizes icon slot children off the button size (medium 20px, large 22px),
// which beats the Icon's own size prop. Our chevrons are always 24px.
endIcon: {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are choosing to change this, then shouldn't we change it at the MXUI level? @platypus801

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can make this a local fix instead of a global one. I added it to the global override because both places using endIcon currently need it to be 24px, so it seemed reasonable to handle it globally.

The issue occurs when you set the endIcon size differently from MUI’s default icon size for the button (18/20/22px for small/medium/large). MUI’s size takes precedence, so you end up with 20px instead of the 24px you want. To me, this feels more like an MUI issue than an MXUI issue.

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