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-popup
Advanced tools
Readme
A Popup component that allows you to render content in a container on top of a page.
yarn add @workday/canvas-kit-css
or
yarn add @workday/canvas-kit-css-popup
Add your node_modules
directory to your SASS includePaths
. You will then be able to import
index.scss
.
@import '~@workday/canvas-kit-css-popup/index.scss';
Use .wdc-popup
to create a popup. The title and body content can be styled using
.wdc-popup-heading
and .wdc-popup-body
, respectively.
<div class="wdc-popup" role="dialog" aria-labelledby="popup-heading">
<div class="wdc-popup-heading" id="popup-heading">Popup Title</div>
<div class="wdc-popup-body">Popup content</div>
</div>
<div class="wdc-popup" role="dialog" aria-labelledby="popup-heading">
<div class="wdc-popup-close">
<button onClick="{this.onCloseClick}" class="wdc-btn-icon-plain" aria-label="Close">
<i class="wdc-icon" data-icon="x" data-category="system" />
</button>
</div>
<div class="wdc-popup-heading" id="popup-heading">Popup Title</div>
<div class="wdc-popup-body">Popup content</div>
</div>
The default padding for the popup is 32px
. Use wdc-popup-padding-s
to set the padding to 16px
or wdc-popup-no-padding
to set the padding to 0
.
<div class="wdc-popup wdc-popup-no-padding" role="dialog" aria-labelledby="popup-heading">
<div class="wdc-popup-heading" id="popup-heading">Popup Title</div>
<div class="wdc-popup-body">Popup content</div>
</div>
Eight directions are available. Each direction will change the the animation origin when the popup
enters the DOM. Use origin classes in addition to .wdc-popup
to specify the direction. When
something triggers your popup, it is good practice to have the popup animate from whatever triggered
it.
.wdc-popup-animation-origin-top-center
.wdc-popup-animation-origin-right-center
.wdc-popup-animation-origin-bottom-center
.wdc-popup-animation-origin-left-center
.wdc-popup-animation-origin-top-left
.wdc-popup-animation-origin-top-right
.wdc-popup-animation-origin-bottom-right
.wdc-popup-animation-origin-bottom-left
<div
class="wdc-popup wdc-popup-animation-origin-top-center"
role="dialog"
aria-labelledby="popup-heading"
>
<div class="wdc-popup-heading" id="popup-heading">Popup Title</div>
<div class="wdc-popup-body">Popup content</div>
</div>
FAQs
Popup CSS for Canvas kit CSS
The npm package @workday/canvas-kit-css-popup receives a total of 244 weekly downloads. As such, @workday/canvas-kit-css-popup popularity was classified as not popular.
We found that @workday/canvas-kit-css-popup 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.