
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@cagov/ds-link-grid
Advanced tools
The card grid depends on individual cards and lays them out in a grid
The link grid organizes links that function as calls to action (CTAs) or highlight topics. It guides people to important services and topics. The grid can also be used by content creators to lead users to specific content.
When viewed on a computer, the grid is a maximum of 3 links wide. On mobile devices, this grid collapses into a single column.
Use the link grid to highlight the top things people need. Organize the links in a way that makes sense for people’s primary needs.
The link grid is typically used on the homepage of a site so visitors can find and get to useful content quickly.
Only use the link grid if you have two or more links to add to it.
Avoid using more than 9 links. The link grid is intended to highlight the most important content. The recommended maximum grid size is 3 rows by 3 columns.
Because the grid collapses into one column on mobile, large grids may occupy several screens. This can hide lower links.
<div class="cagov-grid">
<a href="linkurl" class="no-deco cagov-card">
<span class="card-text">card title here</span>
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 24 24"
height="24px"
viewBox="0 0 24 24"
width="24px"
>
<g>
<path d="M0,0h24v24H0V0z" fill="none" />
</g>
<g>
<polygon points="6.23,20.23 8,22 18,12 8,2 6.23,3.77 14.46,12" />
</g>
</svg>
</a>
<a href="linkurl" class="no-deco cagov-card">
<span class="card-text"
>this is an example of a very long text string card title here</span
>
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 24 24"
height="24px"
viewBox="0 0 24 24"
width="24px"
>
<g>
<path d="M0,0h24v24H0V0z" fill="none" />
</g>
<g>
<polygon points="6.23,20.23 8,22 18,12 8,2 6.23,3.77 14.46,12" />
</g>
</svg>
</a>
<a href="linkurl" class="no-deco cagov-card">
<span class="card-text">card title 3 here</span>
<svg
xmlns="http://www.w3.org/2000/svg"
enable-background="new 0 0 24 24"
height="24px"
viewBox="0 0 24 24"
width="24px"
>
<g>
<path d="M0,0h24v24H0V0z" fill="none" />
</g>
<g>
<polygon points="6.23,20.23 8,22 18,12 8,2 6.23,3.77 14.46,12" />
</g>
</svg>
</a>
</div>
| Property | Value |
|---|---|
| Machine name | ds-link-grid |
| JavaScript | no |
| SCSS | ./src/index.scss |
The instructions assume familiarity with npm package management tool and Sass.
We recommend using a build system and bundling your CSS for faster performance. If you do not use a build system, you can include the code from our CDN with a link tag.
<link rel="stylesheet" href="https://cdn.designsystem.webstandards.ca.gov/components/ds-link-grid/v3.0.1/dist/index.css">
The following CSS variables are used in this component:
--primary-700--accent2-500--gray-100--gray-300--border-1--border-5--radius-2--s-1--s-2--s-3--font-size-5--font-lineheight-3All CSS variables define their own fallback value so you do not have to use additional CSS unless you want to change them. You may define your own value for the variable by adding your own style rules. Here is an example defining the global hex value for a CSS variable named “--primary-700”:
:root {
--primary-700: #165ac2;
}
--accent2-500 variable on focused state.aria-hidden=”true” attribute.As a component in Alpha status, this component must pass the following accessibility reviews every time a new version is published:
This is an HTML- and CSS-only component. JavaScript is not required. It uses CSS variables to inherit design token values. Token definitions are not required because these style rules provide fallback values.
This component uses the following data attributes. We provide this information to help with integrating the component into backend publishing systems or identifying content that may require translation.
| Name | Attribute name | Data type | Field type | Selector |
|---|---|---|---|---|
| Title | title | string | Plain text | .card-text |
| Url | url | string | URL | a.cagov-card[href] |
FAQs
The card grid depends on individual cards and lays them out in a grid
We found that @cagov/ds-link-grid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.