Skip to content

Commit

Permalink
Merge pull request #24 from devnook/devnook-encapsulation
Browse files Browse the repository at this point in the history
Improve CSS encapsulation
  • Loading branch information
devnook authored Sep 24, 2024
2 parents a848906 + 9f0ac45 commit 2cd194d
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
48 changes: 24 additions & 24 deletions baseline-status.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="light dark" />
<title>&lt;baseline-status> Demo</title>
<script type="module" src="./baseline-status.min.js"></script>
<script type="module" src="../baseline-status.min.js"></script>
<style>
body {
font-family: Roboto, sans-serif;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "baseline-status",
"version": "1.0.5",
"version": "1.0.7",
"description": "A widget displaying Baseline status of a web feature",
"main": "baseline-status.js",
"main": "baseline-status.min.js",
"type": "module",
"module": "baseline-status.js",
"scripts": {
Expand Down
20 changes: 10 additions & 10 deletions test/__snapshots__/baseline-status.test.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ snapshots["Baseline-status renders with default values"] =
class="baseline-status-title"
>
<div>
<strong>
Baseline
</strong>
Unknown availability
</div>
<div class="baseline-status-browsers">
Expand Down Expand Up @@ -162,7 +159,10 @@ snapshots["Baseline-status renders baseline-low widget for an existing feature"]
devices or browsers.
</p>
<p>
<a href="https://github.com/web-platform-dx/web-features/blob/main/features/.yml">
<a
href="https://github.com/web-platform-dx/web-features/blob/main/features/.yml"
target="_top"
>
Learn more
</a>
</p>
Expand All @@ -175,7 +175,7 @@ snapshots["Baseline-status renders baseline-high widget for an existing feature"
Arrays (initial support)
</h1>
<details>
<summary aria-label="Baseline: Widely Available. Supported in Chrome: no. Supported in Edge: no. Supported in Firefox: no. Supported in Safari: no.">
<summary aria-label="Baseline: Widely available. Supported in Chrome: no. Supported in Edge: no. Supported in Firefox: no. Supported in Safari: no.">
<baseline-icon
aria-hidden="true"
support="widely"
Expand All @@ -189,7 +189,7 @@ snapshots["Baseline-status renders baseline-high widget for an existing feature"
<strong>
Baseline
</strong>
Widely Available
Widely available
</div>
<div class="baseline-status-browsers">
<span>
Expand Down Expand Up @@ -222,7 +222,10 @@ snapshots["Baseline-status renders baseline-high widget for an existing feature"
since July 2015
</p>
<p>
<a href="https://github.com/web-platform-dx/web-features/blob/main/features/.yml">
<a
href="https://github.com/web-platform-dx/web-features/blob/main/features/.yml"
target="_top"
>
Learn more
</a>
</p>
Expand All @@ -246,9 +249,6 @@ snapshots["Baseline-status renders default widget for an unexisting feature"] =
class="baseline-status-title"
>
<div>
<strong>
Baseline
</strong>
Unknown availability
</div>
<div class="baseline-status-browsers">
Expand Down

0 comments on commit 2cd194d

Please sign in to comment.