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: Use sentence case for section labels (#5580)
Oleg Isonenbf9d8cbd4d4e
diff --git a/apps/builder/app/builder/features/navigator/css-preview.tsx b/apps/builder/app/builder/features/navigator/css-preview.tsxindex ccb35104b2..fd206d3853 100644--- a/apps/builder/app/builder/features/navigator/css-preview.tsx+++ b/apps/builder/app/builder/features/navigator/css-preview.tsx@@ -91,7 +91,7 @@ export const CssPreview = () => {return null;}return (- <CollapsibleSection label="CSS Preview" fullWidth>+ <CollapsibleSection label="CSS preview" fullWidth><ScrollArea css={{ padding: theme.panel.padding }}><pre tabIndex={0} className={preStyle()}><divdiff --git a/apps/builder/app/builder/features/settings-panel/variables-section.tsx b/apps/builder/app/builder/features/settings-panel/variables-section.tsxindex b5deb5689f..cdb8f4c145 100644--- a/apps/builder/app/builder/features/settings-panel/variables-section.tsx+++ b/apps/builder/app/builder/features/settings-panel/variables-section.tsx@@ -264,7 +264,7 @@ const VariablesList = () => {);};-const label = "Data Variables";+const label = "Data variables";export const VariablesSection = () => {const [isOpen, setIsOpen] = useOpenState(label);@@ -290,7 +290,7 @@ export const VariablesSection = () => {</VariablePopoverTrigger>}>- <SectionTitleLabel>Data Variables</SectionTitleLabel>+ <SectionTitleLabel>Data variables</SectionTitleLabel></SectionTitle>}>diff --git a/apps/builder/app/builder/features/style-panel/sections/backdrop-filter/backdrop-filter.tsx b/apps/builder/app/builder/features/style-panel/sections/backdrop-filter/backdrop-filter.tsxindex 31eba866d2..308e903a42 100644--- a/apps/builder/app/builder/features/style-panel/sections/backdrop-filter/backdrop-filter.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/backdrop-filter/backdrop-filter.tsx@@ -21,7 +21,7 @@ export const properties = ["backdrop-filter"] satisfies [...CssProperty[],];-const label = "Backdrop Filters";+const label = "Backdrop filters";const initialBackdropFilter = "blur(0px)";const getItemProps = (_index: number, value: StyleValue) => {diff --git a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadows.tsx b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadows.tsxindex db982ed8e9..2ed96470b4 100644--- a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadows.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadows.tsx@@ -19,7 +19,7 @@ export const properties = ["box-shadow"] satisfies [...CssProperty[],];-const label = "Box Shadows";+const label = "Box shadows";const initialBoxShadow = "0px 2px 5px 0px rgba(0, 0, 0, 0.2)";const getItemProps = (layer: StyleValue, computedLayer?: StyleValue) => {diff --git a/apps/builder/app/builder/features/style-panel/sections/text-shadows/text-shadows.tsx b/apps/builder/app/builder/features/style-panel/sections/text-shadows/text-shadows.tsxindex 5415a9db17..3ffaeebf7d 100644--- a/apps/builder/app/builder/features/style-panel/sections/text-shadows/text-shadows.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/text-shadows/text-shadows.tsx@@ -19,7 +19,7 @@ export const properties = ["text-shadow"] satisfies [...CssProperty[],];-const label = "Text Shadows";+const label = "Text shadows";const initialTextShadow = "0px 2px 5px rgba(0, 0, 0, 0.2)";const getItemProps = (layer: StyleValue, computedLayer?: StyleValue) => {diff --git a/apps/builder/app/builder/shared/collapsible-section.tsx b/apps/builder/app/builder/shared/collapsible-section.tsxindex 56dbd0b179..2401f7d0c0 100644--- a/apps/builder/app/builder/shared/collapsible-section.tsx+++ b/apps/builder/app/builder/shared/collapsible-section.tsx@@ -20,6 +20,7 @@ import {} from "react";import { PlusIcon } from "@webstudio-is/icons";import type { Simplify } from "type-fest";+import { capitalCase } from "change-case";type Label = string;@@ -135,7 +136,7 @@ export const CollapsibleSectionRoot = ({<Collapsible.Trigger asChild>{trigger ?? (<SectionTitle>- <SectionTitleLabel>{label}</SectionTitleLabel>+ <SectionTitleLabel>{capitalCase(label ?? "")}</SectionTitleLabel></SectionTitle>)}</Collapsible.Trigger>@@ -231,7 +232,7 @@ export const CollapsibleSectionWithAddButton = ({) : undefined}>- <SectionTitleLabel>{props.label}</SectionTitleLabel>+ <SectionTitleLabel>{capitalCase(props.label)}</SectionTitleLabel></SectionTitle>}>