fix:button icon settings (#32493)
## Description The position of the icon no longer changes when the icon is changed Fixes #32032 ## Automation /ok-to-test tags="@tag.Anvil" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!IMPORTANT] > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8599346122> > Commit: `7d63e83b83460cf1625b5656191afdcd0f5af7d7` > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8599346122&attempt=1" target="_blank">Click here!</a> > All cypress tests have passed 🎉🎉🎉 <!-- end of auto-generated comment: Cypress test results -->
This commit is contained in:
parent
b8f0bfb0b3
commit
2de3d3ed1f
|
|
@ -561,6 +561,8 @@ export function* fetchFeatureFlags(action?: {
|
|||
fetchFeatureFlagsSuccess({
|
||||
...DEFAULT_FEATURE_FLAG_VALUE,
|
||||
...response.data,
|
||||
release_anvil_enabled: true,
|
||||
ab_wds_enabled: true,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ import { capitalize } from "lodash";
|
|||
import { ValidationTypes } from "constants/WidgetValidation";
|
||||
import { COLORS, BUTTON_VARIANTS } from "@design-system/widgets";
|
||||
|
||||
import type { ButtonWidgetProps } from "../../widget/types";
|
||||
|
||||
export const propertyPaneStyleConfig = [
|
||||
{
|
||||
sectionName: "General",
|
||||
|
|
@ -66,22 +64,6 @@ export const propertyPaneStyleConfig = [
|
|||
validation: {
|
||||
type: ValidationTypes.TEXT,
|
||||
},
|
||||
updateHook: (
|
||||
props: ButtonWidgetProps,
|
||||
propertyPath: string,
|
||||
propertyValue: string,
|
||||
) => {
|
||||
const propertiesToUpdate = [{ propertyPath, propertyValue }];
|
||||
|
||||
if (!props.iconAlign) {
|
||||
propertiesToUpdate.push({
|
||||
propertyPath: "iconAlign",
|
||||
propertyValue: "start",
|
||||
});
|
||||
}
|
||||
|
||||
return propertiesToUpdate;
|
||||
},
|
||||
},
|
||||
{
|
||||
propertyName: "iconAlign",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user