Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4d26f0c
update secondary nav with open/close
flacoman91 Apr 27, 2026
982c529
fixing lint nag
flacoman91 Apr 28, 2026
3e0c078
update layout, make divider line match whatever height
flacoman91 Apr 28, 2026
c119172
update unit tests
flacoman91 Apr 28, 2026
2a0c106
Merge branch 'rad-layout' into rad-breadcrumb
flacoman91 Apr 29, 2026
cca5642
add padding and shadow to open secondary nav menu
flacoman91 Apr 29, 2026
b240a54
fix hamburge button
flacoman91 Apr 29, 2026
938d990
font size adjust
flacoman91 Apr 29, 2026
073f6e6
update to match cf.gov
flacoman91 Apr 29, 2026
48430be
update src.
flacoman91 Apr 30, 2026
a834f92
fix mobile header when menu open
flacoman91 Apr 30, 2026
89839df
remove unnecessary examples
flacoman91 Apr 30, 2026
b790e91
display hidden options at mobile
flacoman91 Apr 30, 2026
3e8a783
update examples
flacoman91 Apr 30, 2026
8806e95
clean up examples
flacoman91 May 1, 2026
b9722b9
Add footer variants
virginiacc May 6, 2026
c49ad0a
update headings, hero,
flacoman91 May 7, 2026
570a539
remove intellij file
flacoman91 May 7, 2026
5983b42
Update footer styles and tests
virginiacc May 7, 2026
a275dd8
consolidate and cleanup dupe styles
flacoman91 May 7, 2026
300d9aa
Update stories
virginiacc May 7, 2026
bcf1952
update deps
flacoman91 May 7, 2026
f20f925
save update
flacoman91 May 7, 2026
1d4b156
Footer updates.
virginiacc May 7, 2026
bada6c3
Merge branch 'rad-update-deps' into rad-breadcrumb
flacoman91 May 7, 2026
37e362e
fix responsive menu
flacoman91 May 7, 2026
51f3f81
Add link to cf.gov footer, update footer stories, and override DS wra…
virginiacc May 8, 2026
a4bfb4a
Update footer story order.
virginiacc May 8, 2026
ce21f15
Merge commit '1d4b1567fd36e62c0a9af19b23e20326cd4de0ee' into rad-brea…
flacoman91 May 8, 2026
d079297
Merge commit 'a4bfb4afaa2f765032d5536e9285f383c80ae7af' into rad-brea…
flacoman91 May 8, 2026
a14fa99
undo function declaration change
flacoman91 May 8, 2026
8c74946
Merge commit '22fcbcaad110cfe52fed3c6f715cbc90a516f8c9' into rad-brea…
flacoman91 May 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
.DS_Store
*.iml
dist
dist-storybook
*.iml
Expand All @@ -17,4 +18,4 @@ coverage
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
!.yarn/versions
47 changes: 47 additions & 0 deletions docs/local-cfpb-ds.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Pointing design-system-react at a local `@cfpb/cfpb-design-system`

Use this when you have the [cfpb/design-system](https://github.com/cfpb/design-system) repo cloned next to this repo and want Storybook/tests to use your branch (e.g. layout fixes) before a release.

## Layout

Assume sibling directories:

```text
projects/
design-system/ # monorepo root; package lives in packages/cfpb-design-system/
design-system-react/ # this repo
```

If your paths differ, adjust the `portal:` URL below.

## Yarn (Berry)

In **design-system-react** `package.json`, temporarily set the devDependency to the **portal** protocol (live symlink to source):

```json
"@cfpb/cfpb-design-system": "portal:../design-system/packages/cfpb-design-system"
```

Then from **design-system-react**:

```bash
yarn install
yarn storybook
# optional
yarn test
```

`portal:` keeps the dependency wired to your clone so SCSS/JS changes in `design-system` show up after save (no publish step).

## After you’re done

1. Remove the `portal:` line and restore the published version (e.g. `"5.3.2"`).
2. Run `yarn install` again.

## Optional: trim duplicate Layout CSS here

`src/components/Layout/layout.scss` in this repo duplicates some rules that belong in the DS once your PR ships. After you adopt a released `@cfpb/cfpb-design-system` that includes the layout fix, consider removing the overlapping blocks from `layout.scss` so overrides stay minimal.

## Alternative: `yarn link`

From `design-system/packages/cfpb-design-system` you can `yarn link`, then in design-system-react `yarn link @cfpb/cfpb-design-system`. Portal is usually simpler in a Yarn workspaces/monorepo workflow.
2 changes: 1 addition & 1 deletion src/assets/styles/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ pre,
// Override DS wrapper match-content width to 1170px content with 30px gutters.
.wrapper--match-content {
@include respond-to-min($bp-sm-min) {
max-width: $grid-wrapper-width - ($grid-gutter-width * 2);
max-width: $grid-wrapper-width - ($grid-gutter-width * 2) !important;
}
}
34 changes: 11 additions & 23 deletions src/components/Breadcrumb/breadcrumb.scss
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
@use '@cfpb/cfpb-design-system/src/elements/abstracts' as *;

.u-layout-grid__breadcrumbs {
grid-area: c-breadcrumbs;
padding: 1.875rem;

.m-breadcrumbs {
align-items: center;
display: flex;
flex-wrap: wrap;
font-size: .875rem;
gap: .625rem;
font-size: 0.875rem;
gap: 0.625rem;
min-height: 33px;
padding-bottom: .9375rem;
padding-top: .9375rem;
position: relative;
}
}

@media only screen and (width <= 56.25em) {
@include respond-to-max($bp-sm-max) {
.u-layout-grid__breadcrumbs {
background:var(--gray-5);
background: var(--gray-5);
border-bottom: 1px solid var(--gray-40);
margin-left: -1.875rem;
margin-right: -1.875rem;
padding-left: 1.875rem;
padding-right: 1.875rem
margin-bottom: 1.875rem;
padding: 0.9375rem;
}
}

@media only screen and (width >= 37.5625em)and (width <=56.25em) {
.u-layout-grid__breadcrumbs {
padding-left: .9375rem;
padding-right: .9375rem
}
}

@media only screen and (width >= 37.5625em) {
.u-layout-grid__breadcrumbs {
margin-top: 0
}
}
20 changes: 9 additions & 11 deletions src/components/Footer/back-to-top.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { JSX } from 'react';
/* eslint-disable jsx-a11y/anchor-is-valid */
import { Icon } from '../Icon/icon';

import Link from '~/src/components/Link/link';
export const BackToTop = (): JSX.Element => (
<a
className='a-btn a-btn--secondary o-footer__top-button'
data-gtm_ignore='true'
data-js-hook='behavior_return-to-top'
href='#'
>
Back to top
<Icon name='arrow-up' isPresentational />
</a>
<Link label="Back to top"
isButton
className='a-btn--secondary a-btn--full-on-xs o-footer__top-button u-show-on-mobile u-mb45'
data-gtm_ignore='true'
data-js-hook='behavior_return-to-top'
data-testid='back-to-top'
href='#'
iconRight='arrow-up'/>
);
36 changes: 16 additions & 20 deletions src/components/Footer/footer-cf-gov.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { JSX } from 'react';
import { Icon } from '../Icon/icon';
import Footer from './footer';
import Link from '../Link/link';
import {WebsiteFooter} from './footer';

interface FootCfGovProperties {
cfLink?: string;
Expand Down Expand Up @@ -140,30 +141,25 @@ export const FooterCfGov = ({
];

const linksCol3 = [
<a key='usa-gov' className='a-link a-link--icon' href='https://usa.gov/'>
<span className='a-link__text'>USA.gov</span>&nbsp;
<Icon
ariaLabel='External link'
name='external-link'
alt='External link'
/>
</a>,
<a
<Link
key='usa-gov'
href='https://usa.gov/'
label='USA.gov'
iconRight='external-link'/>,
<Link
key='inspector'
className='a-link a-link--icon'
href='https://oig.federalreserve.gov/'
>
<span className='a-link__text'>Office of Inspector General</span>&nbsp;
<Icon
ariaLabel='External link'
name='external-link'
alt='External link'
/>
</a>,
label='Office of Inspector General'
iconRight='external-link'/>,
<Link
key='archive'
href='https://archive-it.org/organizations/2800'
label='Public Archive'
iconRight='external-link'/>
];

return (
<Footer
<WebsiteFooter
{...properties}
className={className}
navLinks={navLinks}
Expand Down
9 changes: 5 additions & 4 deletions src/components/Footer/footer-links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const NavLinks = ({ children }: WrapperProperties): JSXElement => {
if (isEmptyArray(children)) return null;

return (
<List className='o-footer__nav-list m-list--links m-list--horizontal'>
<ListItemBuilder itemClassname='m-list__link'>{children}</ListItemBuilder>
<List className='o-footer__nav-list m-list'>
<ListItemBuilder itemClassname='m-list__link a-link--jump'>{children}</ListItemBuilder>
</List>
);
};
Expand Down Expand Up @@ -51,11 +51,12 @@ export const FooterLinksColumn = ({

return (
<div className='o-footer__col'>
<List className='o-footer__list'>
<ListItemBuilder itemClassname='m-list__link'>
<List className='o-footer__list m-list'>
<ListItemBuilder itemClassname='m-list__link a-link--jump'>
{children}
</ListItemBuilder>
</List>
</div>
);
};

Loading
Loading