Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: show rotate and skew in the transform property dropdow listn (#4022)
Jaya Krishna Namburu48e1967a3897
diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-property.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-property.tsxindex 8452fd1d64..05925505e4 100644--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transition-property.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transition-property.tsx@@ -72,7 +72,7 @@ export const TransitionProperty = ({} = useCombobox<NameAndLabel>({items: properties.map((prop) => ({name: prop,- label: prop,+ label: prop === "transform" ? `${prop} (rotate, skew)` : prop,})),value: { name: inputValue as AnimatableProperties, label: inputValue },selectedItem: undefined,@@ -138,12 +138,9 @@ export const TransitionProperty = ({commonPropertiesSet.has(item.name) === false &&propertiesDefinedOnInstanceSet.has(item.name) === false);- const propertiesDefinedOnInstance: Array<NameAndLabel> = Array.from(- propertiesDefinedOnInstanceSet- ).map((item) => ({- name: item,- label: item,- }));+ const propertiesDefinedOnInstance: Array<NameAndLabel> = items.filter(+ (item) => propertiesDefinedOnInstanceSet.has(item.name)+ );const saveAnimatableProperty = (propertyName: string) => {if (isAnimatableProperty(propertyName) === false) {@@ -209,7 +206,7 @@ export const TransitionProperty = ({</>)}- <ComboboxLabel role="option">Common</ComboboxLabel>+ <ComboboxLabel>Common</ComboboxLabel>{commonProperties.map((property, index) =>renderItem(property,diff --git a/apps/builder/app/builder/features/style-panel/sections/transitions/transitions.tsx b/apps/builder/app/builder/features/style-panel/sections/transitions/transitions.tsxindex a3c0c36318..2246136fa5 100644--- a/apps/builder/app/builder/features/style-panel/sections/transitions/transitions.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/transitions/transitions.tsx@@ -56,7 +56,7 @@ const getLayerLabel = ({const propertyLayer =getTransitionLayers(style, "transitionProperty")[index] ??properties.transitionProperty.initial;- const property = toValue({ ...propertyLayer, hidden: false });+ const property = humanizeString(toValue({ ...propertyLayer, hidden: false }));const duration = toValue(getTransitionLayers(style, "transitionDuration")[index] ??properties.transitionDuration.initial@@ -72,11 +72,7 @@ const getLayerLabel = ({properties.transitionDelay.initial);- if (property === "transform") {- return `Transform (Rotate, Skew): ${duration} ${humanizedTimingFunction} ${delay}`;- }-- return `${humanizeString(property)}: ${duration} ${humanizedTimingFunction} ${delay}`;+ return `${property}: ${duration} ${humanizedTimingFunction} ${delay}`;};const defaultTransitionLayers: Record<TransitionProperty, LayerValueItem> = {