Skip to content

Commit 65a58de

Browse files
authored
fix: complete css variable properly in code inputs (#4360)
Fixes #4357
1 parent cfef771 commit 65a58de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/builder/app/builder/features/style-panel/shared/css-fragment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const scopeCompletionSource: CompletionSource = (context) => {
4545
const search = word.text;
4646
const availableVariables = $availableVariables.get();
4747
const options = availableVariables.map((varValue) => ({
48-
label: `--var(${varValue.value})`,
48+
label: `var(--${varValue.value})`,
4949
displayLabel: `--${varValue.value}`,
5050
}));
5151
const matches = matchSorter(options, search, {

0 commit comments

Comments
 (0)