@linzjs/lui 17.44.0 → 17.45.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.
@@ -53,10 +53,7 @@
53
53
  display: block;
54
54
  }
55
55
 
56
- &.hasError {
57
- textarea {
58
- border: 1px solid colors.$error;
59
- }
56
+ &.hasError, &.hasWarning {
60
57
  .LuiTextAreaInput-wrapper {
61
58
  position: relative;
62
59
 
@@ -74,6 +71,28 @@
74
71
  }
75
72
  }
76
73
 
74
+ &.hasError {
75
+ textarea {
76
+ border: 1px solid colors.$error;
77
+ }
78
+ .LuiTextAreaInput-wrapper {
79
+ &:before {
80
+ background-color: colors.$error;
81
+ }
82
+ }
83
+ }
84
+
85
+ &.hasWarning {
86
+ textarea {
87
+ border: 1px solid colors.$warning;
88
+ }
89
+ .LuiTextAreaInput-wrapper {
90
+ &:before {
91
+ background-color: colors.$warning;
92
+ }
93
+ }
94
+ }
95
+
77
96
  &.isDisabled {
78
97
  textarea {
79
98
  border-color: colors.$silver;
@@ -88,10 +107,9 @@
88
107
  position: relative;
89
108
  }
90
109
 
91
- .LuiTextAreaInput-error {
110
+ .LuiTextAreaInput-error, .LuiTextAreaInput-warning {
92
111
  position: relative;
93
112
  display: flex;
94
- color: colors.$error;
95
113
  @include fonts.font-semibold;
96
114
  text-align: left;
97
115
  padding-left: spacing.$unit-md;
@@ -100,7 +118,11 @@
100
118
  margin-top: spacing.$unit-xxs;
101
119
  }
102
120
 
103
- .LuiTextAreaInput-error-icon {
121
+ .LuiTextAreaInput-error {
122
+ color: colors.$error;
123
+ }
124
+
125
+ .LuiTextAreaInput-error-icon, .LuiTextAreaInput-warning-icon {
104
126
  position: absolute;
105
127
  left: 0;
106
128
  top: 2px;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.44.0",
2
+ "version": "17.45.0",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",