Add responsive game filters and hybrid toolbox drawer
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
This commit is contained in:
parent
1ee460b94f
commit
00e73f0062
32 changed files with 1202 additions and 241 deletions
|
|
@ -51,6 +51,24 @@ test("product components keep the public NDS pattern vocabulary", async () => {
|
|||
}
|
||||
});
|
||||
|
||||
test("filter patterns expose vertical, compact and menu layouts", async () => {
|
||||
const attributes = await readFile("website/src/styles/design-system/attributes/_patterns.scss", "utf8");
|
||||
const catalog = await readFile("website/src/pages/DesignSystemPage.jsx", "utf8");
|
||||
const documentation = await readFile("DESIGN_SYSTEM.md", "utf8");
|
||||
for (const variant of ["vertical", "horizontal-compact", "horizontal-menu"]) {
|
||||
assert.match(catalog, new RegExp(variant));
|
||||
assert.match(documentation, new RegExp(variant));
|
||||
}
|
||||
assert.match(attributes, /nds-filter-menu/);
|
||||
assert.match(attributes, /data-columns="2"/);
|
||||
assert.match(attributes, /grid-template-columns: repeat\(2/);
|
||||
assert.match(attributes, /nds-filter-option-label/);
|
||||
const gameFilters = await readFile("website/src/styles/games/_filters.scss", "utf8");
|
||||
assert.match(gameFilters, /nds-active-filters/);
|
||||
assert.match(gameFilters, /nds-active-filter/);
|
||||
assert.match(documentation, /composant commun `Tooltip`/);
|
||||
});
|
||||
|
||||
test("large sass files stay split by stable responsibility", async () => {
|
||||
const orchestrators = [
|
||||
"website/src/styles/home/_library.scss",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue