Skip to content

Commit 2c953f6

Browse files
feat(js): update reset icon
1 parent b828171 commit 2c953f6

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

packages/autocomplete-js/src/__tests__/autocomplete.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,15 @@ describe('autocomplete-js', () => {
136136
>
137137
<svg
138138
class="aa-ResetIcon"
139+
fill="currentColor"
139140
height="20"
140141
viewBox="0 0 20 20"
141142
width="20"
142143
>
143144
<path
144-
d="M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z"
145-
fill="none"
145+
clip-rule="evenodd"
146+
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
146147
fill-rule="evenodd"
147-
stroke="currentColor"
148-
stroke-linecap="round"
149-
stroke-linejoin="round"
150-
stroke-width="1.4"
151148
/>
152149
</svg>
153150
</button>

packages/autocomplete-js/src/components/ResetIcon.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,15 @@ export const ResetIcon: Component<{}, SVGSVGElement> = () => {
66
element.setAttribute('viewBox', '0 0 20 20');
77
element.setAttribute('width', '20');
88
element.setAttribute('height', '20');
9+
element.setAttribute('fill', 'currentColor');
910

1011
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
1112
path.setAttribute(
1213
'd',
13-
'M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z'
14+
'M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z'
1415
);
15-
path.setAttribute('stroke', 'currentColor');
16-
path.setAttribute('fill', 'none');
1716
path.setAttribute('fill-rule', 'evenodd');
18-
path.setAttribute('stroke-width', '1.4');
19-
path.setAttribute('stroke-linecap', 'round');
20-
path.setAttribute('stroke-linejoin', 'round');
17+
path.setAttribute('clip-rule', 'evenodd');
2118

2219
element.appendChild(path);
2320

0 commit comments

Comments
 (0)