Skip to content

Migrate Kyper AttentionFilled Icon to MXUI - #356

Open
mwclemy wants to merge 11 commits into
masterfrom
cmwimo/CT-2388
Open

Migrate Kyper AttentionFilled Icon to MXUI#356
mwclemy wants to merge 11 commits into
masterfrom
cmwimo/CT-2388

Conversation

@mwclemy

@mwclemy mwclemy commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Before(Kyper)

Screenshot 2026-07-29 at 12 47 04 Screenshot 2026-07-29 at 12 43 09 Screenshot 2026-07-29 at 12 43 32 Screenshot 2026-08-04 at 16 35 40

After(MXUI)

Screenshot 2026-08-04 at 16 47 27 Screenshot 2026-08-04 at 14 27 12 Screenshot 2026-08-04 at 14 27 45 Screenshot 2026-08-04 at 16 22 13

Comment thread src/components/ConnectSuccessSurvey.tsx Outdated
Comment thread src/components/ConnectSuccessSurvey.tsx Outdated
Comment thread src/components/ConfigError.tsx Outdated
Comment thread src/components/ConfigError.tsx Outdated
Comment thread src/components/ConnectSuccessSurvey.tsx Outdated
Comment thread src/components/DeleteMemberSurvey.js Outdated
Comment thread src/components/GenericError.js Outdated
Comment thread src/components/ViewTitle.js Outdated
Comment thread src/views/mfa/MFAImages.js Outdated
Comment thread src/views/mfa/MFAOptions.js Outdated
Comment thread src/views/search/views/SearchFailed.js Outdated
Comment thread src/components/GenericError.js Outdated
@wesrisenmay-mx

Copy link
Copy Markdown
Collaborator

@mwclemy it looks like the warning symbol changed from grey to black. Is that intentional?

Comment thread src/components/ConfigError.tsx Outdated
Comment thread src/components/ConnectedSuccessSurvey.module.css Outdated
Comment thread src/components/DeleteMemberSurvey.js Outdated
Comment thread src/components/GenericError.js Outdated
Comment thread src/components/InstructionalText.js Outdated
dangerouslySetInnerHTML={{ __html: sanitizedInstructionalText }}
data-test="instructional_text"
sx={{ marginBottom: tokens.Spacing.XSmall, ...style }}
sx={{ marginBottom: 1, ...style }}

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.

css modules instead of sx

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 removed ...style since it wasn’t needed. It didn’t feel worth creating a separate file and compound selector just to apply a single marginBottom, so I kept it as sx={{ mb: 1 }}.

sx={{
marginTop: 16,
marginBottom: 32,
marginTop: 2,

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.

css modules instead of sx

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 one’s a bit different. The styles prop is meant to override the default margins, and a few call sites rely on that. With the spread, the caller always wins. With a CSS module, the rules could tie and the override could depend on stylesheet load order.

Comment thread src/styles/spacing.css
border-style: solid;
border-width: 2px;
border-radius: 100%;
font-size: 18px;

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'm skeptical that we should be customizing the font size of an MXUI component. @platypus801?

@mwclemy mwclemy Aug 11, 2026

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.

The default font size from MUI is 12px and the 18px isn't arbitrary value I added. It was what the version before the css module conversion had, so I just preserved it.

}

.paragraph:global(.MuiTypography-root) {
margin-bottom: var(--spacing-xlarge);

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.

I'm not sure I follow the suggestion here.

className={styles.badge}
color="error"
sx={(theme) => ({
'& .MuiBadge-badge': { borderColor: theme.palette.common.white },

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.

css modules instead of sx

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.

We don’t have access to this theme color in a css module unless we hardcode it which I don’t think is the right approach.

onClick={handleSubmit}
sx={{
marginBottom: tokens.Spacing.XSmall,
marginBottom: 1,

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.

css modules instead of sx

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 don’t think it’s worth creating a whole file and compound selector just to apply a single marginBottom.

Comment thread src/views/microdeposits/AccountInfo.js Outdated
justifyContent: 'space-between',
padding: '0 0 16px 0',
marginTop: tokens.Spacing.XSmall,
marginTop: '1px',

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. Do we really want a 1px margin? @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.

Nice catch! This should be 8px.

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.

The wrapper here is RadioGroup that wraps two SelectionBox, I don't see how a Stack would apply here. I did fix the marginTop to be 8px though.

return (
<>
<Text bold={true} component="h2" sx={{ mb: 12 }} truncate={false} variant="H2">
<Text bold={true} component="h2" sx={{ mb: 1.5 }} truncate={false} variant="H2">

@wesrisenmay-mx wesrisenmay-mx Aug 7, 2026

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 is a single element with no other elements to stack with and it needs a custom margin.

<div style={styles.container}>
<div style={styles.iconContainer}>
<AttentionFilled color={tokens.Color.NeutralWhite} size={24} />
<Icon fill={true} name="error" size={24} sx={{ color: 'common.white' }} />

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.

css modules instead of sx

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.

We wouldn’t have access to the common.white theme color in a css module unless we hardcode it.

data-test="verify-existing-member-header"
id="connect-select-institution"
sx={{ marginBottom: tokens.Spacing.Small }}
sx={{ marginBottom: 1.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.

I used Stack to position the elements and remove a bunch of styles but we still need custom margins for them.

component="h3"
data-test="connected-institutions-text"
sx={{ marginBottom: tokens.Spacing.Tiny, fontWeight: 600 }}
sx={{ marginBottom: 0.5, fontWeight: 600 }}

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. css modules instead of sx

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

@mwclemy

mwclemy commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator Author

@mwclemy it looks like the warning symbol changed from grey to black. Is that intentional?

It’s the default icon color from MXUI and per Jen’s suggestion, we don’t want to use custom colors.

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