We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 338ca32 commit 5d49eaaCopy full SHA for 5d49eaa
packages/uui-icon/lib/uui-icon.test.ts
@@ -224,5 +224,13 @@ describe('UUIIconElement', () => {
224
it('Child uui-icon passes the a11y audit', async () => {
225
await expect(testElement.iconElement).shadowDom.to.be.accessible();
226
});
227
+
228
+ it('svg has a size of 18px for both width and height', () => {
229
+ const svgElement =
230
+ testElement.iconElement.shadowRoot!.querySelector('svg')!;
231
+ const computedStyle = getComputedStyle(svgElement);
232
+ expect(computedStyle.width).to.equal('18px');
233
+ expect(computedStyle.height).to.equal('18px');
234
+ });
235
236
0 commit comments