@brightspace-ui/core 2.154.1 → 2.155.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.
@@ -29,6 +29,16 @@
|
|
29
29
|
</template>
|
30
30
|
</d2l-demo-snippet>
|
31
31
|
|
32
|
+
<h2>Web Component Using Styles - Forced LTR Container</h2>
|
33
|
+
<d2l-demo-snippet>
|
34
|
+
<template>
|
35
|
+
<span dir="ltr">
|
36
|
+
<p>Some off-screen content:</p>
|
37
|
+
<d2l-offscreen-demo></d2l-offscreen-demo>
|
38
|
+
</span>
|
39
|
+
</template>
|
40
|
+
</d2l-demo-snippet>
|
41
|
+
|
32
42
|
</d2l-demo-page>
|
33
43
|
</body>
|
34
44
|
</html>
|
@@ -1,19 +1,20 @@
|
|
1
1
|
import { css, html, LitElement } from 'lit';
|
2
2
|
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
const offscreenStyleDeclarations = css`
|
5
|
+
direction: var(--d2l-document-direction, ${document.dir === 'rtl' ? css`rtl` : css`ltr`});
|
6
6
|
height: 1px;
|
7
7
|
inset-inline-start: -10000px;
|
8
|
-
left: -10000px;
|
8
|
+
${document.dir === 'rtl' ? css`right` : css`left`}: -10000px;
|
9
9
|
overflow: hidden;
|
10
10
|
position: absolute !important;
|
11
11
|
white-space: nowrap;
|
12
12
|
width: 1px;
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
`;
|
14
|
+
|
15
|
+
export const offscreenStyles = css`
|
16
|
+
.d2l-offscreen {
|
17
|
+
${offscreenStyleDeclarations}
|
17
18
|
}
|
18
19
|
`;
|
19
20
|
|
@@ -25,17 +26,7 @@ class Offscreen extends RtlMixin(LitElement) {
|
|
25
26
|
static get styles() {
|
26
27
|
return css`
|
27
28
|
:host {
|
28
|
-
|
29
|
-
inset-inline-start: -10000px;
|
30
|
-
left: -10000px;
|
31
|
-
overflow: hidden;
|
32
|
-
position: absolute !important;
|
33
|
-
white-space: nowrap;
|
34
|
-
width: 1px;
|
35
|
-
}
|
36
|
-
:host([dir="rtl"]) {
|
37
|
-
left: 0;
|
38
|
-
right: -10000px;
|
29
|
+
${offscreenStyleDeclarations}
|
39
30
|
}
|
40
31
|
`;
|
41
32
|
}
|
@@ -10,6 +10,14 @@ if (!document.head.querySelector('#d2l-typography-font-face')) {
|
|
10
10
|
const style = document.createElement('style');
|
11
11
|
style.id = 'd2l-typography-font-face';
|
12
12
|
style.textContent = `
|
13
|
+
* {
|
14
|
+
--d2l-document-direction: ltr;
|
15
|
+
}
|
16
|
+
|
17
|
+
html[dir="rtl"] * {
|
18
|
+
--d2l-document-direction: rtl;
|
19
|
+
}
|
20
|
+
|
13
21
|
@font-face {
|
14
22
|
font-family: 'Lato';
|
15
23
|
font-style: normal;
|
package/lang/hi.js
CHANGED
@@ -21,7 +21,7 @@ export default {
|
|
21
21
|
"components.filter.filters": "फ़िल्टर्स",
|
22
22
|
"components.filter.noFilters": "कोई उपलब्ध फ़िल्टर्स नहीं",
|
23
23
|
"components.filter.searchResults": "{number, plural, =0 {कोई खोज परिणाम नहीं} one {{number} खोज परिणाम} other {{number} खोज परिणाम}}",
|
24
|
-
"components.filter.selectedFirstListLabel": "{headerText}. चुने गए
|
24
|
+
"components.filter.selectedFirstListLabel": "{headerText}. चुने गए फ़िल्टर सबसे पहले दिखाई देते हैं।",
|
25
25
|
"components.filter.singleDimensionDescription": "इसके अनुसार फ़िल्टर करें: {filterName}",
|
26
26
|
"components.form-element.defaultError": "{label} अमान्य है।",
|
27
27
|
"components.form-element.defaultFieldLabel": "फ़ील्ड",
|
package/lang/nl.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export default {
|
2
2
|
"components.alert.close": "Waarschuwing sluiten",
|
3
|
-
"components.breadcrumbs.breadcrumb": "
|
3
|
+
"components.breadcrumbs.breadcrumb": "Kruimelpad",
|
4
4
|
"components.calendar.notSelected": "Niet geselecteerd.",
|
5
5
|
"components.calendar.selected": "Geselecteerd.",
|
6
6
|
"components.calendar.show": "{month} weergeven",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.155.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",
|