mirror of
https://gitee.com/shuto-github/Shadow-DOM-inject-styles.git
synced 2026-04-21 00:00:02 +08:00
update README
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
A helper function to easily modify Shadow DOM CSS.
|
A helper function to easily modify Shadow DOM CSS.
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
import {injectStyles} from 'shadow-dom-inject-styles';
|
||||||
|
|
||||||
const toolbar = (this.el.querySelector('ion-header > ion-toolbar') as HTMLElement);
|
const toolbar = (this.el.querySelector('ion-header > ion-toolbar') as HTMLElement);
|
||||||
|
|
||||||
// language=CSS
|
// language=CSS
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "shadow-dom-inject-styles",
|
"name": "shadow-dom-inject-styles",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "A helper function to easily modify shadow dom css.",
|
"description": "A helper function to easily modify shadow dom css.",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user