
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@cagov/ds-button-grid
Advanced tools
The card grid depends on individual cards and lays them out in a grid
The card grid depends on individual cards and lays them out in a grid
| Property | Value |
|---|---|
| Machine name | ds-button-grid |
| JavaScript | false |
| SCSS | ./src/index.scss |
The instructions assume familiarity with npm package management tool and Sass.
Include SCSS in your compiler.
Add the Sample markup from the component to your HTML.
Modify the Sample markup with your URLs and card text as needed.
<div class="cagov-grid">
<a href="linkurl" class="no-deco cagov-card">
<h3>card title here</h3>
<svg aria-hidden="true" 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>
<!-- ... design expects 3 cards usually -->
</div>
Running the lighthouse audits against this HTML & CSS should produce no issues
From the command line at the root of this project you can run:
npm run start
Which will start the web-dev server and will launch a new page linking to the components, click on hero to get the page created by preview.html
There are some colors that should be defined by the containing page.
Expected definition is:
:root {
--primary-color: #33705B;
--gray-100: #f9f9fa;
--gray-200: #ededef;
}
FAQs
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.