Skip to content

Migrate Kyper AttentionFilled Icon to MXUI - #356

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

Migrate Kyper AttentionFilled Icon to MXUI#356
mwclemy wants to merge 10 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?

<AttentionFilled color="#4D4D4D" size={32} style={styles.errorIcon} />
<Text component={'h2'} style={styles.errorTitle} truncate={false} variant="H2">
<div className={styles.container}>
<Icon fill={true} name="error" size={32} sx={{ mb: 3 }} />

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.

It looks like we're using margins to put space between things. Lets use a stack with spacing.

display: flex;
flex-direction: column;
width: 100%;
margin-top: var(--spacing-large);

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.

Same deal for all of this. Let's use a stack with spacing to create gaps between things.

data-test="disconnect-button"
onClick={handleOnDisconnect}
sx={styles.button}
sx={{ mt: 2.5, mb: 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.

Stacks with spacing

<Stack
alignItems="center"
justifyContent="center"
sx={{

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.

Use css modules instead of sx

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

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

Comment thread src/styles/spacing.css
@@ -0,0 +1,10 @@
:root {
--spacing-xtiny: 2px;

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.

These aren't mui things right? We made these up?

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?

}

.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

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

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

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

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

<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

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

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

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