@brightspace-ui/core 1.235.0 → 1.235.3

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.
@@ -33,10 +33,10 @@ Alerts communicate critical information relating to the state of the system and
33
33
 
34
34
  <d2l-button id="open" style="align-self:center;display:none;">Show Alerts</d2l-button>
35
35
  <d2l-alert id="alert" type="default" button-text="Undo" has-close-button>
36
- A message.
36
+ An inline alert message.
37
37
  </d2l-alert>
38
38
  <d2l-alert-toast id="alert-toast" type="success" open no-auto-close>
39
- A message.
39
+ A toast alert message.
40
40
  </d2l-alert-toast>
41
41
  ```
42
42
 
@@ -3,6 +3,7 @@ import { css, LitElement } from 'lit-element/lit-element.js';
3
3
  import { HtmlAttributeObserverController } from '../../controllers/attributeObserver/htmlAttributeObserverController.js';
4
4
  import { HtmlBlockMathRenderer } from '../../helpers/mathjax.js';
5
5
  import { requestInstance } from '../../mixins/provider-mixin.js';
6
+ import { RtlMixin } from '../../mixins/rtl-mixin.js';
6
7
 
7
8
  export const htmlBlockContentStyles = css`
8
9
  .d2l-html-block-compact {
@@ -120,7 +121,7 @@ const getRenderers = () => {
120
121
  * A component for displaying user-authored HTML.
121
122
  * @slot - Provide your user-authored HTML
122
123
  */
123
- class HtmlBlock extends LitElement {
124
+ class HtmlBlock extends RtlMixin(LitElement) {
124
125
 
125
126
  static get properties() {
126
127
  return {
@@ -193,6 +193,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
193
193
  .d2l-list-item-actions-container {
194
194
  padding: 0.55rem 0;
195
195
  }
196
+
196
197
  ::slotted([slot="actions"]),
197
198
  .d2l-list-item-actions * {
198
199
  display: grid;
@@ -202,6 +203,16 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
202
203
  margin: 0.15rem 0;
203
204
  }
204
205
 
206
+ .d2l-list-item-content-extend-separators ::slotted([slot="actions"]),
207
+ .d2l-list-item-content-extend-separators .d2l-list-item-actions * {
208
+ margin-right: 0.9rem;
209
+ }
210
+ :host([dir="rtl"]) .d2l-list-item-content-extend-separators ::slotted([slot="actions"]),
211
+ :host([dir="rtl"]) .d2l-list-item-content-extend-separators .d2l-list-item-actions * {
212
+ margin-left: 0.9rem;
213
+ margin-right: 0;
214
+ }
215
+
205
216
  [data-breakpoint="1"] ::slotted([slot="illustration"]),
206
217
  [data-breakpoint="1"] .d2l-list-item-illustration * {
207
218
  margin-right: 1rem;
@@ -32,7 +32,7 @@ The `d2l-switch` element is a generic switch with on/off semantics.
32
32
  ![Switch](./screenshots/switch.png?raw=true)
33
33
  <!-- docs: end hidden content -->
34
34
 
35
- <!-- docs: demo live name:d2l-switch -->
35
+ <!-- docs: demo live name:d2l-switch autoSize:false size:small -->
36
36
  ```html
37
37
  <script type="module">
38
38
  import '@brightspace-ui/core/components/switch/switch.js';
@@ -71,7 +71,7 @@ The `d2l-switch-visibility` element is a variant of the generic switch configure
71
71
  ![Visibility Switch](./screenshots/switch-visibility.png?raw=true)
72
72
  <!-- docs: end hidden content -->
73
73
 
74
- <!-- docs: demo live name:d2l-switch-visibility -->
74
+ <!-- docs: demo live name:d2l-switch-visibility autoSize:false size:small -->
75
75
  ```html
76
76
  <script type="module">
77
77
  import '@brightspace-ui/core/components/switch/switch-visibility.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.235.0",
3
+ "version": "1.235.3",
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",