Skip to content
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

fix(map-and-label): Add spacing between schema fields #3596

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

DafyddLlyr
Copy link
Contributor

What does this PR do?

  • Adds spacing between schema fields on Map and Label component

Context

SchemaFields is intentionally unstyled - this should be left to the wrapping component (thoughts welcome!). By adding the MUI sx prop we allow a degree of flexibility here - unstyled out of the box, but a familiar API to actually configure this when needed.

Before After
image image

Comment on lines +142 to +146
sx={(theme) => ({
display: "flex",
flexDirection: "column",
gap: theme.spacing(2),
})}
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 the only change in this file, the rest is just linting (need to resolve this sooner rather than later!)

@DafyddLlyr DafyddLlyr requested a review from a team August 30, 2024 08:38
Copy link

github-actions bot commented Aug 30, 2024

Removed vultr server and associated DNS entries

@@ -15,6 +17,7 @@ interface SchemaFieldsProps {
/** Formik instance generated from config provided by useSchema hook */
formik: FormikProps<SchemaUserData>;
schema: Schema;
sx?: SxProps<Theme>;
Copy link
Member

Choose a reason for hiding this comment

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

super simple flexible solution 💯

@DafyddLlyr DafyddLlyr merged commit 9056408 into main Aug 30, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/sx-schema-fields branch August 30, 2024 12:32
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