@oardi/css-utils 0.35.2 → 0.36.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oardi/css-utils",
3
- "version": "0.35.2",
3
+ "version": "0.36.0",
4
4
  "author": "Ardian Shala",
5
5
  "homepage": "https://css-utils.oardi.com",
6
6
  "description": "Powerful set of semantic css classes with support for breakpoints, directions and spacings",
@@ -30,7 +30,7 @@
30
30
  outline-offset: var(--focus-offset);
31
31
  }
32
32
 
33
- &.invalid {
33
+ &.is-invalid {
34
34
  color: var(--error);
35
35
  border-color: var(--error) !important;
36
36
  padding-right: calc(1.5em + 0.75rem) !important;
@@ -97,7 +97,7 @@ textarea.form-control {
97
97
  transform: rotate(45deg);
98
98
  }
99
99
 
100
- &.invalid {
100
+ &.is-invalid {
101
101
  border-color: var(--error) !important;
102
102
 
103
103
  &:focus {
@@ -148,3 +148,18 @@ textarea.form-control {
148
148
  cursor: pointer;
149
149
  }
150
150
  }
151
+
152
+ .is-invalid ~ .invalid-feedback,
153
+ .is-invalid ~ .invalid-tooltip,
154
+ .was-validated :invalid ~ .invalid-feedback,
155
+ .was-validated :invalid ~ .invalid-tooltip {
156
+ display: block;
157
+ }
158
+
159
+ .invalid-feedback {
160
+ display: none;
161
+ width: 100%;
162
+ margin-top: 0.25rem;
163
+ font-size: 0.875em;
164
+ color: var(--error);
165
+ }