Skip to content

Instantly share code, notes, and snippets.

@jayperryworks
Last active May 1, 2019 03:36
Show Gist options
  • Save jayperryworks/76d00ab7dc77070898dad1ccfd4b0acf to your computer and use it in GitHub Desktop.
Save jayperryworks/76d00ab7dc77070898dad1ccfd4b0acf to your computer and use it in GitHub Desktop.
Exploring web components: a 'gallery' custom element that uses Shadow DOM to display a grid of list elements.
// Default styles for components
// -> so they're still usable if JS fails or they're not supported
jpw-gallery:not(:defined) {
display: block;
list-style: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment