Comments (6)
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.
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.
Any update on className? Would like to use it on my site.
from gatsby-plugin-anchor-links.
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.
classNames added in #3
from gatsby-plugin-anchor-links.
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)
- Clarify errorTypes.IMPROPPER_FORMATTING message HOT 1
- delay while page content loads? HOT 1
- Not working HOT 1
- Please mention it scrolls to element IDs in documentation HOT 1
- onAnchorLinkClick doesn't trigger if stripHash=true
- Change URL when clicking on an AnchorLink HOT 2
- Feature Request: Per-link offset HOT 1
- Id:s that start with a number aren't navigable HOT 2
- Giving "active" class to a link when location matches link path? HOT 2
- Path Prefix breaks the scrolling HOT 1
- Scroll Animation Speed Changes HOT 4
- Hashtag doesn't change on current page HOT 1
- No smooth scroll for anchor, only for offset HOT 4
- Scrolls to anchor before GatsbyImage has loaded HOT 1
- Request to add animation props
- Different section offset when going from another page HOT 1
- Scroll only works on second click HOT 2
- Add note to README regarding trailingSlash
- Comparison Shouldn't Fail When 'To' Contains a Query String / Search HOT 1
- Anchor the element in the same page not working. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-plugin-anchor-links.