Hi folks, I am looking to add a “Skip to main content” functionality to my site for users who with accessibility requirements that rely on keyboard navigation.
Has anyone achieved this through their Softr apps? I have come across examples such as this one but am not quite sure how to implement it across the app
It’s a shame this has had no reply because it is an important point for those needing accessibility options. I would have expected someone from Softr to comment on this.
It’s a great suggestion indeed, @flavi . I’ve added it to our backlog.
If others are in need of this feature, let us know. Generally, we know that this would be very valuable for those who need it, but haven’t seen a large interest in it from our community to warrant building it yet.
Hey @dreamsuite-mike & @flavi - good news! I’ve put together I believe a good workaround for this!
STEP 1: Identify your main content
On the page that you’re going to be adding this button to you’ll need to identify the block that you’d like to be the main content to scroll to. Change the ID of this block to main-content or whatever you’d like to call it; just remember what it is for the next steps!
STEP 2: Create a custom code block
Add a custom code block onto the page you’d like the button to appear. Put in the following code:
If you used main-content as your ID you can keep #main-content. If not, change that to whatever name you used keeping # in front of the name.
STEP 3: Preview & test!
You should now be able to click Preview and then by tabbing/focusing you should then be able to select the button which should scroll the assigned section. This button should remain hidden until focused as suggested.
Please let me know if this works/doesn’t work and I’d be happy to help fix this!
I’m also going to make a note to see if we can put together a short tutorial on this for our social channels as well to give visibility to this workaround for those needing accessibility options.