Skip to content

refactor(manualaccountmenu): changing manual account menu to use MUI … - #373

Open
wesrisenmay-mx wants to merge 3 commits into
masterfrom
wes/CT-2473/manualAccountMenu
Open

refactor(manualaccountmenu): changing manual account menu to use MUI …#373
wesrisenmay-mx wants to merge 3 commits into
masterfrom
wes/CT-2473/manualAccountMenu

Conversation

@wesrisenmay-mx

Copy link
Copy Markdown
Collaborator

…list instead of kyper

@wesrisenmay-mx

wesrisenmay-mx commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

Before: (This is on sand which has an old widget version, so the changes include other changes that have been made)
image

After:

image

@wesrisenmay-mx
wesrisenmay-mx marked this pull request as ready for review August 25, 2026 16:44
@mwclemy

mwclemy commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Is design fine with not having a divider between account types anymore? Also, the icon color now looking greyish?

@ash-wright123 ash-wright123 left a comment

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.

LGTM, however I think we will need a ticket to remove the overrides when we move to mxui v2

},
},
},
MuiList: {

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.

Do we need all these overrides? Why can’t we just use raw MUI components?

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.

VerifyExistingMember looks like it also uses the List component and seems to be affected by this override.

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.

Good call out.

The negative margin, button padding, and border radius are planned to be across the board connect widget specific changes. This allows us to keep the margins for the rest of the content, but bleed the mui list button padding into the margins, and line up the icon of the button with the rest of the text above it. If design changes their mind on this, then we'll have to revisit in the future.

The avatar changes are because MXUI only supports 1 specific size of avatar without configurability. I had to unset a bunch of stuff on the avatar as well as set a specific margin right. All the lists that are currently planned for the connect widget are using this same marginRight. All the lists that use MuiListItemAvatar in the connect widget have variable avatar sizes, so they shouldn't be specific like MXUI has it.

https://gitlab.com/mxtechnologies/mx/experiences/mxui/-/blob/master/src/themes/MXTheme.tsx?ref_type=heads#L549

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'm still thinking this through

@ash-wright123
ash-wright123 self-requested a review August 25, 2026 19:33
@wesrisenmay-mx

Copy link
Copy Markdown
Collaborator Author

Is design fine with not having a divider between account types anymore? Also, the icon color now looking greyish?

Yes I worked with design to get where we are, and confirmed with Jen with the screenshot

<List dense={true}>
{typeList?.map((account_type) => (
<Fragment key={account_type}>
<ListItem disableGutters={true}>

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.

The disableGlutters prop is already set up in MXUI.

marginRight: 12,
minWidth: 'unset',
width: undefined,
'& .MuiAvatar-root': {

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.

I can't find anywhere an Avatar child is used that requires this override.

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