Skip to content

Comments

SWC-7004 - Proof of concept MUI button#5741

Draft
nickgros wants to merge 2 commits intoSage-Bionetworks:developfrom
nickgros:SWC-7004a
Draft

SWC-7004 - Proof of concept MUI button#5741
nickgros wants to merge 2 commits intoSage-Bionetworks:developfrom
nickgros:SWC-7004a

Conversation

@nickgros
Copy link
Contributor

image

@nickgros nickgros marked this pull request as draft July 16, 2025 20:35
Proof of concept MUI button using globally-provided theme context
Comment on lines +82 to 90
<MUI:Button
ui:field="createProjectButton"
type="DEFAULT"
icon="PLUS"
pull="RIGHT"
text="Create a New Project"
variant="contained"
color="primary"
startIcon="add"
children="Create a New Project"
className="pull-right"
size="small"
/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This component uses the correct theme (Synapse theme, not default MUI theme) because the theme (and other context) is now available globally without DI.

image

Copy link
Member

Choose a reason for hiding this comment

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

Nice!
Does this screenshot show a small size button, or was the code updated after the screenshot was taken?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a small size button. As you probably noticed, it doesn't match--I put this into a separate PR so we can sort all of those concerns out separately 🙂

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.

2 participants