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

Avoid autoscroll when changing tab in tabbed example. #226

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

stefano-ottolenghi
Copy link
Contributor

I think it's a bad UX if the page moves unexpectedly. When looking at examples, people may want to look at them together with the text leading to it, and they have to manually scroll back up to.

Before
scroll

After
no-scroll

Question for @adam-cowley and @recrwplay , if you remember from 4 years ago: why do we have both [.tabs] and [.tabbed-example]?

I believe we are actively only using [.tabbed-example]. If that's the case, can I declutter and entirely remove the [.tabs] bit?

Copy link

netlify bot commented Apr 29, 2024

Deploy Preview for neo4j-docs-ui ready!

Name Link
🔨 Latest commit 75557d5
🔍 Latest deploy log https://app.netlify.com/sites/neo4j-docs-ui/deploys/662f323b8cdf730008ba09c6
😎 Deploy Preview https://deploy-preview-226--neo4j-docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@recrwplay
Copy link
Collaborator

[.tabs] is not widely used, but I've found some examples in the APOC docs so we should not remove that.

@stefano-ottolenghi stefano-ottolenghi merged commit 1259ce4 into master Apr 30, 2024
5 checks passed
@stefano-ottolenghi stefano-ottolenghi deleted the tabbed-scroll branch April 30, 2024 08:07
recrwplay pushed a commit to recrwplay/docs-ui that referenced this pull request May 3, 2024
…ation#226)

I think it's a bad UX if the page moves unexpectedly. When looking at
examples, people may want to look at them together with the text leading
to it, and they have to manually scroll back up to.
recrwplay pushed a commit that referenced this pull request Jun 3, 2024
I think it's a bad UX if the page moves unexpectedly. When looking at
examples, people may want to look at them together with the text leading
to it, and they have to manually scroll back up to.
recrwplay pushed a commit that referenced this pull request Jun 3, 2024
I think it's a bad UX if the page moves unexpectedly. When looking at
examples, people may want to look at them together with the text leading
to it, and they have to manually scroll back up to.
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