@brightspace-ui/core 3.347.0 → 3.348.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.
|
@@ -21,7 +21,12 @@ class Toolbar extends PropertyRequiredMixin(LitElement) {
|
|
|
21
21
|
* ACCESSIBILITY: REQUIRED: Accessible label for the toolbar
|
|
22
22
|
* @type {string}
|
|
23
23
|
*/
|
|
24
|
-
label: { type: String, required: true }
|
|
24
|
+
label: { type: String, required: true },
|
|
25
|
+
/**
|
|
26
|
+
* Hides the border
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
*/
|
|
29
|
+
noBorder: { type: Boolean, reflect: true, attribute: 'no-border' }
|
|
25
30
|
};
|
|
26
31
|
|
|
27
32
|
static styles = css`
|
|
@@ -38,11 +43,16 @@ class Toolbar extends PropertyRequiredMixin(LitElement) {
|
|
|
38
43
|
gap: 4px;
|
|
39
44
|
padding-block-end: 4px;
|
|
40
45
|
}
|
|
46
|
+
:host([no-border]) .container {
|
|
47
|
+
border: none;
|
|
48
|
+
padding-block-end: 0;
|
|
49
|
+
}
|
|
41
50
|
`;
|
|
42
51
|
|
|
43
52
|
constructor() {
|
|
44
53
|
super();
|
|
45
54
|
this.label = '';
|
|
55
|
+
this.noBorder = false;
|
|
46
56
|
}
|
|
47
57
|
|
|
48
58
|
render() {
|
package/custom-elements.json
CHANGED
|
@@ -17874,12 +17874,18 @@
|
|
|
17874
17874
|
"description": "ACCESSIBILITY: REQUIRED: Accessible label for the toolbar",
|
|
17875
17875
|
"type": "string",
|
|
17876
17876
|
"default": "\"\""
|
|
17877
|
+
},
|
|
17878
|
+
{
|
|
17879
|
+
"name": "no-border",
|
|
17880
|
+
"description": "Hides the border",
|
|
17881
|
+
"type": "boolean",
|
|
17882
|
+
"default": "false"
|
|
17877
17883
|
}
|
|
17878
17884
|
],
|
|
17879
17885
|
"properties": [
|
|
17880
17886
|
{
|
|
17881
17887
|
"name": "styles",
|
|
17882
|
-
"default": "\"css`\\n\\t\\t:host {\\n\\t\\t\\tdisplay: inline-block;\\n\\t\\t}\\n\\t\\t:host([hidden]) {\\n\\t\\t\\tdisplay: none;\\n\\t\\t}\\n\\t\\t.container {\\n\\t\\t\\tborder-block-end: 1px solid var(--d2l-theme-border-color-standard);\\n\\t\\t\\tdisplay: flex;\\n\\t\\t\\tflex-wrap: wrap;\\n\\t\\t\\tgap: 4px;\\n\\t\\t\\tpadding-block-end: 4px;\\n\\t\\t}\\n\\t`\""
|
|
17888
|
+
"default": "\"css`\\n\\t\\t:host {\\n\\t\\t\\tdisplay: inline-block;\\n\\t\\t}\\n\\t\\t:host([hidden]) {\\n\\t\\t\\tdisplay: none;\\n\\t\\t}\\n\\t\\t.container {\\n\\t\\t\\tborder-block-end: 1px solid var(--d2l-theme-border-color-standard);\\n\\t\\t\\tdisplay: flex;\\n\\t\\t\\tflex-wrap: wrap;\\n\\t\\t\\tgap: 4px;\\n\\t\\t\\tpadding-block-end: 4px;\\n\\t\\t}\\n\\t\\t:host([no-border]) .container {\\n\\t\\t\\tborder: none;\\n\\t\\t\\tpadding-block-end: 0;\\n\\t\\t}\\n\\t`\""
|
|
17883
17889
|
},
|
|
17884
17890
|
{
|
|
17885
17891
|
"name": "label",
|
|
@@ -17887,6 +17893,13 @@
|
|
|
17887
17893
|
"description": "ACCESSIBILITY: REQUIRED: Accessible label for the toolbar",
|
|
17888
17894
|
"type": "string",
|
|
17889
17895
|
"default": "\"\""
|
|
17896
|
+
},
|
|
17897
|
+
{
|
|
17898
|
+
"name": "noBorder",
|
|
17899
|
+
"attribute": "no-border",
|
|
17900
|
+
"description": "Hides the border",
|
|
17901
|
+
"type": "boolean",
|
|
17902
|
+
"default": "false"
|
|
17890
17903
|
}
|
|
17891
17904
|
],
|
|
17892
17905
|
"slots": [
|
|
@@ -171,7 +171,9 @@ The localized value of [these common terms](https://github.com/BrightspaceUI/int
|
|
|
171
171
|
Example:
|
|
172
172
|
|
|
173
173
|
```javascript
|
|
174
|
-
|
|
174
|
+
render() {
|
|
175
|
+
return html`<button>${this.localizeCommon('actions:save')}</button>`;
|
|
176
|
+
}
|
|
175
177
|
```
|
|
176
178
|
|
|
177
179
|
#### localizeCharacter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.348.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",
|