Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link not opening when anchor contains SVG icon #2

Open
bmakan opened this issue Mar 2, 2020 · 1 comment · May be fixed by #8
Open

Link not opening when anchor contains SVG icon #2

bmakan opened this issue Mar 2, 2020 · 1 comment · May be fixed by #8

Comments

@bmakan
Copy link

bmakan commented Mar 2, 2020

The addon doesn't work on the links I use on one of my pages (on the intranet) which contain svg icons. I got the minimal example below:

<a href="mailto:[email protected]&amp;subject=Example" title="Create an empty email addressed to everyone in this section">
    <svg class="MuiSvgIcon-root" focusable="false" viewBox="0 0 24 24" aria-hidden="true" role="presentation">
        <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path>
    </svg>
</a>

I stipped down all classes except this one:

.MuiSvgIcon-root {
    fill: currentColor;
    width: 1em;
    height: 1em;
    display: inline-block;
    font-size: 1.5rem;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    flex-shrink: 0;
    user-select: none;
}

As soon as I replace the inner HTML with a text, it works.

@jonroig
Copy link
Owner

jonroig commented Mar 19, 2020

Weird! Ummm... wanna take a shot at fixing it? I'll accept a PR 😀
... otherwise, will take a look when I have a moment...

okj579 added a commit to okj579/MailtOWA that referenced this issue Aug 27, 2021
@okj579 okj579 linked a pull request Aug 27, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants