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

ECEP-114: Members Page (Nav Pattern, Typography, Sticky Position) #464

Merged

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Mar 11, 2022

Overview

Support new ECEP CMS's Members page.

  • Add ability to create a sticky nav list.
  • Update Core typography.

Related

* @wesleyboar realized and noted this on 2023-04-24. There may be more.

Changes

  • Added <nav> tag & c-nav... classes to Style plugin.
  • Added Nav component.
  • Fixed relevant Django CMS admin toolbar bugs.
  • Changed o-section hack so sticky elements will work.
  • Add new CSS env. variable --cms-toolbar-height.
  • Changed typography for <li>, <hr> and <h4><h6>.

Screenshots

Please see live demo of Core Nav Pattern (dev) and Core Typography (dev) and ECEP Members Page (prod) instead.

Nav Responsiveness
wider narrower
Wide 1200 1199
Medium 992 991
Narrow 768 767

Testing

Nav Pattern in Isolation

  1. Review Core Nav Pattern (dev).*
  2. Incrementally change screen size from wide to narrow and back.
  3. Report any UI or UX that seems out of place or deserves explanation.
  4. (Optional) Review Core Typography (dev)[^4] changes.
* If you want to test locally, then create these snippets (click to reveal):

HTML: "(basic)"
TEMPLATE: snippets/manual-pattern-library/c-nav.html

HTML: c-nav--boxed
TEMPLATE: snippets/manual-pattern-library/c-nav.html

in Context / on ECEP Page

  1. Review ECEP Members Page (prod).1
  2. Compare page to design.2
  3. Incrementally change screen size from wide to narrow and back.
  4. Report any UI or UX that seems out of place or deserves explanation.

Build/Deploy Jobs

Footnotes

  1. If you want to test locally, then re-create the page via djangocms-transfer.3

  2. The heading font ("Helvetica Neue") for "Alliance Members" was a "not a design requirement, just a byproduct of the 5min mockup".

  3. For CMS access, first login to ECEP Portal, then ping @taoteg or @tacc-wbomar for CMS edit access.

@wesleyboar wesleyboar changed the title ECEP-114: Floating Nav Pattern ECEP-114: Updates to Support ECEP States/Members Page Mar 11, 2022
@wesleyboar wesleyboar changed the title ECEP-114: Updates to Support ECEP States/Members Page ECEP-114: ECEP Members Page Needs (Nav Pattern, Typography, DjangoCMS+Bootstrap Fix) Mar 17, 2022
@wesleyboar wesleyboar changed the title ECEP-114: ECEP Members Page Needs (Nav Pattern, Typography, DjangoCMS+Bootstrap Fix) ECEP-114: Members Page (Nav Pattern, Typography, Sticky Position) Mar 17, 2022
@wesleyboar wesleyboar requested a review from taoteg March 28, 2022 20:32
… of github.com:TACC/Core-CMS into task/ECEP-114-members-page-and-supporting-core-changes
Copy link
Collaborator

@taoteg taoteg left a comment

Choose a reason for hiding this comment

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

Everything looks good and works as advertised.
I found one thing that I have a question about, maybe nothing.
Approving as is, but feel free to tweak if this detail matters.

When the screen is on mobile layout (the navbar is collapsed and the view is < 768px wide) there are two potential issues I saw.

  1. At ~748.75px wide, the sticky navbar remains "tall" but shifts into the "wrapped" position (above the content).

Screen Shot 2022-04-14 at 12 07 48 PM

  1. In both the rendered state above, and once the sticky nav window properly "wraps" itself, the content seems to be too close to the sticky nav window. Should some extra padding/margin be inserted under the "wrapped" layout?

Screen Shot 2022-04-14 at 12 09 34 PM

Otherwise, looks good!

@wesleyboar
Copy link
Member Author

Cool. I'll fix 'em. 👍

wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Apr 25, 2022
for ECEP-114; tested in TACC/Core-CMS#464
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Apr 25, 2022
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Apr 25, 2022
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Apr 25, 2022
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Apr 25, 2022
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Apr 25, 2022
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Apr 25, 2022
@wesleyboar
Copy link
Member Author

Merge conflicts resolved.

Nav responsiveness is fixed.
wider narrower
Wide 1200 1199
Medium 992 991
Narrow 768 767
Vertical space between nav and content is fixed.

Spacing

@wesleyboar wesleyboar merged commit 805fd71 into main Apr 25, 2022
@wesleyboar wesleyboar deleted the task/ECEP-114-members-page-and-supporting-core-changes branch April 25, 2022 18:04
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Apr 25, 2022
* feat(ECEP-114): nav component

tested in TACC/Core-CMS#464

* fix(ECEP-114): nav should go mobile at wider width

* fix(ECEP-114): larger nav link click area

* fix(ECEP-114): larger no list nav link click area

* fix(ECEP-114): remove whitespace between nav links

* fix(ECEP-114): indenting, wrapping, spacing

* refactor(ECEP-114): rename indent variables
wesleyboar added a commit to TACC/Core-Styles that referenced this pull request Apr 25, 2022
Comment on lines +76 to +79
// Whether to wrap the starter element first
// if ( opts.mustWrapStarter ) {
// wrapper.prepend( starter );
// }
Copy link
Member Author

@wesleyboar wesleyboar May 20, 2022

Choose a reason for hiding this comment

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

⚠️ Post-Merge Notice of Oddity
@wesleyboar, should this be uncommented? If so, should then be re-tested? If not, should option be deleted?

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.

2 participants