mirror of
https://github.com/iconify/iconify.git
synced 2025-01-05 23:10:40 +00:00
Remove IE10 and old Firefox hacks from SVG framework
This commit is contained in:
parent
5532089ae9
commit
6cb69b558d
@ -46,7 +46,7 @@ export function renderIcon(
|
|||||||
|
|
||||||
// Generate SVG as string
|
// Generate SVG as string
|
||||||
const html =
|
const html =
|
||||||
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" class="' +
|
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="' +
|
||||||
className +
|
className +
|
||||||
'">' +
|
'">' +
|
||||||
replaceIDs(data.body) +
|
replaceIDs(data.body) +
|
||||||
@ -67,7 +67,6 @@ export function renderIcon(
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Add custom styles
|
// Add custom styles
|
||||||
svgStyle.transform = 'rotate(360deg)';
|
|
||||||
if (data.inline) {
|
if (data.inline) {
|
||||||
svgStyle.verticalAlign = '-0.125em';
|
svgStyle.verticalAlign = '-0.125em';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user