@brightspace-ui/core 1.220.4 → 1.220.5
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.
|
@@ -126,6 +126,7 @@ If the dropdown is initially empty when it's opened, the dropdown pointer will n
|
|
|
126
126
|
| `disabled` | Boolean, default: `false` | Disables the dropdown opener |
|
|
127
127
|
| `no-auto-open` | Boolean, default: `false` | Prevents the dropdown from automatically on click or on key press |
|
|
128
128
|
| `open-on-hover` | Boolean, default: `false` | Optionally open dropdown on click or hover action |
|
|
129
|
+
| `h-align` | String | Possible values are undefined (default) or text. If text, aligns the button content to the leading edge of text |
|
|
129
130
|
<!-- docs: end hidden content -->
|
|
130
131
|
|
|
131
132
|
### Accessibility Properties
|
|
@@ -17,6 +17,13 @@ class DropdownButtonSubtle extends DropdownOpenerMixin(LitElement) {
|
|
|
17
17
|
* @type {string}
|
|
18
18
|
*/
|
|
19
19
|
description: { type: String },
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Aligns the leading edge of text if value is set to "text"
|
|
23
|
+
* @type {'text'|''}
|
|
24
|
+
*/
|
|
25
|
+
hAlign: { type: String, reflect: true, attribute: 'h-align' },
|
|
26
|
+
|
|
20
27
|
/**
|
|
21
28
|
* REQUIRED: Text for the button
|
|
22
29
|
* @type {string}
|
|
@@ -31,7 +38,7 @@ class DropdownButtonSubtle extends DropdownOpenerMixin(LitElement) {
|
|
|
31
38
|
|
|
32
39
|
render() {
|
|
33
40
|
return html`
|
|
34
|
-
<d2l-button-subtle description="${ifDefined(this.description)}" text=${this.text} icon="tier1:chevron-down" icon-right ?disabled=${this.disabled}></d2l-button-subtle>
|
|
41
|
+
<d2l-button-subtle description="${ifDefined(this.description)}" h-align="${ifDefined(this.hAlign)}" text=${this.text} icon="tier1:chevron-down" icon-right ?disabled=${this.disabled}></d2l-button-subtle>
|
|
35
42
|
<slot></slot>
|
|
36
43
|
`;
|
|
37
44
|
}
|
package/custom-elements.json
CHANGED
|
@@ -1686,6 +1686,11 @@
|
|
|
1686
1686
|
"description": "A description to be added to the opener button for accessibility when text on button does not provide enough context",
|
|
1687
1687
|
"type": "string"
|
|
1688
1688
|
},
|
|
1689
|
+
{
|
|
1690
|
+
"name": "h-align",
|
|
1691
|
+
"description": "Aligns the leading edge of text if value is set to \"text\"",
|
|
1692
|
+
"type": "'text'|''"
|
|
1693
|
+
},
|
|
1689
1694
|
{
|
|
1690
1695
|
"name": "text",
|
|
1691
1696
|
"description": "REQUIRED: Text for the button",
|
|
@@ -1717,6 +1722,12 @@
|
|
|
1717
1722
|
"description": "A description to be added to the opener button for accessibility when text on button does not provide enough context",
|
|
1718
1723
|
"type": "string"
|
|
1719
1724
|
},
|
|
1725
|
+
{
|
|
1726
|
+
"name": "hAlign",
|
|
1727
|
+
"attribute": "h-align",
|
|
1728
|
+
"description": "Aligns the leading edge of text if value is set to \"text\"",
|
|
1729
|
+
"type": "'text'|''"
|
|
1730
|
+
},
|
|
1720
1731
|
{
|
|
1721
1732
|
"name": "text",
|
|
1722
1733
|
"attribute": "text",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.220.
|
|
3
|
+
"version": "1.220.5",
|
|
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",
|