@linzjs/lui 11.2.0 → 11.3.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.
@@ -8,6 +8,7 @@
8
8
  display: flex;
9
9
  flex-direction: column;
10
10
  padding: 1rem;
11
+ background-color: luiColors.$white;
11
12
 
12
13
  @include breakpoint(md) {
13
14
  flex-direction: row;
@@ -32,7 +33,7 @@
32
33
  .LuiFormSectionHeader-details {
33
34
  padding: 0;
34
35
  width: 100%;
35
- background-color: white;
36
+ background-color: luiColors.$white;
36
37
  flex-grow: 2;
37
38
 
38
39
  @include breakpoint(md) {
@@ -3,17 +3,32 @@
3
3
  @use './SpacingVars.scss' as spacing;
4
4
  @use './ColorVars.scss' as colors;
5
5
  @use './FontVars.scss' as fonts;
6
+ @use '../Utilities/REM.scss' as rem;
6
7
 
7
8
  $label-spacing: spacing.$unit-md; // 24px
8
9
  $input-spacing: spacing.$unit-xs; // 8px
9
10
 
10
- $label-font-size: 14px;
11
- $label-line-height: 24px;
11
+ $label-font-size: rem.rem(14px);
12
+ $label-line-height: spacing.$unit-md;
12
13
 
13
- @mixin font-label {
14
+ @mixin formLabel {
14
15
  @include fonts.font-semibold();
16
+ margin-bottom: $input-spacing;
15
17
  font-size: $label-font-size;
16
18
  line-height: $label-line-height;
19
+ color: colors.$charcoal;
20
+ }
21
+
22
+ @mixin formPlaceholder {
23
+ &::placeholder {
24
+ font-weight: normal;
25
+ color: colors.$input-placeholder;
26
+ opacity: 1; // Because firefox is cool
27
+
28
+ .isDisabled & {
29
+ color: colors.$input-placeholder-when-disabled;
30
+ }
31
+ }
17
32
  }
18
33
 
19
34
  $input-width: spacing.$unit-md;
@@ -123,7 +123,8 @@ $base-type-color: $charcoal;
123
123
 
124
124
  // Icons, inputs & radio/checkboxes
125
125
  $input-text: $charcoal;
126
- $input-placeholder: $gray;
126
+ $input-placeholder: $fuscous;
127
+ $input-placeholder-when-disabled: $gray;
127
128
  $base-icon-color: $sea;
128
129
  $disabled-color: $gray;
129
130
  $disabled-color-dark: $gray;
@@ -17,7 +17,8 @@
17
17
  /////////////////////////////////////////
18
18
 
19
19
  // Buttons
20
- @forward "./Elements/Buttons/buttons-linz.scss"; // Load non Lui scss files - these are specific element builds that the UX team have created for their individual needs.
20
+ @forward "./Elements/Buttons/buttons-linz.scss";
21
+ // Load non Lui scss files - these are specific element builds that the UX team have created for their individual needs.
21
22
  @forward "./Elements/Buttons/buttons.scss";
22
23
 
23
24
  // Forms
@@ -67,4 +68,4 @@
67
68
  @forward "./Components/LuiTabs/LuiTabs.scss";
68
69
 
69
70
  // LuiIcon
70
- @forward "./Components/LuiIcon/LuiIcons.scss";
71
+ @forward "./Components/LuiIcon/LuiIcons.scss";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "11.2.0",
2
+ "version": "11.3.1",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",