diff --git a/config/templates/design/src/box.mjs b/config/templates/design/src/box.mjs index 5ec2aa8aea9..42e3c4c7bf1 100644 --- a/config/templates/design/src/box.mjs +++ b/config/templates/design/src/box.mjs @@ -16,10 +16,7 @@ function draftBox({ options, Point, Path, points, paths, Snippet, snippets, sa, points.logo = points.topLeft.shiftFractionTowards(points.bottomRight, 0.5) snippets.logo = new Snippet('logo', points.logo) - points.text = points.logo - .shift(-90, w / 8) - .attr('data-text', 'hello') - .attr('data-text-class', 'center') + points.text = points.logo.shift(-90, w / 8).addText('hello', 'center') if (sa) { paths.sa = paths.seam.offset(sa).addClass('fabric sa')