Problem: offset work opposite of intuition

Solution:
- it happen as css think it like offseting the view on dasharray, so it moves backward, as I get it.
- But in our context better make it intuitive... so multiply by -1 to slide the line itself. (to the right).
This commit is contained in:
2026-09-08 19:21:16 +03:00
parent 3579893ca4
commit c64c10e329
+1 -1
View File
@@ -238,7 +238,7 @@ const dashedBorderPlugin: ReturnType<typeof plugin> = plugin(
"stroke-width": "var(--tw-dashed-border-width)", "stroke-width": "var(--tw-dashed-border-width)",
"stroke-dasharray": "stroke-dasharray":
"var(--tw-dashed-border-length) var(--tw-dashed-border-gap)", "var(--tw-dashed-border-length) var(--tw-dashed-border-gap)",
"stroke-dashoffset": "var(--tw-dashed-border-offset)", "stroke-dashoffset": "calc(-1 * var(--tw-dashed-border-offset))",
"vector-effect": "non-scaling-stroke", "vector-effect": "non-scaling-stroke",
x: INSET, x: INSET,
y: INSET, y: INSET,