diff --git a/CHANGELOG.md b/CHANGELOG.md index c7e0c14..afcfdcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [v1.0.1] - 2026-05-03 + +### Added +- Add UTM params to share button + +### Fixed +- Fixed overriding `hidden` + ## [v1.0.0] - 2026-04-27 Initial Release diff --git a/base.js b/base.js index 97821e8..4ce0ad1 100644 --- a/base.js +++ b/base.js @@ -2,7 +2,15 @@ import { reset } from '@aegisjsproject/styles/reset.js'; import { layers } from '@aegisjsproject/styles/layers.js'; import { customButton } from '@aegisjsproject/styles/custom-button.js'; -const styles = [layers, reset, customButton]; +const sheet = new CSSStyleSheet(); + +sheet.replace(`@layer components { + :host([hidden]) { + display: none; + } +}`); + +const styles = [layers, reset, customButton, sheet]; export class CustomButton extends HTMLElement { #shadow = this.attachShadow({ mode: 'open' }); @@ -78,6 +86,10 @@ export class CustomButton extends HTMLElement { this.toggleAttribute('disabled', val); } + get signal() { + return this.#controller.signal; + } + static get observedAttributes() { return ['disabled']; } diff --git a/index.html b/index.html index 62c0ad7..8462e4a 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@

Hello, World!