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

Component: Content-navigation block #53

Closed
chachasikes opened this issue May 25, 2021 · 5 comments
Closed

Component: Content-navigation block #53

chachasikes opened this issue May 25, 2021 · 5 comments
Assignees

Comments

@chachasikes
Copy link
Collaborator

chachasikes commented May 25, 2021

Scope & build content-navigation block (@todo link to issue in design-system & ca-design-system-gutenberg-blocks)

This may require a second issue about page templates.

@chachasikes chachasikes self-assigned this May 25, 2021
@chachasikes chachasikes changed the title design system component: content-navigation block track design system component: content-navigation block May 25, 2021
@wrendo wrendo changed the title track design system component: content-navigation block Component: Content-navigation block (informs DS) May 31, 2021
@chachasikes
Copy link
Collaborator Author

Update on our dev site

@chachasikes chachasikes changed the title Component: Content-navigation block (informs DS) Component: Content-navigation block Jun 16, 2021
@chachasikes
Copy link
Collaborator Author

@chachasikes
Copy link
Collaborator Author

Planned work:

  • Sticky position
  • scroll margin (CSS selector not working in WP, may have a conflict we need to track down)
  • unrelated, but effects this block - Z-index issue overlay problems with nav bar
  • Mobile stying / behavior

Future improvements to consider

  • highlight section on navigate
  • update url hash

@chachasikes
Copy link
Collaborator Author

How this is built

The content-navigation is a stand-alone web component that accepts a target selector, finds any h2-h6 tags, and builds a list of anchor links. If tags to not have ids, ids are created dynamically so that on clicking the link, it will scroll to that section.

Next steps
With this initial interaction, let's collect our notes into github.

  • Do our full Github Issue process for this - especially for design, content & accessibility review to collect our notes for future iterations.
  • Add to design system as a component. Test on our headless blog site.

@chachasikes
Copy link
Collaborator Author

Initial issue:
cagov/design-system#24

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

No branches or pull requests

2 participants