@brightspace-ui/core 3.116.3 → 3.116.5
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/inputs/input-label-styles.js +7 -3
- package/components/inputs/sass/label.scss +7 -2
- package/components/tag-list/tag-list-item-mixin.js +1 -0
- package/components/tooltip/tooltip.js +2 -0
- package/components/typography/styles.js +1 -1
- package/components/typography/typography.js +1 -1
- package/package.json +1 -1
@@ -1,4 +1,7 @@
|
|
1
|
-
import { css } from 'lit';
|
1
|
+
import { css, unsafeCSS } from 'lit';
|
2
|
+
import { getFlag } from '../../helpers/flags.js';
|
3
|
+
|
4
|
+
const inputStyleTweaksEnabled = getFlag('input-style-tweaks', true);
|
2
5
|
|
3
6
|
export const inputLabelStyles = css`
|
4
7
|
.d2l-input-label {
|
@@ -7,8 +10,9 @@ export const inputLabelStyles = css`
|
|
7
10
|
font-size: 0.7rem;
|
8
11
|
font-weight: 700;
|
9
12
|
letter-spacing: 0.2px;
|
10
|
-
line-height: 1rem;
|
11
|
-
margin: 0 0 7px
|
13
|
+
line-height: ${unsafeCSS(inputStyleTweaksEnabled ? '0.9rem' : '1rem')}; /* stylelint-disable-line */
|
14
|
+
margin-block: 0 ${unsafeCSS(inputStyleTweaksEnabled ? '0.4rem' : '7px')}; /* stylelint-disable-line */
|
15
|
+
margin-inline: 0;
|
12
16
|
padding: 0;
|
13
17
|
}
|
14
18
|
:host([required]) .d2l-input-label::after,
|
@@ -4,10 +4,15 @@
|
|
4
4
|
font-size: 0.7rem;
|
5
5
|
font-weight: 700;
|
6
6
|
letter-spacing: 0.2px;
|
7
|
-
line-height:
|
7
|
+
line-height: 0.9rem;
|
8
8
|
margin: 0;
|
9
|
-
padding: 0 0
|
9
|
+
padding-block: 0 0.4rem;
|
10
|
+
padding-inline: 0;
|
10
11
|
width: 100%;
|
12
|
+
.d2l-typography.d2l-no-input-style-tweaks & {
|
13
|
+
line-height: 1rem;
|
14
|
+
padding-block-end: 7px;
|
15
|
+
}
|
11
16
|
}
|
12
17
|
|
13
18
|
@mixin d2l-input-label-required() {
|
@@ -564,6 +564,8 @@ class Tooltip extends RtlMixin(LitElement) {
|
|
564
564
|
|
565
565
|
// Compute the size of the spaces above, below, left and right and find which space to fit the tooltip in
|
566
566
|
const content = this._getContent();
|
567
|
+
if (content === null) return;
|
568
|
+
|
567
569
|
const spaces = this._computeAvailableSpaces(targetRect, spaceAround);
|
568
570
|
const space = await this._fitContentToSpace(content, spaces);
|
569
571
|
|
@@ -272,7 +272,7 @@ export const _generateLabelStyles = (selector) => {
|
|
272
272
|
font-size: 0.7rem;
|
273
273
|
font-weight: 700;
|
274
274
|
letter-spacing: 0.2px;
|
275
|
-
line-height: 1rem;
|
275
|
+
line-height: ${unsafeCSS(inputStyleTweaksEnabled ? '0.9rem' : '1rem')}; /* stylelint-disable-line */
|
276
276
|
}
|
277
277
|
:host([skeleton]) ${selector}.d2l-skeletize::before {
|
278
278
|
bottom: 0.25rem;
|
@@ -51,7 +51,7 @@ if (!document.head.querySelector('#d2l-typography-font-face')) {
|
|
51
51
|
|
52
52
|
.d2l-typography .d2l-label-text {
|
53
53
|
font-size: 0.7rem;
|
54
|
-
line-height: 1rem;
|
54
|
+
line-height: ${(inputStyleTweaksEnabled ? '0.9rem' : '1rem')};
|
55
55
|
font-weight: 700;
|
56
56
|
letter-spacing: 0.2px;
|
57
57
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.116.
|
3
|
+
"version": "3.116.5",
|
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",
|