
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
modal web component with features:
to use this component in react see jb-modal/react;
npm i jb-modal
<jb-modal is-open="true">
<div>modal content</div>
</jb-modal>
<!-- OR -->
<jb-modal is-open="true">
<div slot="header">modal header</div>
<div slot="content">modal content</div>
<div slot="footer">modal footer</div>
</jb-modal>
document.querySelector('jb-modal').config.autoCloseOnBackgroundClick = true;
if you want your modal to keep open when user refresh the page or you want capture back button in mobile when modal is open you just need to provide an id attribute.
<jb-modal is-open="true" id="Something">
</jb-modal>
//when web-component load and you can access modal logic
document.querySelector('jb-modal').addEventListener("load",(e)=>{/*your function*/});
// when modal load and initiated completely
document.querySelector('jb-modal').addEventListener("init",(e)=>{/*your function*/});
// when page refresh and modal open by default because of url
document.querySelector('jb-modal').addEventListener("urlOpen",(e)=>{/*your function*/});
// when modal closed
document.querySelector('jb-modal').addEventListener("close",(e)=>{
// could be "BACKGROUND_CLICK" "HISTORY_BACK_EVENT" "CLOSE_BUTTON_CLICK"
const closeType = e.detail.eventType
/*your function*/
});
you can customize modal look by following css properties
| css variable name | description |
|---|---|
| --jb-modal-bg-color | modal content background color default is black #fff |
| --jb-modal-back-bg-color | modal back background color |
| --jb-modal-border-radius | modal border-radius default 24px |
see jb-modal/react; if you want to use this component in react
see [All JB Design system Component List](https://javadbat.github.io/design-system/
use Contribution Guide if you want to contribute in this component.
FAQs
modal web component
We found that jb-modal demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.