
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@cagov/ds-icons
Advanced tools
A utility component for mangaging CA State Template v5.6.1 icons in the Design System.
Icons are visual cues that help people find key information and common actions. They visually represent:
Icons reduce cognitive load by communicating meanings or actions simply and accurately.
Use icons as visual indicators to make key actions or information easy to find. Organize content strategically before using icons. Choose an existing icon from Version 5.6.2 of the CAGov icon library whenever possible.
Use icons for the same purpose consistently to avoid confusion for visitors and reduce cognitive load. Select an icon that’s as closely tied to the specific information or action as possible. When it may not be clear what the icon means, pair it with a label or supporting text.
The Design System uses a standard set of icons for common actions. Several components incorporate icons automatically. This ensures consistency, and fewer steps for content designers. Some examples include:
For a page alert, choose an icon that supports the tone of the alert.
Do not use an icon:
Property | Value |
---|---|
Machine name | ds-icons |
JavaScript | yes |
Recommended for projects that use 10 - 200 icons.
The instructions assume familiarity with npm package management tool, modern JavaScript techniques, and Sass.
Identify all the icons you will need for your project by id using the Icon library below.
npm install @cagov/ds-icons
Run the command npm run dev:sprite-some [ids]
to generate a the sprite
npm run dev:sprite-some gear arrow-down left
The generated sprite will be called cagovSomeIcons.svg
.
Include the generated sprite and ./index.js as a module in your project or page.
Place individual icon inline with <cagov-icon data-icon="[id]"></cagov-icon>
<div
style="display:grid; grid-template-columns: 1fr 1fr; grid-gap: 20px; text-align: center;"
>
<!--Decorative-->
<cagov-icon data-icon="arrow-down"></cagov-icon>
<cagov-icon data-icon="drive"></cagov-icon>
<!--Functional-->
<cagov-icon data-icon="gear" data-sr="Settings"></cagov-icon>
<cagov-icon data-icon="left" data-sr="Next Page"></cagov-icon>
</div>
Recommended for projects that use 1-9 icons.
Identify the icon(s) you will need for your project by id using the Icon library below.
Click the Download link.
Copy/paste or reference the icon in your project.
Recommended for projects where content authors need to be able to add any font inline using only HTML.
Copy the src/fonts
folder to your web app.
Copy the src/icon-font.css
file to your web app.
Include the CSS in your project or page. The CSS must be at the same directory level as the fonts
folder.
Place individual icon in HTML using <span class="ca-gov-icon-[id]" aria-hidden="true"></span>
<span class="ca-gov-icon-audio" aria-hidden="true"></span>
<span class="ca-gov-icon-drive" aria-hidden="true"></span>
<span class="ca-gov-icon-ferry" aria-hidden="true"></span>
<span class="ca-gov-icon-van" aria-hidden="true"></span>
These icons are decorative by default and use the aria-hidden
attribute. Associated text can be made available to screen readers using Method 1 and the attribute pattern data-sr="My descriptive text."
When using Methods 2 and 3, be mindful of accessibility best practices.
As a component in Alpha status, this component must pass the following accessibility reviews every time a new version is published:
Version 5.6.2 of the CAGov icon library. Download individual svgs using the links below.
{% include 'layouts/icon-library.njk' %}
FAQs
A utility component for mangaging CA State Template v5.6.1 icons in the Design System.
The npm package @cagov/ds-icons receives a total of 6 weekly downloads. As such, @cagov/ds-icons popularity was classified as not popular.
We found that @cagov/ds-icons 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.