hperrin / svelte-material-ui

Svelte Material UI Components
https://sveltematerialui.com/
Apache License 2.0
3.28k stars 288 forks source link

IconButton Svg turns blue with href #565

Open cyborgdennett opened 1 year ago

cyborgdennett commented 1 year ago

How do I get the svg the same colour as text while keeping the standard text colours with href: image image without href: image image

<script>
        import { mdiGithub } from '@mdi/js';

    import IconButton, { Icon } from '@smui/icon-button';
    import { Svg } from '@smui/common';
</script>
<IconButton aria-label="GitHub" target="_blank" href="https://github.com/cyborgdennett/l2benchmarks">
    <Icon component={Svg} viewBox="0 0 24 24">
        <path fill="currentColor" d={mdiGithub} />
    </Icon>
</IconButton>

I use dark theme with smui-dark theme.