-
Content Count
330 -
Joined
-
Last visited
-
Days Won
5
Everything posted by tcp13
-
Visible Focus for Keyboard Navigation
tcp13 replied to kyledavis726's question in Coding and Customization
Hi @kyledavis726, If you're on a 7.1 template, a focus indicator is already built-in. If you're running version 7.0, you can add the following CSS to your site within Design > Custom CSS: :focus { outline: 3px solid #f08421 !important; outline-offset:2px !important; } With this expected result when navigating with the tab key: If you're looking for further help complying with WCAG, consider checking out our free Squarespace accessibility audit tool at squareada.com/audit. Hope this helps! -Tyler -
how to change blog title from H1 to H2 in masonry page
tcp13 replied to kennedyc's question in Coding and Customization
Hey @kennedyc, Still looking for help with this? It's worth noting that having multiple H1 elements isn't actually a WCAG failure, although as you've noted, it's a common accessibility practice to limit it to one per page. You can use the following jQuery to add ARIA attributes and redefine heading levels. This won't change the tag itself, but overrides the semantics that are presented to screen reader users. Try adding this to your header injection within Settings > Advanced > Code Injection: <!-- If you don't already have jQuery installed, add it here first. --> -
Multiple Paragraph Tags and Accessibility — What Are P1 & P3?
tcp13 replied to AaronRolston's topic in Pages and Content
Hey @AaronRolston, Blind and low vision people typically use a screen reader to audibly announce the contents of a webpage. As you've mentioned, heading structure is important for screen reader users, because they can quickly navigate by jumping around to different heading levels. The best practice for headings is to "nest" your content. For example, the following would be easily navigable with a screen reader using keyboard commands to "read all the H2 elements on this page" or "jump to the next H3 element." H1: Produce H2: Fruit H3: Strawberries- 1 reply
-
- accessibility
- text
-
(and 1 more)
Tagged with:
-
Changing skip link destination for keyboard accessibility?
tcp13 replied to xallarap's question in Coding and Customization
Hey @xallarap, Changing the target of a skip link to anything other than the semantic main region is generally not advisable, but this is a great use case for customizing the skip link target for improved keyboard navigation. You can do this by adding some jQuery to the page header injection. This code starts with the known data-section-id, retrieves the dynamically-generated YUI ID, and assigns that as the skip link's new target. <!-- If you don't already have jQuery installed, add it here first. --> <script src="https://code.jquery.com/jquery-3.5.0.min.js"></scri -
Title over background video - custom code fix
tcp13 replied to JamesGraham303's question in Coding and Customization
Hey @JamesGraham303, Looks like there's a missing </script> tag in your custom code. From the main Squarespace editor, navigate to Settings > Advanced > Code Injection. Scroll down to the Footer Injection, and find a bit of code that looks like this: window.onload = showHeroText(); <!-- Start of HubSpot Embed Code --> You'll want to edit it to look like this: window.onload = showHeroText(); </script> <!-- Start of HubSpot Embed Code --> This closes out the script that makes the banner text work before moving on to start the HubSpot scrip -
Squarespace Social Links are NOT Accessible
tcp13 replied to Caroline_D's topic in Pages and Content
Hey @glidinsk, Still having issues with this? We developed a way to make the native social icon blocks fully accessible using aria-labels instead of alt text. Visually impaired users who rely on a screen reader hear them announced as "twitter," "facebook," etc. instead of the default "button" - that way there's enough context to help them understand the purpose of each link. If you're interested in making your site fully accessible (including zero WAVE errors), I'd encourage you to check out our free accessibility audit. Our team at Square ADA specializes in making Squarespace sites -
Making menu icon accessible on Foundry template
tcp13 replied to SarahHayden's question in Coding and Customization
Hey @SarahHayden, Still having issues with this? The menu icon is actually an anchor element, so unlike an image, you can't add alt text to it. You'll want to use Javascript to add an aria-label value. If you're interested in making your site fully accessible for people using screen readers and other assistive technologies, I'd encourage you to check out our free accessibility audit. Our team at Square ADA specializes in making Squarespace sites ADA compliant, so feel free to reach out if we can be of any help. -
Make Brine Folder Navigation Keyboard Accessible
tcp13 replied to SJSchaidt's question in Coding and Customization
Hi @SJSchaidt, You can use CSS to force the style (position, visibility, and opacity depending on the template) by using the :focus-within pseudo-class. This targets the folder and forces it to be visible whenever a child element is focused by the keyboard. For Brine I believe it'd be something like this: .subnav:focus-within div {opacity:1!important;} With an effect like this: Our team implements this kind of custom code all the time within our Squarespace accessibility service. We also add other keyboard accessibility features such as a skip link and re-enabled focus in- 5 replies
-
- accessibility
- brine-template
-
(and 1 more)
Tagged with:
-
How can I set the alt text of an image to be blank?
tcp13 replied to e2thex's topic in Images and Videos
Hey @e2thex and @kika.tuff, Still having headaches with this? Our team offers alt text management as part of our Squarespace accessibility monitoring service. We write appropriate alt text for each image and use custom code to override Squarespace's default alt text values where needed (including null alt values for backgrounds and decorative images). We also have custom solutions to augment Squarespace templates for full WCAG 2.1 AA and ADA compliance. Feel free to send me a DM or check out our website (www.squareada.com) if you're interested. -Tyler -
Hi John, Is this the Google Lighthouse accessibility tool that you're using? It appears to be flagging the image overlay, not the image itself: The problem is that the anchor elements are empty. You'd have to retroactively fix this with Javascript by adding in an aria-hidden attribute or adding innerHTML content. Similarly, the mobile navigation menu button can be fixed by adding in an aria-label. These are the kinds of issues my team and I fix often. If you're interested in having us take a look, feel free to DM me or hit us up at squareada.com.
-
Can I modify the dropdown menu code for accessibility?
tcp13 replied to kgrahamsb's question in Coding and Customization
Hey @kgrahamsb, Still looking for some help with this? You'll need to add in ARIA labels for the variant selector dropdown to compensate for Squarespace's missing label elements: This is the only solution we've found to work when testing with screen readers. (Userway isn't going to help with this - their widget does absolutely nothing to modify the page's DOM structure.) If you're interested in getting some help with this, and with identifying other accessibility issues on your site, check our our free audit linked in my signature below.- 5 replies
-
- code-injection
- accessibility
-
(and 1 more)
Tagged with: