@brightspace-ui/core 3.115.0 → 3.115.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.
@@ -1,14 +1,17 @@
|
|
1
1
|
import '../colors/colors.js';
|
2
2
|
import '../tooltip/tooltip.js';
|
3
|
-
import { css, html, LitElement, nothing } from 'lit';
|
3
|
+
import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
5
5
|
import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
|
6
|
+
import { getFlag } from '../../helpers/flags.js';
|
6
7
|
import { getUniqueId } from '../../helpers/uniqueId.js';
|
7
8
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
8
9
|
import { InputInlineHelpMixin } from './input-inline-help.js';
|
9
10
|
import { offscreenStyles } from '../offscreen/offscreen.js';
|
10
11
|
import { SkeletonMixin } from '../skeleton/skeleton-mixin.js';
|
11
12
|
|
13
|
+
const inputStyleTweaksEnabled = getFlag('input-style-tweaks', true);
|
14
|
+
|
12
15
|
export const cssSizes = {
|
13
16
|
inputBoxSize: 1.2,
|
14
17
|
checkboxMargin: 0.5,
|
@@ -133,14 +136,14 @@ class InputCheckbox extends InputInlineHelpMixin(FocusMixin(SkeletonMixin(LitEle
|
|
133
136
|
css`
|
134
137
|
:host {
|
135
138
|
display: block;
|
136
|
-
margin-
|
139
|
+
margin-block-end: ${unsafeCSS(inputStyleTweaksEnabled ? '0.6rem' : '0.9rem')}; /* stylelint-disable-line */
|
137
140
|
}
|
138
141
|
:host([hidden]) {
|
139
142
|
display: none;
|
140
143
|
}
|
141
144
|
:host([label-hidden]) {
|
142
145
|
display: inline-block;
|
143
|
-
margin-
|
146
|
+
margin-block-end: 0;
|
144
147
|
}
|
145
148
|
label {
|
146
149
|
display: flex;
|
@@ -181,7 +184,7 @@ class InputCheckbox extends InputInlineHelpMixin(FocusMixin(SkeletonMixin(LitEle
|
|
181
184
|
}
|
182
185
|
.d2l-input-checkbox-supporting {
|
183
186
|
display: none;
|
184
|
-
margin-block: 0.9rem;
|
187
|
+
margin-block-start: ${unsafeCSS(inputStyleTweaksEnabled ? '0.6rem' : '0.9rem')}; /* stylelint-disable-line */
|
185
188
|
}
|
186
189
|
.d2l-input-checkbox-supporting-visible {
|
187
190
|
display: block;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.115.
|
3
|
+
"version": "3.115.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",
|