Comments (5)
this seems to mostly fix it.. but more testing to do yet
.slflnk.expanded.dropdown.open ul.sm {
display: block;
}
.slflnk.expanded.dropdown ul.sm {
display: none;
}
from wxt.
This is just a small piece of the issue; i see that the flyout portions are only on click (supposed to be on hover) and they are not positioned correctly. I see the code for acting on hover and it is being hit but failing at some point (no error). My guess is there is a class wrapper missing from the entire menu which makes the wet portions of this work... but comparing to what's on canada.ca i don't see it.
from wxt.
the following fixes the menu (externally, not in the WxT distribution). My guess is that some of this is added in WxT and they made a change to WET which has not been taken into account in WxT updates (as classes are missing and css is wrong).
JS:
$('nav#wb-auto-2 a.dropdown-toggle').attr('aria-haspopup', 'true');
CSS:
.gcweb-menu a[aria-expanded="true"] + ul.sm {
display: block;
}
.expanded.dropdown ul.sm {
display: none;
}
.gcweb-menu .dropup,
.gcweb-menu .dropdown {
position: static;
}
As a side note, its startling how poor the structure of this menu is (parent items faked in css to look like parents) and how poorly the WET JS code is written in general. Spelling mistakes, formatting is extremely inconsistent with spaces and blank lines scattered around all over. Odd this has never been cleaned up or better, some sort of jslint rule set defined for it.
from wxt.
and a better version:
JS:
$('nav.gcweb-menu a.dropdown-toggle').attr('aria-haspopup', 'true');
CSS:
.gcweb-menu a[aria-expanded="true"] + ul.sm {
display: block;
}
.expanded.dropdown ul.sm {
display: none;
}
.gcweb-menu .dropup,
.gcweb-menu .dropdown {
position: static;
}
from wxt.
Apologies I finally got time to take a look at this and believe I have it fixed.
I documented the fixes over in the issue:
https://www.drupal.org/project/wxt/issues/3236799#comment-14347979
from wxt.
Related Issues (20)
- Release v4.2.4 HOT 4
- Release v4.2.5
- Release v4.3.1
- Release of v4.3.2 HOT 1
- Release of v4.3.3
- Release of v4.3.4
- Release of v4.4.0
- New To DrupalWxT HOT 5
- Drupal 10 HOT 12
- Release of v4.4.1
- Release of v4.4.2
- Error on Installation HOT 1
- Release of v4.5.0
- Release of v4.4.3
- Release of v4.5.1
- S3FS? HOT 4
- Release of v4.5.2
- Release of v4.5.3
- Install Profile not able to install from existing configuration HOT 1
- PHP deprecation issues with AutoSaveFormBuilder
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 wxt.