@haiilo/catalyst 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/{p-4c9cd203.entry.js → p-4254363e.entry.js} +2 -2
- package/dist/catalyst/p-4254363e.entry.js.map +1 -0
- package/dist/catalyst/p-dda85567.entry.js +10 -0
- package/dist/catalyst/p-dda85567.entry.js.map +1 -0
- package/dist/cjs/cat-alert_18.cjs.entry.js +9 -5
- package/dist/cjs/cat-alert_18.cjs.entry.js.map +1 -1
- package/dist/cjs/cat-textarea.cjs.entry.js +2 -1
- package/dist/cjs/cat-textarea.cjs.entry.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +2 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon.css +4 -1
- package/dist/collection/components/cat-input/cat-input.js +2 -1
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +2 -1
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +2 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +2 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/components/cat-checkbox.js +2 -1
- package/dist/components/cat-checkbox.js.map +1 -1
- package/dist/components/cat-icon2.js +1 -1
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input.js +2 -1
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-radio.js +2 -1
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-textarea.js +2 -1
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +2 -1
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/esm/cat-alert_18.entry.js +9 -5
- package/dist/esm/cat-alert_18.entry.js.map +1 -1
- package/dist/esm/cat-textarea.entry.js +2 -1
- package/dist/esm/cat-textarea.entry.js.map +1 -1
- package/package.json +2 -2
- package/dist/catalyst/p-4c9cd203.entry.js.map +0 -1
- package/dist/catalyst/p-9d2eab4f.entry.js +0 -10
- package/dist/catalyst/p-9d2eab4f.entry.js.map +0 -1
|
@@ -506,7 +506,8 @@ const CatCheckbox = class {
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
componentWillRender() {
|
|
509
|
-
|
|
509
|
+
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
510
|
+
if (!this.label && !this.hasSlottedLabel) {
|
|
510
511
|
loglevel.loglevel.error('[A11y] Missing ARIA label on checkbox', this);
|
|
511
512
|
}
|
|
512
513
|
}
|
|
@@ -540,7 +541,7 @@ const CatCheckbox = class {
|
|
|
540
541
|
};
|
|
541
542
|
CatCheckbox.style = catCheckboxCss;
|
|
542
543
|
|
|
543
|
-
const catIconCss = ":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}span{display:inline-flex}svg{fill:currentColor;stroke:none;transform-origin:center center;
|
|
544
|
+
const catIconCss = ":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}span{display:inline-flex}svg{fill:currentColor;stroke:none;transform-origin:center center;height:1em;width:calc(var(--cat-icon-ratio, 1) * 1em)}.icon-xs svg{font-size:0.75rem}.icon-s svg{font-size:1rem}.icon-m svg{font-size:1.25rem}.icon-l svg{font-size:1.5rem}.icon-xl svg{font-size:1.75rem}";
|
|
544
545
|
|
|
545
546
|
const CatIcon = class {
|
|
546
547
|
constructor(hostRef) {
|
|
@@ -618,7 +619,8 @@ const CatInput = class {
|
|
|
618
619
|
this.type = 'text';
|
|
619
620
|
}
|
|
620
621
|
componentWillRender() {
|
|
621
|
-
|
|
622
|
+
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
623
|
+
if (!this.label && !this.hasSlottedLabel) {
|
|
622
624
|
loglevel.loglevel.error('[A11y] Missing ARIA label on input', this);
|
|
623
625
|
}
|
|
624
626
|
}
|
|
@@ -3033,7 +3035,8 @@ const CatRadio = class {
|
|
|
3033
3035
|
this.required = false;
|
|
3034
3036
|
}
|
|
3035
3037
|
componentWillRender() {
|
|
3036
|
-
|
|
3038
|
+
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
3039
|
+
if (!this.label && !this.hasSlottedLabel) {
|
|
3037
3040
|
loglevel.loglevel.error('[A11y] Missing ARIA label on radio', this);
|
|
3038
3041
|
}
|
|
3039
3042
|
}
|
|
@@ -4643,7 +4646,8 @@ const CatToggle = class {
|
|
|
4643
4646
|
this.required = false;
|
|
4644
4647
|
}
|
|
4645
4648
|
componentWillRender() {
|
|
4646
|
-
|
|
4649
|
+
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
4650
|
+
if (!this.label && !this.hasSlottedLabel) {
|
|
4647
4651
|
loglevel.loglevel.error('[A11y] Missing ARIA label on toggle', this);
|
|
4648
4652
|
}
|
|
4649
4653
|
}
|