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

Internet Explorer 11 (focusable, tabindex) #82

Closed
ivarne opened this issue Apr 12, 2018 · 2 comments
Closed

Internet Explorer 11 (focusable, tabindex) #82

ivarne opened this issue Apr 12, 2018 · 2 comments

Comments

@ivarne
Copy link

ivarne commented Apr 12, 2018

Sadly we need to support IE 11 on our site, and for some reason IE make tab navigation stop on every svg icon unless you use the non-standard <svg focusable="false"... property. Is there any way I can add this during svgr processing time, so that I can avoid an extra post processing step, or have to write <MyIcon focusable="false"/>?

See: https://stackoverflow.com/q/18646111/112019

Basically I want an option to create components like

import React from "react";

const Bed = props => (
  <svg focusable="false" viewBox="0 0 20 13" width="1em" height="1em" {...props}>
    <path
      fill="#333F52"
      fillRule="evenodd"
      d="M18.821 8.143c.332 0 .608.275.608.607V13H17v-2.429H2.429V13H0V1.464C0 1.132.275.857.607.857h1.214c.332 0 .608.275.608.607v6.679H18.82zM7.893 5.107a2.433 2.433 0 0 1-2.429 2.429 2.433 2.433 0 0 1-2.428-2.429A2.433 2.433 0 0 1 5.464 2.68a2.433 2.433 0 0 1 2.429 2.428zm11.536 2.429H8.5V3.893c0-.332.275-.607.607-.607h6.679a3.644 3.644 0 0 1 3.643 3.643v.607z"
    />
  </svg>
);

export default Bed;
@gregberge
Copy link
Owner

The simplest solution is actually to use a specific template. You can inspire from the default one.

@gregberge
Copy link
Owner

Follow up #87

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

No branches or pull requests

2 participants