@brightspace-ui/core 3.253.4 → 3.254.1
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.
- package/components/card/card.js +5 -13
- package/lang/ca.js +3 -3
- package/package.json +1 -1
package/components/card/card.js
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
import '../colors/colors.js';
|
|
2
2
|
import { css, html, LitElement, nothing } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
-
import { getFlag } from '../../helpers/flags.js';
|
|
5
4
|
import { getFocusRingStyles } from '../../helpers/focus.js';
|
|
6
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
7
6
|
import { offscreenStyles } from '../offscreen/offscreen.js';
|
|
8
7
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
9
8
|
|
|
10
|
-
const GAUD_8697_FEATURE_FLAG = getFlag('GAUD-8697-card-badge-center-flag', true);
|
|
11
|
-
|
|
12
|
-
// TODO: move this css statement to where this function is being called, when the FF is removed
|
|
13
|
-
const getCenterCardBadgeCSS = () => {
|
|
14
|
-
return css`
|
|
15
|
-
:host([align-center]) .d2l-card-badge {
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
}`;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
9
|
/**
|
|
22
10
|
* A container element that provides specific layout using several slots.
|
|
23
11
|
* @slot content - Slot for primary content such as title and supplementary info (no actionable elements)
|
|
@@ -148,7 +136,11 @@ class Card extends LitElement {
|
|
|
148
136
|
text-align: center;
|
|
149
137
|
}
|
|
150
138
|
|
|
151
|
-
|
|
139
|
+
:host([align-center]) .d2l-card-badge {
|
|
140
|
+
display: flex;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
}
|
|
143
|
+
|
|
152
144
|
.d2l-card-footer-hidden .d2l-card-content {
|
|
153
145
|
padding-bottom: 1.2rem;
|
|
154
146
|
}
|
package/lang/ca.js
CHANGED
|
@@ -152,8 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "més",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Element de marcador de posició",
|
|
154
154
|
"components.overflow-group.moreActions": "Més accions",
|
|
155
|
-
"components.page.header-nav-label": "
|
|
156
|
-
"components.page.side-nav-label": "
|
|
155
|
+
"components.page.header-nav-label": "Principal",
|
|
156
|
+
"components.page.side-nav-label": "Lateral",
|
|
157
157
|
"components.pageable.info":
|
|
158
158
|
`{count, plural,
|
|
159
159
|
one {{countFormatted} element}
|
|
@@ -185,7 +185,7 @@ export default {
|
|
|
185
185
|
"components.selection.selected": "{count} seleccionats",
|
|
186
186
|
"components.selection.selected-plus": "{count}+ seleccionats",
|
|
187
187
|
"components.selection-controls.label": "Accions per a la selecció",
|
|
188
|
-
"components.skip-nav.skipToMainContent": "
|
|
188
|
+
"components.skip-nav.skipToMainContent": "saltar al contingut principal",
|
|
189
189
|
"components.sort.label": "Ordena",
|
|
190
190
|
"components.sort.text": "Ordena: {selectedItemText}",
|
|
191
191
|
"components.switch.conditions": "Cal complir les condicions",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.254.1",
|
|
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",
|