
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@myuw-web-components/myuw-banner
Advanced tools
A component for displaying slightly-interruptive messages via a banner below the top app bar.
A component for displaying slightly-interruptive messages via a banner below the top app bar.
Include the component as follows:
<!-- import the module -->
<script type="module" src="https://cdn.my.wisc.edu/@myuw-web-components/myuw-banner@latest/myuw-banner.min.mjs"></script>
<!-- fallback for browsers without ES2015 module support -->
<script nomodule src="https://cdn.my.wisc.edu/@myuw-web-components/myuw-banner@latest/myuw-banner.min.js"></script>
<myuw-banner
message="MyUW"
icon=""
action-label=""
action-aria-label=""
action-url=""
learn-more-aria-label=""
learn-more-url=""
></myuw-banner>
Note: The evergreen "latest" version can be used for convenience, but in production settings it is recommended to use the latest release version specifically, and upgrade only after testing!
MyUW app bar exposes custom CSS properties so users can change some of its styles.
--myuw-banner-bg: Sets the banner's background color--myuw-on-banner: Sets the text color of banner text--myuw-anchor-color: Used for the button and icon colors (also used to set link colors)--myuw-button-transparency: Used for the on-hover background color for buttonsFor more information about CSS variables and how they work with MyUW Web Components, reference the styles component
Add the following selector to your CSS:
myuw-banner {
--myuw-banner-bg: #c5050c;
--myuw-on-banner: #fff;
}
To run the demo app locally and test the component, run the following commands:
$ npm install
$ npm start
To release a new version:
package.json and package-lock.json reflect this version,
and that there's a tag for the version pushed to the canonical git repository.
(One good way to do this is npm version {type} and then pushing the tag.)npm publish to publish the version as now described in package.jsonCHANGELOG.md reflects this version and its release date.3.0.3
FAQs
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.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies