@fluid-topics/ft-input-helper-text 1.3.0 → 1.3.2

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.
@@ -6,6 +6,7 @@ export declare class FtdsInputHelperText extends FtLitElement implements FtdsInp
6
6
  helperText?: string;
7
7
  errorMessages: string[];
8
8
  warningMessages: string[];
9
+ ariaHidden: string;
9
10
  protected render(): import("lit-html").TemplateResult<1>;
10
11
  protected renderMessage(text: string, status: Status): import("lit-html").TemplateResult<1>;
11
12
  private toIconIdentifier;
@@ -18,10 +18,11 @@ class FtdsInputHelperText extends FtLitElement {
18
18
  super(...arguments);
19
19
  this.errorMessages = [];
20
20
  this.warningMessages = [];
21
+ this.ariaHidden = "true";
21
22
  }
22
23
  render() {
23
24
  return html `
24
- <ul class="ftds-input-helper-text" role="list">
25
+ <ul class="ftds-input-helper-text">
25
26
  ${repeat(this.errorMessages, (v) => this.renderMessage(v, Status.error))}
26
27
  ${repeat(this.warningMessages, (v) => this.renderMessage(v, Status.warning))}
27
28
  ${when((!this.errorMessages.length && !this.warningMessages.length && this.helperText), () => this.renderMessage(this.helperText, Status.default))}
@@ -68,4 +69,7 @@ __decorate([
68
69
  __decorate([
69
70
  property({ type: Array })
70
71
  ], FtdsInputHelperText.prototype, "warningMessages", void 0);
72
+ __decorate([
73
+ property({ reflect: true, attribute: "aria-hidden" })
74
+ ], FtdsInputHelperText.prototype, "ariaHidden", void 0);
71
75
  export { FtdsInputHelperText };
@@ -22,7 +22,7 @@ export const styles = css `
22
22
  position: relative;
23
23
  text-decoration: none;
24
24
  display: flex;
25
- align-items: flex-end;
25
+ align-items: baseline;
26
26
  color: ${FtdsInputHelperTextCssVariables.color};
27
27
  }
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-input-helper-text",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "A list of stylized helper text messages for form inputs",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.3.0",
22
+ "@fluid-topics/ft-wc-utils": "1.3.2",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-topics/ft-wc-test-utils": "1.3.0"
26
+ "@fluid-topics/ft-wc-test-utils": "1.3.2"
27
27
  },
28
- "gitHead": "cc982effbf27c0483e03961ad450fd2057a108b2"
28
+ "gitHead": "a583b0f740d044ef603e79b142f96dc74b993f11"
29
29
  }