Skip to content

Feature/dep271: Updated header/footer links. Updated footer to match BC Gov site. Added layout width to theme. - #2844

Merged
jareth-whitney merged 4 commits into
mainfrom
feature/dep271
May 7, 2026
Merged

Feature/dep271: Updated header/footer links. Updated footer to match BC Gov site. Added layout width to theme.#2844
jareth-whitney merged 4 commits into
mainfrom
feature/dep271

Conversation

@jareth-whitney

Copy link
Copy Markdown
Contributor

Issue #: https://citz-gdx.atlassian.net/browse/DEP-271

Description of changes:

  • Feature Updated/added links to BC Gov logo in header/footer.
  • Updated footer to match current BC Gov website
    • Social icons removed
    • List of links updated
    • Styling matched
  • Added layout width to theme file
    • Footer can be adjusted to any layout width via theme LayoutWidth

User Guide update ticket (if applicable):

    • Yes, a user guide update ticket has been created. (Link to ticket)
    • No, a user guide update ticket is not required.

Common component changes:

    • Yes, I have updated CONTRIBUTING.md and the docblocks to document any changes to the common components.
    • No, there are no changes to the common components.

@jareth-whitney
jareth-whitney requested a review from NatSquared May 7, 2026 18:38
@codecov-commenter

codecov-commenter commented May 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.16%. Comparing base (739ecb8) to head (c2042c9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2844   +/-   ##
=======================================
  Coverage   75.16%   75.16%           
=======================================
  Files         517      517           
  Lines       20055    20056    +1     
  Branches     1713     1723   +10     
=======================================
+ Hits        15074    15075    +1     
  Misses       4972     4972           
  Partials        9        9           
Flag Coverage Δ
web 63.42% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...eb/src/components/layout/Header/InternalHeader.tsx 83.53% <ø> (ø)
web/src/styles/Theme.tsx 88.23% <100.00%> (+0.73%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

sonarqubecloud Bot commented May 7, 2026

Copy link
Copy Markdown

@NatSquared NatSquared left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread web/src/styles/Theme.tsx
};

export const LayoutWidth = {
default: '100%',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is LayoutWidth.default used for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing yet, it's aspirational. Usually on a website you'll have a standardized layout width for all pages that have centred content (example 1120px). This is to ensure your centred content/header/footer all align. Certain layouts that aren't centred, such as our admin area, would not use the value (they have a 100% width layout).

An example of this is in WordPress, which has a default constrained width that can be applied to multiple pages/containers.

@jareth-whitney jareth-whitney May 7, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, for now I just set the container width in the footer to 100%, until we agree on a value for centred content that we can apply to the individual engagement page and homepage. The footer can scale to any container width.

const baseURL = getBaseUrl();
const { t: translate } = useAppTranslation();
const isLoggedIn = useAppSelector((state) => state.user.authentication.authenticated);
const isMediumScreenOrLarger: boolean = useMediaQuery((theme: Theme) => theme.breakpoints.up('md'));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate getting rid of this useMediaQuery usage

@jareth-whitney
jareth-whitney merged commit 5197e4c into main May 7, 2026
15 checks passed
@jareth-whitney
jareth-whitney deleted the feature/dep271 branch May 7, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants