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

fix(footer): fixing the default footer type definition #4017

Merged
merged 3 commits into from
Sep 22, 2020

Conversation

jeffchew
Copy link
Member

Related Ticket(s)

No related issue

Description

Using the Footer as standalone was causing an issue where the
navigation links were not rendering if not defined, and passing in
tall did not work. This happens specifically in NextJS when
building and exporting the statically generated pages (rendering in
dev mode appears to be unaffected).

The default value for some reason was set as full, which is incorrect
. This logic now checks if the type is set as tall or undefined,
and will render accordingly.

Changelog

Changed

  • Fixes to Footer type definition

Using the `Footer` as standalone was causing an issue where the
navigation links were not rendering if not defined, and passing in
`tall` did not work. This happens specifically in NextJS when
building and exporting the statically generated pages (rendering in
dev mode appears to be unaffected).

The default value for some reason was set as `full`, which is incorrect
. This logic now checks if the `type` is set as `tall` or `undefined`,
and will render accordingly.
@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Sep 21, 2020

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Sep 21, 2020

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @jeffchew!

@jeffchew jeffchew added the Ready to merge Label for the pull requests that are ready to merge label Sep 22, 2020
@kodiakhq kodiakhq bot merged commit 61c5ad8 into carbon-design-system:master Sep 22, 2020
@jeffchew jeffchew deleted the fix/footer-type branch October 1, 2020 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants