@brightspace-ui/core 2.77.1 → 2.77.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.
|
@@ -5,6 +5,7 @@ import { classMap } from 'lit/directives/class-map.js';
|
|
|
5
5
|
import { createHtmlBlockRenderer as createMathRenderer } from '../../helpers/mathjax.js';
|
|
6
6
|
import { HtmlAttributeObserverController } from '../../controllers/attributeObserver/htmlAttributeObserverController.js';
|
|
7
7
|
import { requestInstance } from '../../mixins/provider-mixin.js';
|
|
8
|
+
import { RtlMixin } from '../../mixins/rtl-mixin.js';
|
|
8
9
|
|
|
9
10
|
export const htmlBlockContentStyles = css`
|
|
10
11
|
.d2l-html-block-rendered {
|
|
@@ -130,7 +131,7 @@ const getRenderers = async() => {
|
|
|
130
131
|
* A component for displaying user-authored HTML.
|
|
131
132
|
* @slot - Provide your user-authored HTML
|
|
132
133
|
*/
|
|
133
|
-
class HtmlBlock extends LitElement {
|
|
134
|
+
class HtmlBlock extends RtlMixin(LitElement) {
|
|
134
135
|
|
|
135
136
|
static get properties() {
|
|
136
137
|
return {
|
|
@@ -163,7 +164,7 @@ class HtmlBlock extends LitElement {
|
|
|
163
164
|
:host {
|
|
164
165
|
display: block;
|
|
165
166
|
overflow-wrap: break-word;
|
|
166
|
-
text-align:
|
|
167
|
+
text-align: left;
|
|
167
168
|
}
|
|
168
169
|
:host([inline]),
|
|
169
170
|
:host([inline]) .d2l-html-block-rendered {
|
|
@@ -177,6 +178,9 @@ class HtmlBlock extends LitElement {
|
|
|
177
178
|
:host([no-deferred-rendering]) slot {
|
|
178
179
|
display: contents;
|
|
179
180
|
}
|
|
181
|
+
:host([dir="rtl"]) {
|
|
182
|
+
text-align: right;
|
|
183
|
+
}
|
|
180
184
|
`];
|
|
181
185
|
}
|
|
182
186
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.77.
|
|
3
|
+
"version": "2.77.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",
|