Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@zendeskgarden/css-menus
Advanced tools
This package is intended to provide consistent menu styling for use across Zendesk products. Menus can be used along with @zendeskgarden/css-arrows to apply an arrow indicator along the menu's border.
npm install @zendeskgarden/css-menus
Once installed, menu CSS can be accessed via postcss-import
.
@import '@zendeskgarden/css-menus';
Menu CSS provides styling for the following basic structure (W3 example).
<ul aria-hidden="true" class="c-menu" role="menu">
<li class="c-menu__item" role="menuitem">Item</li>
<li aria-disabled="true" class="c-menu__item is-disabled" role="menuitem">Disabled Item</li>
<li class="c-menu__separator" role="separator"></li>
<li class="c-menu__item" role="menuitem">Another Item</li>
</ul>
The former usage pattern is common when a menu is offering a list of
options (i.e. a <select>
dropdown). The component CSS also supports
a menu that presents a list of navigation actions (W3
example).
<nav aria-hidden="true" class="c-menu" role="menu">
<a class="c-menu__item" href="/one">Link One</a>
<a class="c-menu__item" href="/two">Link Two</a>
<span class="c-menu__separator"></span>
<a class="c-menu__item" href="/three">Link Three</a>
</nav>
See http://zendeskgarden.github.io/css-components/menus/ for a variety of menu item classes, including modifications for: headers, add/next/previous, metadata, RTL, etc.
Use .is-open
to apply easing animations to the menu (and
it's arrow, if included) when a menu is shown.
<ul aria-hidden="false" class="c-arrow c-arrow--t c-menu c-menu--down is-open" role="menu">
...
</ul>
The modifier determines the movement (up, down, right, left) of the menu
animation. Remove .is-open
to ease hiding the menu.
See the <Menu> component for show/hide behavior, positioning, and keyboard accessibility.
FAQs
Garden component CSS
The npm package @zendeskgarden/css-menus receives a total of 146 weekly downloads. As such, @zendeskgarden/css-menus popularity was classified as not popular.
We found that @zendeskgarden/css-menus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.