Coder Social home page Coder Social logo

Comments (6)

brohlson avatar brohlson commented on June 4, 2024

Added to roadmap for v1.1.0
https://github.com/brohlson/gatsby-plugin-anchor-links/projects/1#card-32807929

As I mentioned in the other issue, if there is no offset, you technically won't notice anything happening because as of now, all the hashed links send browsers straight to the hashed section. I'm playing around with a stripHash prop that will optionally force scrolls from top to selector on every route change.

from gatsby-plugin-anchor-links.

brohlson avatar brohlson commented on June 4, 2024

activeClassName at the page level can be targeted with [aria-current]='page' like any gatsby-link - I don't have plans to make active hash detection a priority at the moment.

from gatsby-plugin-anchor-links.

bstrokevin avatar bstrokevin commented on June 4, 2024

Any update on className? Would like to use it on my site.

from gatsby-plugin-anchor-links.

brohlson avatar brohlson commented on June 4, 2024

Any update on className? Would like to use it on my site.

I haven't had much time in the past week to work on this. However, it should be pretty easy to target these with parent selectors:

<div class="foo">
    <AnchorLink ...props />
</div>
.foo a { color: blue; }

from gatsby-plugin-anchor-links.

brohlson avatar brohlson commented on June 4, 2024

classNames added in #3

from gatsby-plugin-anchor-links.

oidualc avatar oidualc commented on June 4, 2024

activeClassName at the page level can be targeted with [aria-current]='page' like any gatsby-link - I don't have plans to make active hash detection a priority at the moment.

How should it be used in this context?

from gatsby-plugin-anchor-links.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.