@npm_leadtech/legal-contracts-ui 0.190.501 → 0.190.503
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.
|
@@ -33,10 +33,12 @@ var m = ({ uploadPromptText: m, addDocumentLabel: h, fileSizeText: g, disclaimer
|
|
|
33
33
|
e !== void 0 && N !== null && N !== e && j.current?.focus(), M.current = N;
|
|
34
34
|
}, [N]);
|
|
35
35
|
let F = N ? /* @__PURE__ */ l("div", {
|
|
36
|
+
ref: j,
|
|
37
|
+
tabIndex: -1,
|
|
36
38
|
role: "alert",
|
|
37
39
|
"aria-live": "assertive",
|
|
38
40
|
"data-qa": E ? `${E}_error` : "upload-document-error",
|
|
39
|
-
className: "flex flex-col items-center gap-3",
|
|
41
|
+
className: "flex flex-col items-center gap-3 outline-none",
|
|
40
42
|
children: [
|
|
41
43
|
/* @__PURE__ */ c(t, {
|
|
42
44
|
"aria-hidden": "true",
|
|
@@ -48,10 +50,9 @@ var m = ({ uploadPromptText: m, addDocumentLabel: h, fileSizeText: g, disclaimer
|
|
|
48
50
|
children: f(N, P)
|
|
49
51
|
}),
|
|
50
52
|
/* @__PURE__ */ c(i, {
|
|
51
|
-
ref: j,
|
|
52
53
|
dataQa: E ? `${E}_error_action` : void 0,
|
|
53
54
|
variant: "secondary-red",
|
|
54
|
-
className: "w-fit",
|
|
55
|
+
className: "w-fit px-[15px] py-[9px]",
|
|
55
56
|
onClick: () => {
|
|
56
57
|
if (k) {
|
|
57
58
|
k();
|
package/dist/globals.css
CHANGED
|
@@ -280,9 +280,11 @@ body {
|
|
|
280
280
|
@apply btn-base border-error-500 text-error-500 hover:bg-error-25 border-2 bg-transparent font-semibold disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
/* btn-base fija el focus ring en primary
|
|
283
|
+
/* btn-base fija el focus ring en primary y un offset blanco: en los CTAs de error ambos deben
|
|
284
|
+
compartir token y quedar pegados al borde para no dibujar un doble margen. */
|
|
284
285
|
.btn-secondary-red:focus-visible {
|
|
285
286
|
--tw-ring-color: var(--error-500);
|
|
287
|
+
--tw-ring-offset-width: 0px;
|
|
286
288
|
}
|
|
287
289
|
|
|
288
290
|
@utility btn-secondary-black {
|