Skip to content

Fix/minor btn color fix - #56

Merged
MarkTheBoy merged 2 commits into
developfrom
fix/minor-btn-color-fix
Jun 4, 2026
Merged

MarkTheBoy merged 2 commits into
developfrom
fix/minor-btn-color-fix

Conversation

@MarkTheBoy

Copy link
Copy Markdown
Contributor

Changed the buttons's color

Copilot AI review requested due to automatic review settings June 4, 2026 14:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the “Generate” button styling in the Synthetic Data form to adjust its color and remove elevation/shadow.

Changes:

  • Adds disableElevation to the Generate button to prevent MUI elevation styles.
  • Refactors Generate button sizing/colors into a new GENERATE_BUTTON constants object.
  • Updates the Generate button styles to use the new constants and removes some previous state-specific styling.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/components/business/syntheticData/SyntheticDataForm.tsx Disables button elevation for the Generate action button.
src/components/business/syntheticData/styles.ts Updates Generate button base/hover styling to use shared constants and removes prior disabled styling.
src/components/business/syntheticData/constants.ts Introduces centralized constants for Generate button dimensions and colors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 212 to 216
'&:hover': {
backgroundColor: theme.palette.primary.dark ?? theme.palette.primary.main,
borderColor: theme.palette.primary.dark ?? theme.palette.primary.main,
},
'&:disabled': {
backgroundColor: theme.palette.grey[300],
color: theme.palette.grey[400],
borderColor: theme.palette.grey[300],
background: theme.palette.primary.main,
borderColor: theme.palette.primary.main,
boxShadow: 'none',
},
@MarkTheBoy
MarkTheBoy merged commit 45f2953 into develop Jun 4, 2026
1 check passed
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