Rebuild the About page from the current marketing frames #89

Merged
an.di merged 2 commits from adilallo/feature/CR-228-about-page into main 2026-11-04 02:30:32 +00:00
2 changed files with 16 additions and 7 deletions
Showing only changes of commit 069cff2fcd - Show all commits

No files matched your search

@@ -170,7 +170,7 @@ const TopContainer = memo<TopProps>(
return (
<Button
size="xsmall"
buttonType="ghost"
buttonType={folderTop ? "ghost" : "filled"}
palette="default"
onClick={handleCreateRuleClick}
ariaLabel={t("ariaLabels.createNewRule")}
+15 -6
View File
@@ -107,9 +107,21 @@ describe('Top "Create rule" button', () => {
expect(nav.className).not.toContain("min-h-[var(--space-1000)]");
});
it("uses ghost for Create rule", () => {
for (const folderTop of [false, true]) {
const { unmount } = renderWithProviders(<Top folderTop={folderTop} />);
it("uses a filled Create rule button on the standard header", () => {
renderWithProviders(<Top folderTop={false} />);
const button = screen.getByRole("button", {
name: /create a new rule/i,
});
expect(button.className).toContain(
"bg-[var(--color-surface-invert-primary)]",
);
expect(button.className).toContain(
"text-[var(--color-content-invert-primary)]",
);
});
it("uses a ghost Create rule button on the folder header", () => {
renderWithProviders(<Top folderTop />);
const button = screen.getByRole("button", {
name: /create a new rule/i,
});
@@ -117,9 +129,6 @@ describe('Top "Create rule" button', () => {
expect(button.className).toContain(
"text-[var(--color-content-default-brand-primary)]",
);
expect(button.className).toContain("hover:border-transparent");
unmount();
}
});
});