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:
+1
-1
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user