Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Footer)!: add FooterMenu component to replace PageMenu in Footer #1871

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

dlnr
Copy link
Contributor

@dlnr dlnr commented Feb 14, 2025

Describe the pull request

Thank you for contributing to the project!
Please use this template to help us handle your PR smoothly.

What

  • FooterMenu component
  • FooterMenuLink component

Why

PageMenu no longer needed and could be simplified by taking away the need for the Grid component.

How

PageMenu in Footer.Bottom replace with Footer.Menu, replaced Grid with padding.

Checklist

Before submitting your pull request, please ensure you have done the following. Check each checkmark if you have done so or if it wasn't necessary:

  • Add or update unit tests
  • Add or update documentation
  • Add or update stories
  • Add or update exports in index.* files
  • Start the PR title with a Conventional Commit prefix, as explained here.

Additional notes

  • Provide links to any related issues or discussions.
  • Add a link to the specific story in the feature branch deploy.
  • Mention any areas where additional review or feedback is needed.

@dlnr dlnr requested a review from a team as a code owner February 14, 2025 10:49
@dlnr dlnr requested a review from VincentSmedinga February 14, 2025 10:52
}

.ams-footer-menu__link svg {
color: currentColor;
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be removed

describe('Page menu', () => {
it('renders a page menu with children', () => {
const { container } = render(
<FooterMenu>
Copy link
Contributor

Choose a reason for hiding this comment

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

Using Footer.Menu etc. here may be slightly more realistic – we do so in other subcomponents.

}

.ams-footer__menu {
align-items: center;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is necessary

font-family: var(--ams-footer-menu-link-font-family);
font-size: var(--ams-footer-menu-link-font-size);
font-weight: var(--ams-footer-menu-link-font-weight);
gap: var(--ams-footer-menu-link-gap);
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't do anything anymore

}

.ams-footer-menu__link:hover,
.ams-footer-menu__button:hover {
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have buttons in the footer menu

@@ -1,4 +1,3 @@
export { Footer } from './Footer'
export type { FooterProps } from './Footer'
export type { FooterBottomProps } from './FooterBottom'
export type { FooterTopProps } from './FooterTop'
export type { FooterSpotlightProps } from './FooterSpotlight'
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably also want to export FooterMenuProps and FooterMenuLinkProps here

<Heading className="ams-visually-hidden" level={2}>
Over deze website
</Heading>,
<Footer.Menu>
Copy link
Contributor

Choose a reason for hiding this comment

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

This should also get a key

<Heading className="ams-visually-hidden" level={2}>
Over deze website
</Heading>,
<Footer.Menu>
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@@ -1,7 +1,29 @@
{
"ams": {
"footer": {
"top": {
"menu": {
"column-gap": { "value": "{ams.space.grid.md}" },
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be ams-space-lg I think, same as the Header

"top": {
"menu": {
"column-gap": { "value": "{ams.space.grid.md}" },
"row-gap": { "value": "{ams.space.grid.xs}" },
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be ams-space-xs I think

text-underline-offset: var(--ams-footer-menu-link-text-underline-offset);
touch-action: manipulation;

@include text-rendering;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add the hyphenation mixin here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants