Skip to content

Ability to Anchor to sections (components) on a page. #1703

Closed
@hokienick

Description

@hokienick

There are many times we would like to insert a button link in a banner that when clicked would scroll down to the pertinent information on the page.

There are 2 asks for this ticket:

1. The ability to anchor to a particular section of the page
Whether a Content Block or a Viewport with other components comprising it, please allow us to have the ability to anchor to that section. For example:
<PrimaryButton to="/#challenges">Go To Challenges</PrimaryButton>
and that button will auto scroll to that section of the page, which is a Content Block

2. Animation scrolling for all anchors globally
This may require some javascript work, but let's make a global change where whenever an anchor button/link is clicked, the page scrolls down to the called section.

Let me know if you have any questions!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions