Skip to content

Commit d2751b5

Browse files
committed
fix(ci): fix format and failing field-group test
- Format apps/playground/test/pipeline.test.ts with oxfmt - Replace combined CSS selector key with individual selectors in useFieldGroupRecipe so the seam-selector test can find each child rule
1 parent b409ef5 commit d2751b5

2 files changed

Lines changed: 9 additions & 15 deletions

File tree

apps/playground/test/pipeline.test.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,12 @@ const input = {
3333

3434
async function loadMocks() {
3535
const { transformTs } = await import("@/pipeline/transformTs");
36-
const { evalUserConfig, evalStyleframeFile } = await import(
37-
"@/pipeline/evalUserConfig"
38-
);
39-
const { transpileStyleframe } = await import(
40-
"@/pipeline/transpileStyleframe"
41-
);
42-
const { scanAndRegisterUtilities } = await import(
43-
"@/pipeline/scanAndRegisterUtilities"
44-
);
36+
const { evalUserConfig, evalStyleframeFile } =
37+
await import("@/pipeline/evalUserConfig");
38+
const { transpileStyleframe } =
39+
await import("@/pipeline/transpileStyleframe");
40+
const { scanAndRegisterUtilities } =
41+
await import("@/pipeline/scanAndRegisterUtilities");
4542
const { bundlePreview } = await import("@/pipeline/bundlePreview");
4643
const { buildSrcdoc } = await import("@/pipeline/buildSrcdoc");
4744
return {

theme/src/recipes/field-group/useFieldGroupRecipe.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ export const useFieldGroupRecipe = createUseRecipe(
6262
(s) => {
6363
const { selector } = s;
6464

65-
const inputSelectors = [".input", ".select", ".textarea"] as const;
66-
6765
// Horizontal: join controls side-by-side and let fields take the slack.
6866
selector(".field-group.-horizontal", {
6967
"& > *:not(:last-child)": {
@@ -75,10 +73,9 @@ export const useFieldGroupRecipe = createUseRecipe(
7573
borderTopLeftRadius: "0",
7674
borderBottomLeftRadius: "0",
7775
},
78-
[`& > ${inputSelectors.join(", & > ")}`]: {
79-
flexGrow: "1",
80-
minWidth: "0",
81-
},
76+
"& > .input": { flexGrow: "1", minWidth: "0" },
77+
"& > .select": { flexGrow: "1", minWidth: "0" },
78+
"& > .textarea": { flexGrow: "1", minWidth: "0" },
8279
});
8380

8481
// Vertical: join controls top-to-bottom.

0 commit comments

Comments
 (0)