Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@workday/canvas-kit-css-banner

Package Overview
Dependencies
Maintainers
6
Versions
1053
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workday/canvas-kit-css-banner

Errors and alerts for canvas-kit-css

  • 9.1.26
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Canvas Kit Banner

Errors and Alerts notify users of missteps that happen within a workflow and describe how the user can take appropriate action to resolve them.

Mainenance Mode

> Workday Design Reference

Installation

yarn add @workday/canvas-kit-css

or

yarn add @workday/canvas-kit-css-banner

Add your node_modules directory to your SASS includePaths. You will then be able to import index.scss.

You must have PostCSS support. Add the postcss-inline-svg plugin to properly process and inline icons. Process your SASS through PostCSS once it has been compiled to CSS.

@import '~@workday/canvas-kit-css-banner/index.scss';

Usage

Use by applying .wdc-banner.

.wdc-banner-text - Contains the alert/error text.
.wdc-banner-right - Rightmost area containing a link.

<a class="wdc-banner" href="#">
  <span class="wdc-banner-text">
    12 Alerts
  </span>
  <span class="wdc-banner-link">
    View All
  </span>
</a>

Variant

.wdc-banner-error

Set the banner variant as error

<a class="wdc-banner wdc-banner-error" href="#">
  <span class="wdc-banner-text">
    24 Errors and 12 Alerts
  </span>
  <span class="wdc-banner-link">
    View All
  </span>
</a>
.wdc-banner-sticky

Set the banner variant as sticky. Text will truncate with an ellipsis if longer than maximum width.

<a class="wdc-banner wdc-banner-sticky" href="#">
  <span class="wdc-banner-text">
    12 Alerts
  </span>
  <span class="wdc-banner-link">
    View All
  </span>
</a>
Responsive

Responsive styles will modify both the full and minimized alert bars at smaller screen sizes. The full alert bar will have a fixed width while the minimized bar will only have the icon shown.

Accessibility

See canvas-kit-core for accessibility guidelines.

Keywords

FAQs

Package last updated on 20 Oct 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc