-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: develop
Are you sure you want to change the base?
Conversation
…ng and tests. Deprecation of PageMenu
…ibility improvements
} | ||
|
||
.ams-footer-menu__link svg { | ||
color: currentColor; |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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}" }, |
There was a problem hiding this comment.
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}" }, |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
Describe the pull request
Thank you for contributing to the project!
Please use this template to help us handle your PR smoothly.
What
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:
Additional notes