Comments (10)
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.
@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.
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.
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.
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.
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.
That's a clever workaround, but bears some accessibility problems, unfortunately.
from vue-material-design-icons.
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.
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.
@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)
- The MoveToInboxIcon hasn't been found HOT 1
- Missing featured_play_list HOT 2
- Update to Vue3? HOT 12
- Vue3 issue HOT 1
- TypeScript support HOT 3
- Build broke with 4.13.0 (sorry, this is a weird report) HOT 15
- Vue3 - multiple compiler errors HOT 5
- Can't import thin icon HOT 4
- [Vue 3] click event fires twice HOT 2
- Missing icons HOT 2
- Support for a single component that receives the icon name as a prop HOT 11
- [Vue 3] warning (deprecation COMPILER_V_BIND_OBJECT_ORDER) HOT 1
- Error on Jest transformation HOT 1
- Missing icons? HOT 3
- Project status HOT 7
- How to pass additional css classes (tailwind) to vue-mdi component HOT 4
- Error when build in docker or gh action `[vite]: Rollup failed to resolve import "vue-material-design-icons/ToolBox.vue" from "/app/src/components/LabelIcon.vue".` HOT 6
- Enhance documentation with style alternatives HOT 3
- When title is missing, should aria-hidden be "false" or default? HOT 5
- 为什么只能import一个Menu.vue,import其他的组件就报vue-material-design-icons不存在 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-material-design-icons.