Skip to content

[Feat]: #1466 Add disabled/placeholder styles for the main components #1815

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

Merged
Merged
Next Next commit
fix linter errrors
  • Loading branch information
iamfaran committed Jun 26, 2025
commit 4cc299e4c9944f0529693136ad5e5a72b3548fe1
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ export const ButtonCompWrapper = styled.div<{ $disabled: boolean }>`

// The button component is disabled but can respond to drag & select events
${(props) =>
props.$disabled &&
`
cursor: not-allowed;
button:disabled {
pointer-events: none;
}
`};
props.$disabled
? `
cursor: not-allowed;
button:disabled {
pointer-events: none;
}
`
: ""
}
`;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ function replaceAndMergeMultipleStyles(

export const ButtonStyle = [
getBackground('primary'),
...STYLING_FIELDS_SEQUENCE.filter(style=>style.name!=='lineHeight'),
...STYLING_FIELDS_SEQUENCE,
] as const;

export const DropdownStyle = [
Expand Down