-
Notifications
You must be signed in to change notification settings - Fork 106
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
Clickable tabs, menus and labels are missing "pointer" mouse cursor #2068
Comments
Thank you for the report. This is exactly what I was unifying in the past month and something slipped... In 4.0 https://ui.agiletoolkit.org/demos/interactive/tabs.php the tabs are clickable, but are not links, ie. cannot be opened in a new window... In this is question if they should be, as they can be part of a modal for example, which cannot be opened itself in a new window. In 4.0 the tab tags are |
Opening in a new window would only make sense if - whenever the user selects a tab - it would automatically change the browser's URL adding a parameter of the currently active tab. As we do not have this, I would not make it possible to open in new window. The latter feature I will put in a separate issue/proposal. |
This is technically already possible with VP/Callback, the problem is the tab is not clickable:
If you open the 4.0 demo, you will find there was I am closing #2070 in favor of this issue for these reasons. This issue/mouse cursor is present since dc68adc PR/commit. |
Hi @lubber-de, looking into the Fomantic-UI Tabs demos - some demos like https://fomantic-ui.com/modules/tab.html#centered-item - have the same problem. IMHO Is I tried to add Adding a |
Yes, using either one of the following selectors will show the pointer and is intended in SUI since 2014 according to git log .ui.link.menu .item:hover,
.ui.menu .dropdown.item:hover,
.ui.menu .link.item:hover,
.ui.menu a.item:hover |
Yes, I am aware of the current styling selector(s) but it seems inconsistent to me because the module adds a handler for the click: on and the styling, ie. cursor mouse icon etc., should match the JS selectors. We should also probably use https://dev.agiletoolkit.org/demos/collection/grid.php - the menu item (button) click events are registered by us, thus if |
The .tab() is initiated on a custom menu item selector (usually But, you don't necessary have to use tabular menu items as selector trigger, it can be anything, so the intention is to not modify any of the menu items (or lets say the "tab triggers") inside of the tab module. So, if you want to use a div as menu item add the link class to either each div or the parent menu. |
@mvorisek Any news on this topic? Usability is suffering if the hover effect is no longer working on those menus. |
Line 25 in 33ec62c |
Please understand that Tabs have the same clickable issue. I won't approve any change if they will not address this for everything. Otherwise we will have mess of some parts working, some parts not, some parts fixes this way, some other. ⚠ It probably needs some fixes in FUI, must work with disabled items, must work middle button/right click (to open in a new tab) etc. So first, the problem must be perfectly understood/debugged on almost all possible usecases with some real demos. Then fix FUI and atk4/ui demos thru a PR with discussion summarizing all your findings. |
With my proposed fix, also tabs are working properly with a hand pointer then without issue. The right-click issue for tab is another issue: This PR only addresses the UI bug that clickable menu items do not show a hand pointer and no longer have a hover effect as before. Please specify which parts would then not be working, as in my tests I cannot see this. |
Sorry, I have no time to explain this again an again. To fix something, you need to understand and fix all usecases, There are like 20 different usecases. Menus, buttons, tabs, accordion ... And of them can be disabled etc. This is one topic that must be fixed at one in order to keep the code and UX consistency. Is that clear? |
Sorry but I do not understand what you mean: (active or disabled) Tabs, (active or disabled) MenuItems, Accordions, Disabled Buttons ALL behave correctly with this fix showing a proper mouse hand pointer (if active) then, and where available also activating the hover effect. I cannot see any issue arising from this fix, but it solves the UI bug. Please let me know which unwanted side-effect this fix would imply other than solving the UI issue. I'd be happy to have a better proposal if this does not suit your needs to fix the UI problem. BTW this was your own proposal you asked @lubber-de to fix the issue: "Adding a link to the menu/tab items fixes the cursor as it matches then .ui.menu .link.item:hover selector. Is that the recommended solution or should the selector be extended/simplified to .ui.menu .item:hover officially?" And @lubber-de also proposed exactly that: "So, if you want to use a div as menu item add the link class to either each div or the parent menu." |
FYI The "right-click/middle click" topic is covered in issue #2070 and should be treated there - the right-click topic is far more complex, as this would also involve more situations eventually, not just Accordions, Tabs but for example also Table onRowClick events. I consider #2070 a "nice-to-have" but not critical, whereas this UI issue is in fact completely against FUI or web app UX standards if not fixed. |
Have a look at https://github.com/atk4/ui/tree/fix_2068_mouse_clickable_pointer. The "link" class is not a general solution because for at least this two reasons:
|
The mouse cursor indicates that all tab headers are not links but text.
https://dev.agiletoolkit.org/demos/interactive/tabs.php
Also wrong for all grid menu items. Also there is no hover effect for menu items anymore.
https://dev.agiletoolkit.org/demos/collection/grid.php
Also labels that got on $label->on('click', new JsExpression(...)) don't show a pointer mouser cursor anymore...
Also in left menu in https://ui.atk4.org/demos/layout/layouts_admin.php
Expected behaviour: A mouse cursor indicating that it is clickable/link + hover effect for menu items. See ui.agiletoolkit.org (release version) where the issue is not present.
Found in recent develop
The text was updated successfully, but these errors were encountered: