Comments (3)
We used to have this discussion before #2180 and it was not implemented because it was considered bad pattern (user needs to know to hover on something to check the tooltip), but more importantly browsers don't allow this. When element is disabled it doesn't trigger any events, including mouse events needed to know when to show/hide the tooltip.
So to implement this, we would need a fake disabled style, that would just look disabled, but not disable the input (from browser point of view). This will be fighting with a native browser behaviour.
Another approach would be to have some kind of wrapper around disabled element, so the tooltip will not be on the disabled element, but on parent. This may work, but will require additional markup (wrapping element) which may not be straighforward in context of some components.
from vanilla-framework.
WG: from a UX perspective we believe this is useful, in order to give users contextual info on why the item is disabled. These don't work on mobile, but in our context this is not very prominent.
Sources:
https://www.smashingmagazine.com/2021/08/frustrating-design-patterns-disabled-buttons/#making-disabled-buttons-more-inclusive
https://www.smashingmagazine.com/2021/08/frustrating-design-patterns-disabled-buttons/
The implementation of this needs to be investigated further.
from vanilla-framework.
Having a quick look with Max it seems that the browsers these days seems to be a bit more consistent about triggering mouse events on disabled elements, so it should make it more feasable for implementation. I still need to investigate it a bit further and prototype some Vanilla examples.
https://codepen.io/maximilian-blazek/pen/KKEgPqG
from vanilla-framework.
Related Issues (20)
- Height mismatch between search box and search and filter HOT 3
- Bolded headings width mismatches with side navigation HOT 1
- Notifications partially overlap elements with z-index = 1 HOT 4
- `p-stepped-list__item` has padding in the wrong place
- Stepped lists always show zero count for nested ordered lists HOT 3
- Top border of table mobile card is different
- Stepped lists grid is broken in small screens HOT 1
- Application layout doesn't accommodate tag logos HOT 2
- Broken Link to Alphabet of Accessibility Issues HOT 1
- Side bar items with sub pages are not clickable HOT 5
- Slider shows white background on paper theme with Firefox HOT 2
- Improve the way React component can extend Vanilla %placeholders
- Latest Vanilla turns white links in global nav black HOT 1
- row--25-75 - col containers do not set grid context properly HOT 1
- Grid: provide 3 levels of nesting HOT 9
- Unclear usage of horizontal lines between old hr docs and new rule component
- Adding grid usage explanation to app layout when l-nav is in is-collapsed state. HOT 2
- Heading anchor links styling HOT 13
- Collapsable side panel HOT 5
- (Firefox) Holding shift while clicking a checkbox causes the click to not be registered HOT 7
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 vanilla-framework.