mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
fix: keep plugin tailwind variants in core's layer so overrides keep their order
This commit is contained in:
1 parent
4511cc0a42
commit
2f975f433e
3 files changed
+20
-6
No files matched your search
@@ -142,6 +142,18 @@ describe("plugin CSS layers", () => {
|
||||
).toEqual({ shared: ["w-28", "hidden"], own: ["md:w-44"] });
|
||||
});
|
||||
|
||||
it("keeps variants core ships with the plugin's own classes", () => {
|
||||
expect(
|
||||
splitByCoreClasses(
|
||||
["max-h-56", "md:max-h-none", "flex-col", "md:flex-row"],
|
||||
new Set(["md:max-h-none", "flex-col", "md:flex-row"]),
|
||||
),
|
||||
).toEqual({
|
||||
shared: ["flex-col"],
|
||||
own: ["max-h-56", "md:max-h-none", "md:flex-row"],
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps classes core ships below core and the plugin's own beside core's", async () => {
|
||||
vi.spyOn(console, "log").mockImplementation(() => {});
|
||||
// Core's class list comes from scanning this repo, this file included,
|
||||
|
||||
Reference in new issue
Block a user