@brightspace-ui/core 2.45.1 → 2.45.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.
|
@@ -61,9 +61,9 @@ To make your usage of `d2l-switch` accessible, use the following property:
|
|
|
61
61
|
|
|
62
62
|
## Visibility Switch [d2l-switch-visibility]
|
|
63
63
|
|
|
64
|
-
The
|
|
64
|
+
The d2l-switch-visibility component is a special variant for toggling the visibility of activities. Activities can be set to "on" but still not appear for users due to availability conditions. Therefore, the d2l-switch-visibility can display as "Hidden", "Visible", or "Visible. Conditions must be met" if a description of the conditions is provided.
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
See also [Visibility Switch with Conditions](https://daylight.d2l.dev/components/switch/#visibility-switch-with-conditions).
|
|
67
67
|
|
|
68
68
|
<!-- docs: demo live name:d2l-switch-visibility autoSize:false size:small -->
|
|
69
69
|
```html
|
|
@@ -93,9 +93,7 @@ It consists of 3 states: On ("Visible"), Off ("Hidden"), and On with Conditions
|
|
|
93
93
|
<!-- docs: end hidden content -->
|
|
94
94
|
|
|
95
95
|
### Visibility Switch with Conditions
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
Additional information can be added to the label by passing it into the `d2l-switch-visibility` element.
|
|
96
|
+
If an activity is set to `Visible` but also has other conditions affecting its visibility, information about the conditions can be passed in the default slot so it will be available in a tooltip.
|
|
99
97
|
|
|
100
98
|
<!-- docs: demo code autoSize:false size:large -->
|
|
101
99
|
```html
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.45.
|
|
3
|
+
"version": "2.45.2",
|
|
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",
|