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
property name with background
Sultand31ec5754f52
diff --git a/apps/designer/app/designer/features/style-panel/shared/property-name.tsx b/apps/designer/app/designer/features/style-panel/shared/property-name.tsxindex de7a998786..daf3a418d8 100644--- a/apps/designer/app/designer/features/style-panel/shared/property-name.tsx+++ b/apps/designer/app/designer/features/style-panel/shared/property-name.tsx@@ -1,4 +1,4 @@-import { Label } from "@webstudio-is/design-system";+import { Flex, Label } from "@webstudio-is/design-system";import { useIsFromCurrentBreakpoint } from "./use-is-from-current-breakpoint";import { propertyNameColorForSelectedBreakpoint } from "./constants";import type { PropertyProps } from "../style-sections";@@ -7,28 +7,32 @@ export const PropertyName = ({ property, label, css }: PropertyProps) => {const isCurrentBreakpoint = useIsFromCurrentBreakpoint(property);return (- <Label+ <Flexcss={{- display: "flex",- alignItems: "center",- gridColumn: "1",- ...(isCurrentBreakpoint- ? {- color: propertyNameColorForSelectedBreakpoint,- // backgroundColor: "$colors$blue4",- // padding: "calc($radii$1 / 2) $radii$1",- borderRadius: "$radii$1",- }- : {- color: "$hiContrast",- }),...css,+ alignItems: "center",}}- variant="contrast"- size="1"- htmlFor={property}>- {label}- </Label>+ <Label+ css={{+ gridColumn: "1",+ ...(isCurrentBreakpoint+ ? {+ color: propertyNameColorForSelectedBreakpoint,+ backgroundColor: "$colors$blue4",+ padding: "calc($radii$1 / 2) $radii$1",+ borderRadius: "$radii$1",+ }+ : {+ color: "$hiContrast",+ }),+ }}+ variant="contrast"+ size="1"+ htmlFor={property}+ >+ {label}+ </Label>+ </Flex>);};