Skip to content

SWC-7004 - Proof of concept MUI button #5741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

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