Skip to content

Commit

Permalink
Fix #8 - Improve documentation around style ans SD
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Jun 19, 2021
1 parent 36e3d2a commit 7ec2aa0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -35,9 +35,11 @@ define('my-component', {
extends: 'div',

// if specified, it injects once per class definition
// a <style> element in the document <head>.
// In this case, selector will be the string:
// div[is="my-component"]
// a global <style> element in the document <head>, but
// *not* in the shadowRoot. You can render style just fine
// within the render, if shadow DOM is desired.
// For the one-off global case, this method will be invoked with
// a selector like `div[is="my-component"]` or `some-component`
style: selector => css`${selector} {
font-weight: bold;
}`,
Expand Down
12 changes: 6 additions & 6 deletions package.json
Expand Up @@ -23,15 +23,15 @@
"author": "Andrea Giammarchi",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.13.16",
"@babel/preset-env": "^7.13.15",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.5",
"@ungap/degap": "^0.2.6",
"ascjs": "^5.0.1",
"c8": "^7.7.1",
"c8": "^7.7.3",
"coveralls": "^3.1.0",
"drop-babel-typeof": "^1.0.3",
"linkedom": "^0.7.3",
"rollup": "^2.45.2",
"linkedom": "^0.9.3",
"rollup": "^2.52.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-includepaths": "^0.2.4",
"rollup-plugin-node-resolve": "^5.2.0",
Expand All @@ -43,7 +43,7 @@
"dependencies": {
"plain-tag": "^0.1.3",
"reactive-props": "^0.2.2",
"uhtml": "^2.7.3",
"uhtml": "^2.7.5",
"umap": "^1.0.2"
},
"repository": {
Expand Down

0 comments on commit 7ec2aa0

Please sign in to comment.