From 7397189b075b77b83deb2af7467642097ae9884b Mon Sep 17 00:00:00 2001 From: Matthew Wilcoxson Date: Fri, 25 Apr 2025 16:10:54 +0100 Subject: [PATCH 1/3] Allow props to change individual styles without overriding *all* the styles. --- changelog.md | 15 ++++++++++++++- package.json | 2 +- src/components/Footer.test.tsx | 30 +++++++++++++++++++++++++++++- src/components/Footer.tsx | 25 ++++++++++++++++--------- src/components/Navbar.test.tsx | 22 ++++++++++++++++++++++ src/components/Navbar.tsx | 33 +++++++++++++++++++-------------- 6 files changed, 101 insertions(+), 26 deletions(-) diff --git a/changelog.md b/changelog.md index 291e6f0..e386614 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,19 @@ SciReactUI Changelog ==================== + +[v0.1.1] - 2025-?-? +-------------------- + +### Added +- + +### Fixed +- Styles added to Navbar and Footer incorrectly remove built in styles. + +### Changed +- + [v0.1.0] - 2025-04-10 --------------------- @@ -56,7 +69,7 @@ SciReactUI Changelog - Generic -[0.0.0] - 2024-06-04 +[v0.0.0] - 2024-06-04 -------------------- ### Added diff --git a/package.json b/package.json index fa75a40..1f412b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@diamondlightsource/sci-react-ui", - "version": "0.1.0", + "version": "0.1.1alpha", "description": "A theme and component library to make websites at scientific institutions simple to create.", "author": "Diamond Light Source", "license": "ISC", diff --git a/src/components/Footer.test.tsx b/src/components/Footer.test.tsx index e2185d5..09b7ea1 100644 --- a/src/components/Footer.test.tsx +++ b/src/components/Footer.test.tsx @@ -10,7 +10,32 @@ jest.mock("./ImageColorSchemeSwitch"); // @ts-expect-error: doesn't find mockImplementation outside of testing. ImageColorSchemeSwitch.mockImplementation(() => alt); -describe("Footer", () => { + +describe("Footer logo and copyright", () => { + test("Should render", async () => { + renderWithProviders(