Skip to content

Commit

Permalink
makeup-switch-element: fix esbuild compile path
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcburnie committed Mar 2, 2024
1 parent cc66f08 commit 5edc230
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
10 changes: 5 additions & 5 deletions packages/makeup-switch-element/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Markup:

```html
<span id="label1">makeup-switch 1</span>
<makeup-switch labelledby="label1" placeholder="true"></makeup-switch>
<makeup-switch labelledby="label1" skeleton="true"></makeup-switch>
```

Style:
Expand Down Expand Up @@ -46,19 +46,19 @@ The accessible label text. NOTE: `labelledby` is preferred.

The `id` of the labelling element.

### placeholder
### skeleton

Set to `true` to render a placeholder style while in non-JavaScript state.
Set to `true` to render a skeleton style while in non-JavaScript state.

Example placeholder style:

```css
makeup-switch[placeholder="true"] {
makeup-switch[skeleton="true"] {
align-items: center;
display: inline-flex;
height: 40px;
}
makeup-switch[placeholder="true"]::after {
makeup-switch[skeleton="true"]::after {
background-color: #eee;
border-radius: 400px;
content: '';
Expand Down
7 changes: 0 additions & 7 deletions packages/makeup-switch-element/babel.config.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/makeup-switch-element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Ian McBurnie <[email protected]>",
"license": "MIT",
"scripts": {
"compile": "esbuild src/*.js --bundle --outdir=dist --format=esm"
"compile": "esbuild src/index.js --bundle --outdir=dist --format=esm"
},
"dependencies": {
"makeup-switch": "~0.2.0"
Expand Down

0 comments on commit 5edc230

Please sign in to comment.