New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ag.ds-next/a11y

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag.ds-next/a11y

--- title: A11y description: Utilities for improving accessibility. group: Foundations storybookPath: /story/foundations-a11y-visuallyhidden--basic ---

  • 1.1.0
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by171.43%
Maintainers
2
Weekly downloads
 
Created
Source

title: A11y description: Utilities for improving accessibility. group: Foundations storybookPath: /story/foundations-a11y-visuallyhidden--basic

Visually Hidden

Use the VisuallyHidden component to hide an element visually without hiding it from screen readers.

<TextLink href="#">
	Read more<VisuallyHidden> about how to visually hide content</VisuallyHidden>
</TextLink>

Alternatively you can use the visuallyHiddenStyles style object directly.

import { visuallyHiddenStyles } from '@ag.ds-next/a11y';

function Example() {
	return (
		<span css={visuallyHiddenStyles}>This element is visually hidden</span>
	);
}

ExternalLinkCallout

Use the ExternalLinkCallout component to announce to a screenreader user that a link will open in a new tab.

<TextLink href="#" target="_blank">
	Visit the Design System
	<ExternalLinkCallout />
</TextLink>

link, "Visit the Design System (Opens in a new Tab)"

For links in Body text, we recommend reaching for the TextLinkExternal component in the Text package instead.

FAQs

Package last updated on 30 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc