Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@workday/canvas-kit-css-badge
Advanced tools
Readme
The count badge provides a quantity-based summary with dynamic values.
yarn add @workday/canvas-kit-css
or
yarn add @workday/canvas-kit-css-badge
Add your node_modules
directory to your SASS includePaths
. You will then be able to import
index.scss
.
@import '~@workday/canvas-kit-css-badge/index.scss';
A common use case for the count badge is for displaying notifications, and there are several accessibility concerns you'll want to keep in mind:
aria-hidden
<button type="button" aria-label="Alerts 3 new notifications">
<svg aria-hidden="true" focusable="false">...</svg>
<span class="wdc-count-badge" aria-hidden="true">3</span>
</button>
<div class="wdc-accessible-hide" role="status" aria-live="polite" aria-atomic="true">
New notifications
</div>
Note: To use the
wdc-accessible-hide
class, you'll need to import it from the core module.
@import '~@workday/canvas-kit-css-core/lib/accessibility.scss';
<span class="wdc-count-badge">
1
</span>
<span class="wdc-count-badge-inverse">
2
</span>
Badges with more than 999 notifications should display '999+'
<span class="wdc-count-badge">
999+
</span>
FAQs
provides a summary indicator with dynamic values
The npm package @workday/canvas-kit-css-badge receives a total of 191 weekly downloads. As such, @workday/canvas-kit-css-badge popularity was classified as not popular.
We found that @workday/canvas-kit-css-badge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.