Skip to content

Commit 7a0bdca

Browse files
committed
fix icons with stroke
1 parent ca962ad commit 7a0bdca

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

resources/js/components/ui/Icon.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
</script>
1515

1616
<template>
17-
<svg fill="currentColor" :viewBox="svg?.getAttribute('viewBox')" aria-hidden="true" v-html="svg?.innerHTML ?? '<\!-- Undefined icon -->'"></svg>
17+
<svg v-bind="Object.fromEntries([...svg?.attributes ?? []].map(attr => [attr.name, attr.value]))"
18+
aria-hidden="true"
19+
v-html="svg?.innerHTML ?? '<\!-- Undefined icon -->'"
20+
></svg>
1821
</template>
1922

tests-e2e/tests/entity-list.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,14 @@ function entityListSuite(test: TestType<PlaywrightTestArgs & PlaywrightTestOptio
398398
await expect(tbody).not.toHaveText(initialTextContent);
399399
await expect(tbody).toHaveText(reorderedTextContent);
400400
});
401+
test('quick creation form', async ({ page, init, goto, reload }) => {
402+
await init({
403+
session: {
404+
quick_creation_form: '1',
405+
}
406+
});
407+
await goto();
408+
});
401409
}
402410

403411

0 commit comments

Comments
 (0)