Skip to content

Commit 538fdf0

Browse files
committed
fix: allow static position
1 parent 96f5ce2 commit 538fdf0

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/__tests__/vendor/tailwind/layout.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,7 @@ describe("Layout - Position", () => {
667667
});
668668
test("static", async () => {
669669
expect(await renderCurrentTest()).toStrictEqual({
670-
props: {},
671-
warnings: { values: { position: "static" } },
670+
props: { style: { position: "static" } },
672671
});
673672
});
674673
test("fixed", async () => {

src/compiler/declarations.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,11 @@ export function parsePosition(
20472047
{ value }: DeclarationType<"position">,
20482048
builder: StylesheetBuilder,
20492049
) {
2050-
if (value.type === "absolute" || value.type === "relative") {
2050+
if (
2051+
value.type === "absolute" ||
2052+
value.type === "relative" ||
2053+
value.type === "static"
2054+
) {
20512055
return value.type;
20522056
}
20532057

0 commit comments

Comments
 (0)