@firestitch/style 18.0.69 → 18.0.70

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": "@firestitch/style",
3
- "version": "18.0.69",
3
+ "version": "18.0.70",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-style"
@@ -66,11 +66,17 @@
66
66
  }
67
67
  }
68
68
 
69
- // Outline's focused border is 2px; the inset shadow adds the second
70
- // pixel so the field doesn't reflow
69
+ // Outline's focused border is 2px. Drawing it as a CSS outline with a
70
+ // matching negative offset lays the 2px band flush *inside* the wrapper's
71
+ // resting edge — outlines never occupy layout space, so the field keeps
72
+ // the exact same width, height and position focused or not, and nothing
73
+ // around it moves. The 1px border underneath is painted over by the
74
+ // outline; it stays set to the focus color so the corner arcs still read
75
+ // correctly if a browser rounds the outline radius differently.
71
76
  &.mat-focused .mat-mdc-text-field-wrapper {
72
77
  border-color: var(--mdc-outlined-text-field-focus-outline-color, var(--mat-form-field-outlined-focus-outline-color));
73
- box-shadow: inset 0 0 0 1px var(--mdc-outlined-text-field-focus-outline-color, var(--mat-form-field-outlined-focus-outline-color));
78
+ outline: 2px solid var(--mdc-outlined-text-field-focus-outline-color, var(--mat-form-field-outlined-focus-outline-color));
79
+ outline-offset: -2px;
74
80
  }
75
81
 
76
82
  &.mat-form-field-invalid {
@@ -84,7 +90,7 @@
84
90
 
85
91
  &.mat-focused .mat-mdc-text-field-wrapper {
86
92
  border-color: var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-form-field-outlined-error-focus-outline-color));
87
- box-shadow: inset 0 0 0 1px var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-form-field-outlined-error-focus-outline-color));
93
+ outline-color: var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-form-field-outlined-error-focus-outline-color));
88
94
  }
89
95
  }
90
96