Skip to content

BrightspaceUILabs/card-overlay

Repository files navigation

@brightspace-ui-labs/card-overlay

NPM version

Note: this is a "labs" component. While functional, these tasks are prerequisites to promotion to BrightspaceUI "official" status:

A placeholder when an actual card component is loading

Installation

Install from NPM:

npm install @brightspace-ui-labs/card-overlay

Usage

<script type="module">
  import '@brightspace-ui-labs/card-overlay/card-overlay.js';
</script>
<d2l-labs-card-overlay>My element</d2l-labs-card-overlay>

Developing and Contributing

After cloning the repo, run npm install to install dependencies.

Testing

To run the full suite of tests:

npm test

Alternatively, tests can be selectively run:

# eslint
npm run lint:eslint

# stylelint
npm run lint:style

# unit tests
npm run test:unit

This repo uses @brightspace-ui/testing's vdiff command to perform visual regression testing:

# vdiff
npm run test:vdiff

# re-generate goldens
npm run test:vdiff golden

Running the demos

To start a @web/dev-server that hosts the demo page and tests:

npm start

Versioning and Releasing

This repo is configured to use semantic-release. Commits prefixed with fix: and feat: will trigger patch and minor releases when merged to main.

To learn how to create major releases and release from maintenance branches, refer to the semantic-release GitHub Action documentation.