@brightspace-ui/core 2.57.0 → 2.58.0

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.
@@ -56,6 +56,7 @@ For text searches use `<d2l-input-search>`, which wraps the native `<input type=
56
56
  | Property | Type | Description |
57
57
  |---|---|---|
58
58
  | `label` | String, required | Accessible label for the input |
59
+ | `description` | String | Additional information communicated in the `aria-describedby` on the input |
59
60
  | `disabled` | Boolean | Disables the input |
60
61
  | `maxlength` | Number | Imposes an upper character limit |
61
62
  | `no-clear` | Boolean | Prevents the "clear" button from appearing |
@@ -82,4 +83,5 @@ To make your usage of `d2l-input-search` accessible, use the following property
82
83
 
83
84
  | Attribute | Description |
84
85
  |---|---|
86
+ | `description` | Use when label on input does not provide enough context. |
85
87
  | label | **REQUIRED** [Acts as a primary label on the input](https://www.w3.org/WAI/tutorials/forms/labels/). Not visible. |
@@ -16,6 +16,11 @@ class InputSearch extends FocusMixin(LocalizeCoreElement(RtlMixin(LitElement)))
16
16
 
17
17
  static get properties() {
18
18
  return {
19
+ /**
20
+ * Additional information communicated in the aria-describedby on the input
21
+ * @type {string}
22
+ */
23
+ description: { type: String, reflect: true },
19
24
  /**
20
25
  * Disables the input
21
26
  * @type {boolean}
@@ -115,6 +120,7 @@ class InputSearch extends FocusMixin(LocalizeCoreElement(RtlMixin(LitElement)))
115
120
  <d2l-input-text
116
121
  label="${ifDefined(this.label)}"
117
122
  label-hidden
123
+ description="${this.description}"
118
124
  ?disabled="${this.disabled}"
119
125
  @input="${this._handleInput}"
120
126
  @keypress="${this._handleInputKeyPress}"
@@ -5797,6 +5797,11 @@
5797
5797
  "path": "./components/inputs/input-search.js",
5798
5798
  "description": "This component wraps the native \"<input type=\"search\">\"\" element and is for text searching.",
5799
5799
  "attributes": [
5800
+ {
5801
+ "name": "description",
5802
+ "description": "Additional information communicated in the aria-describedby on the input",
5803
+ "type": "string"
5804
+ },
5800
5805
  {
5801
5806
  "name": "label",
5802
5807
  "description": "REQUIRED: Accessible label for the input",
@@ -5832,6 +5837,12 @@
5832
5837
  }
5833
5838
  ],
5834
5839
  "properties": [
5840
+ {
5841
+ "name": "description",
5842
+ "attribute": "description",
5843
+ "description": "Additional information communicated in the aria-describedby on the input",
5844
+ "type": "string"
5845
+ },
5835
5846
  {
5836
5847
  "name": "label",
5837
5848
  "attribute": "label",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.57.0",
3
+ "version": "2.58.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",