Coder Social home page Coder Social logo

Comments (10)

gambolputty avatar gambolputty commented on August 16, 2024 2

I fixed this myself by setting pointer-events: none inside the CSS class .material-design-icon (I'm using custom CSS)

from vue-material-design-icons.

robcresswell avatar robcresswell commented on August 16, 2024 1

@bradley-varol If you've a suggestion on what you'd prefer, please make it 😄 I have made a suggestion above, but nobody has replied. I don't use Vue much nowadays, so I don't have much drive to spend a weekend investigating fixes.

from vue-material-design-icons.

robcresswell avatar robcresswell commented on August 16, 2024 1

I'm going to close this; I've changed how titles work as of 5.0.0 and there hasn't been much activity

from vue-material-design-icons.

robcresswell avatar robcresswell commented on August 16, 2024

I'm very reluctant to start adding "magic" implicit titles over explicit ones, given you can assign the title to a variable in Vue to avoid the horrors of repetition. What do you imagine this would look like in code?

from vue-material-design-icons.

gambolputty avatar gambolputty commented on August 16, 2024

I stumbled upon a similar problem. The code rendered by Chrome is the following:

<button title="Outline" class="sidebar__tab">
  <span aria-label="Pound icon" role="img" class="material-design-icon pound-icon">
    <svg fill="currentColor" width="28" height="28" viewBox="0 0 24 24" class="material-design-icon__svg">
      <path d="...">
        <title>Pound icon</title>
      </path>
    </svg>
  </span>
</button>

This is just a button with an icon. When hovering with the mouse, the title changes: sometimes it's "Outline" (triggered by button atrribute) and sometimes "Pound icon" (triggered by <title> element inside svg). I could not find a way to change that behavior. Could you help?

Btw: thanks for making this project :)

from vue-material-design-icons.

gambolputty avatar gambolputty commented on August 16, 2024

Additionally: if I don't set a title to the wrapping element, "Pound icon" is still displayed and not very informative. I wish there was a way to disable these titles.

from vue-material-design-icons.

krmax44 avatar krmax44 commented on August 16, 2024

That's a clever workaround, but bears some accessibility problems, unfortunately.

from vue-material-design-icons.

robcresswell avatar robcresswell commented on August 16, 2024

I can see how this is annoying... any suggestions of what this may look like in code? I was generally trying to balance a11y / performance against niceties in computed properties etc when designing this.

Would making the title <title>{{ props.title }}</title> conditional based on decorative solve this? i.e. <title v-if="!decorative">{{ props.title }}</title>

Unfortunately I've not done any frontend work for almost 2 years now; I mostly just keep this updated because the maintenance cost is low and people seem to be using it 😄

from vue-material-design-icons.

bradley-varol avatar bradley-varol commented on August 16, 2024

I'd really like to be able to disable this. I've got buttons with titles containing icons and on icon hover, the title is wrong.

from vue-material-design-icons.

robcresswell avatar robcresswell commented on August 16, 2024

@bradley-varol @krmax44 @gambolputty Does the linked PR solve your problem?

As I've stated before, I don't do much Vue nowadays, but I'm happy to keep maintaining this. Would appreciate some others eyes on the PR though 😃

from vue-material-design-icons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.