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

chore(footer): Restructure new homepage footer #3870

Merged
merged 6 commits into from
Mar 28, 2024

Conversation

jessiehuff
Copy link
Contributor

Closes #3609

@patternfly-build
Copy link
Contributor

patternfly-build commented Jan 19, 2024

@nicolethoen
Copy link
Collaborator

It seems this change does impact the layout of the website quite a bit. I wonder if there is some CSS overrides causing this behavior, or if there is some CSS (either in core, or in org) needed to address this.

WDYT @mcoker @srambach @andrew-ronaldson?

Before:
Screenshot 2024-01-30 at 3 15 57 PM

After:
Screenshot 2024-01-30 at 3 16 15 PM

@mcoker
Copy link
Contributor

mcoker commented Feb 6, 2024

@nicolethoen @jessiehuff looks like it's just because the footer was moved out of the page component (it was in the main content area), and now comes after the page component.

The page component is set up so that it fills the entire viewport height, and then we scroll the contents of 1) the sidebar and 2) the main content area, if there is any overflow in those sections. So what I'm seeing is the page main content scrolling, then when you get to the bottom, the whole browser window scrolls to scroll the page component out of view and scroll the footer into view, which is why there are two scrollbars here:

Screenshot 2024-02-06 at 9 51 57 AM

Is the intent that the footer span the whole width of the viewport? Or can it go back in the bottom of the main content area?

@nicolethoen
Copy link
Collaborator

@mcoker it's updating the markup because (according to the issue) the ideal markup for a page would be:

<header />
<main />
<footer />

but right now it's

<header />
<main>
    <footer />
<main>

@mcoker
Copy link
Contributor

mcoker commented Feb 9, 2024

@nicolethoen ah sorry I should have reviewed the original issue. I'm not sure how we can add this without ending up with double scrollbars. It would be fine if the footer was fixed/sticky to the bottom of the viewport (like masthead is to the top), but it's too tall to do that.

I have one idea - if it's a matter of fixing the markup so it's more a11able, I wonder if we could do this below. Assuming this works, it seems pretty easy, keeps the existing structure and scrolling and all of that, just changes the html element used in 2 spots for the a11y goodness.

  • Change the existing main.pf-v5-c-page__main to div.pf-v5-c-page__main
  • The direct child of the current main element is div#ws-page-content-router - change that to main#ws-page-content-router
  • Append the <footer> to div.pf-v5-c-page__main, so it comes after main#ws-page-content-router

Otherwise I'd probably defer to @lboehling @andrew-ronaldson on a recommendation or example somewhere to refer to for what the scrolling behavior should be while retaining a good UX - what elements scroll and when, what elements are "sticky" and when, stuff like that

@jessiehuff jessiehuff force-pushed the chore/update-footer branch from aa0c3dc to ee5bbd2 Compare March 14, 2024 15:00
mcoker
mcoker previously approved these changes Mar 18, 2024
Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

Nice!! 🎃👍

@andrew-ronaldson andrew-ronaldson self-requested a review March 19, 2024 11:39
Copy link
Contributor

@andrew-ronaldson andrew-ronaldson left a comment

Choose a reason for hiding this comment

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

sweet, LGTM

@nicolethoen
Copy link
Collaborator

This looks good! In order to add a sticky banner to the top of the site pointing to the alpha docs, I had to add flex-shrink: 0 to the #ws-page-content-router styles. I think that will conflict with your flex: 1 addition. You can see the banner running on staging right now (https://staging.patternfly.org/)

@mcoker do we need flex: 1? Will that play nice with the sticky banner?

@mcoker
Copy link
Contributor

mcoker commented Mar 19, 2024

Gave this feedback to @nicolethoen and @jessiehuff offline but just for reference, a page section adjacent to the other sections with .pf-m-sticky-top should work without any modifications to the styles.

Screenshot 2024-03-19 at 6 20 21 PM

It can probably be moved out of #ws-page-content-router and included directly under .pf-v5-c-page__main, too - from what I tested, that seems OK and I didn't see any issues.

@jessiehuff jessiehuff dismissed stale reviews from andrew-ronaldson and mcoker via dff6d23 March 20, 2024 18:50
@jessiehuff jessiehuff force-pushed the chore/update-footer branch from 29dc637 to c13fbb6 Compare March 27, 2024 20:47
@mcoker
Copy link
Contributor

mcoker commented Mar 27, 2024

💪🐰🥕

@nicolethoen nicolethoen merged commit 6ed6ef5 into patternfly:main Mar 28, 2024
4 checks passed
nicolethoen added a commit that referenced this pull request Apr 17, 2024
* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(extensions): Updates the extensions landing page to add reference to the component groups extension. (#3849)

* (docs(extensions): Updates the extensions landing page to add reference to the component groups extension.

* Update packages/documentation-site/patternfly-docs/pages/landing-pages/extensions/extensions-data.json

* typo update

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(accessibility-design): Adds new documentation to support content audit. (#3781)

* docs(accessibility-design): Adds new documentation to support content audit.

* Test page name change

* Apply suggestions from code review

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-design.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-design.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-design.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-design.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-design.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-design.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-design.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-design.md

* Remove table

* Removes numbers from headings.

* Makes content updates and adds images.

* Updates to content describing images.

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: bump puppeteer to fix core (#3860)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* Update naming for introductory pages across website sections. (#3851)

* Update naming for introductory pages across website sections.

* Caps change

* Adjusts naming for about PatternFly page.

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(accessibility-testing): Updates content as part of content audit. (#3776)

* docs(accessibility-testing): Updates content as part of content audit.

* Apply suggestions from code review

Co-authored-by: Eric Olkowski <[email protected]>

* Apply suggestions from code review

* Content tweaks in progress.

* Works on checkboxes.

* Resolves merge conflict.

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-testing.md

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-testing.md

Co-authored-by: Eric Olkowski <[email protected]>

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-testing.md

Co-authored-by: Eric Olkowski <[email protected]>

* Content alterations.

* Content changes from review feedback.

* Updates to buttons point.

* Grammar and typo updates.

* Update packages/documentation-site/patternfly-docs/content/developer-resources/accessibility-testing.md

Co-authored-by: Eric Olkowski <[email protected]>

* Merging.

---------

Co-authored-by: Eric Olkowski <[email protected]>

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: bump to latest release candidates ahead of 5.2 release (#3862)

* fix: bump to latest release candidates ahead of 5.2 release

* bump to latest component groups prerelease

* bump react to pull in bug fix

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* updates to images to make icons black (#3856)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: avoid applying beta tags to nav items for next components (#3868)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix(truncate): typos on guidelines (#3872)

* docs(capitalization): Updates capitalization guidelines for better consistency and clarity. (#3855)

* docs(capitalization): Updates guidance for capitalization.

* Continues editing content.

* Content updates progress.

* Updates content and images.

* Content and image updates.

* Final content and image updates.

* Updates recs per content team decision.

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: add drag drop deps and remove unused code editor deps (#3866)

* fix: add drag drop deps and remove unused code editor deps

* bump react-docs to fix error

* bump the prerelease versions

* chore(Title): updated a11y docs to template (#3873)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(release-highlights): Adds release highlights for 5.2 release. (#3853)

* docs(releases): Adds release highlights for v5.2

* docs(release-highlights): Adds release highlights for 5.2 release.

* Update packages/documentation-site/patternfly-docs/content/get-started/release-highlights.md

Co-authored-by: Michael Coker <[email protected]>

* Adds more highlights.

* Adds coming soon section.

* Update packages/documentation-site/patternfly-docs/content/get-started/release-highlights.md

Co-authored-by: Michael Coker <[email protected]>

* Update packages/documentation-site/patternfly-docs/content/get-started/release-highlights.md

Co-authored-by: Michael Coker <[email protected]>

---------

Co-authored-by: Michael Coker <[email protected]>

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(design): Adds initial information regarding Figma. (#3863)

* docs(design): Adds Figma information where Sketch is currently mentioned.

* Path update

* Update packages/documentation-site/patternfly-docs/content/contribute/design/design.md

* Path updates.

* Update packages/documentation-site/patternfly-docs/content/contribute/design/design.md

* Update packages/documentation-site/patternfly-docs/content/training/design.md

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* feat: release 5.3 (#3878)

* feat: 5.3 release

* update release highlights

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* fix: Bump topology to 5.2.1 (#3881)

* fix: toplogy to 5.2.1

* add yarn.lock

* update release highlights

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* Update broken link on develop.md

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(deps): bump ip from 1.1.5 to 1.1.9 (#3895)

Bumps [ip](https://github.com/indutny/node-ip) from 1.1.5 to 1.1.9.
- [Commits](indutny/node-ip@v1.1.5...v1.1.9)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add edit modal guidance (#3836)

* add edit modal guidance

* edits

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(release): Updated component groups to 5.1.0 release (#3917)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

chore(component-groups): Updated component groups to 5.1.0 release

chore(component-groups): Updated component groups to 5.1.0 release

* Updated version.json

* feat(deps): version bump for 5.2.1 release (#3913)

* feat(deps): version bump for 5.2.1 release

* Update packages/documentation-framework/versions.json

Co-authored-by: Evan <[email protected]>

* Update packages/documentation-site/patternfly-docs/content/get-started/release-highlights.md

Co-authored-by: Evan <[email protected]>

* Update packages/documentation-site/patternfly-docs/content/get-started/release-highlights.md

Co-authored-by: Evan <[email protected]>

* Update packages/documentation-framework/versions.json

* chore(deps): bump react-charts, react-docs

* Update packages/documentation-site/patternfly-docs/content/get-started/release-highlights.md

Co-authored-by: Erin Donehoo <[email protected]>

* chore(docs): update release highlights

* Update packages/documentation-framework/versions.json

---------

Co-authored-by: Evan <[email protected]>
Co-authored-by: Erin Donehoo <[email protected]>

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(SkipToContent): updated a11y docs to template (#3871)

* chore(SkipToContent): updated a11y docs to template

* Updated test item description verbiage

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* feat(deps): version bump and release notes for 5.2.2 patch release (#3919)

* feat(deps): version bump and release notes for 5.2.2 patch release

* fix(release-highlights): correct listed table version

* Update packages/documentation-site/patternfly-docs/content/get-started/release-highlights.md

Co-authored-by: Erin Donehoo <[email protected]>

---------

Co-authored-by: Erin Donehoo <[email protected]>

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* feat: add pf 6 alpha banner to home page and version switcher (#3896)

* feat: add pf 6 alpha banner to home page and version switcher

* update wording

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* feat(templates): add templates package to versions.json (#3902)

* feat(templates): add templates package to versions.json for docs build

* add support for template inline alert

* add to patch version, update wording

* update wording

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(Page): updated a11y docs to new template (#3880)

* chore(Page): updated a11y docs to new template

* Removed requirement of aria-labelledby on page sections

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore: simplify Babel configuration (#3934)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* chore(footer): Restructure new homepage footer (#3870)

* Restructure footer

* Remove PageSection from footer based on conversations

* Rework structure

* Fix footer height issue

* Update flex

* Fix typo

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* feat(docs): update medium articles (#3950)

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* docs(release-highlights): Creates release highlights for 5.3 release. (#3941)

* docs(release-highlights): Creates release highlights for 5.3 release.

* Continues working on content updates.

* docs(release-highlights): Adds release highlights for 5.3 release.

* Adds more context to menu toggle change.

* Update packages/documentation-site/patternfly-docs/content/get-started/release-highlights.md

* Update packages/documentation-site/patternfly-docs/content/get-started/release-highlights.md

* Adds section for dual list selector.

* Updates topology pipeline images.

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* feat(Templates): add to org site (#3947)

* feat(Templates): add to org site

* update versions, fix Th

* hide prev version, update screenshots

* chore(release): releasing packages [ci skip]

 - @patternfly/[email protected]
 - @patternfly/[email protected]

* update documentation-framework version and git ignore

* remove react-templates untill merged in react

* remove 1 featured post

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: patternfly-build <[email protected]>
Co-authored-by: Erin Donehoo <[email protected]>
Co-authored-by: Nicole Thoen <[email protected]>
Co-authored-by: Eric Olkowski <[email protected]>
Co-authored-by: Margot <[email protected]>
Co-authored-by: Andrew Ronaldson <[email protected]>
Co-authored-by: Michael Coker <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Donald Labaj <[email protected]>
Co-authored-by: Austin Sullivan <[email protected]>
Co-authored-by: Evan <[email protected]>
Co-authored-by: kmcfaul <[email protected]>
Co-authored-by: Jon Koops <[email protected]>
Co-authored-by: Jessie <[email protected]>
Co-authored-by: Titani <[email protected]>
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.

Restructure new homepage footer
5 participants