
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@cagov/ds-highlight-section
Advanced tools
THe Highlight Section is a great way to showcase small bits of important information, and can be used to display services or features.
Highlight section is a great way to showcase small bits of important information, and can be used to display services or features.
Use this to catch attention and highlight the top tasks or business priorities.
Highlight section component consist of three parts: header with the main title, the body, and the footer. The body consists of two halves. First half contains concise a secondary title, and a subtitle, The second one has text description. The footer contains a call-to-action link.
Component is also incorporates full bleed background.
<cagov-highlight-section>
<article role="article" class="full-bleed bg-highlight-lightest">
<div class="container">
<header class="highlight-header">
<h2>Principles for people-centered digital services</h2>
</header>
<section class="highlight-body">
<div class="highlight-image bg-primary-lightest">
<img src="https://california.azureedge.net/cdt/statetemplate/5.6.0/images/color.png" alt="highlight section demo"/>
</div>
<div class="highlight-text">
<h3>Prioritize accessibility</h3>
<h4 class="mt-0">Principle 3</h4>
<p>Make your services accessible for all Californians. Think about people who have been traditionally excluded, like people who use screen readers or reside in low bandwidth regions.</p>
<div class="wp-button">
<a class="btn-primary-outline">See all the principles</a>
</div>
</div>
</section>
</div>
</article>
</cagov-highlight-section>
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-highlight-section/v2.0.1/dist/index.css">
There are some colors that should be defined by the containing page.
Expected definition is:
:root {
--white: #ffffff;
--primary-100: #b3c9eb;
--primary-700: #165ac2;
--primary-900: #003588;
--accent2-100: #ffecc1;
--accent2-500: #ac8226;
--w-lg: 1176px;
--s-1: 0.5rem;
--s-2: 1rem;
--s-2: 1rem;
--s-3: 1.5rem;
--s-4: 2rem;
--font-size-2: 1.125rem;
--font-weight-6: 600;
--font-lineheight-3: 1.5;
--border-1: 1px;
--border-2: 2px;
--radius-2: 4px;
}
FAQs
THe Highlight Section is a great way to showcase small bits of important information, and can be used to display services or features.
We found that @cagov/ds-highlight-section 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
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.