Deprecate the Sidr module in favor of another project

Created on 26 January 2023, over 1 year ago
Updated 21 May 2024, about 1 month ago

The Olivero default theme of D9/D10 includes a mobile off-canvas menu that appears to work similar to this menu.
In what way is this module different? Maybe consider align it with that code, or help turn the Olivero solution in a module?

Motivation

The Sidr library won't receive any new features so we'll have to keep working around any bottlenecks in the Drupal module, which is not ideal.

  1. The Drupal Core has come up with an off-canvas menu mechanism which is worth exploring.

Possible solutions

Here's how we could replace the Sidr module with something else.

  1. The responsive menu → module seems to be a good candidate but I'm not sure if they do keyboard-navigable menus.
  2. A new module that makes use of Drupal Core's off-canvas menu libraries.

Ideally, the replacement should provide the keyboard navigability and other accessibility features that Sidr for Drupal provides at the moment.

💬 Support request
Status

Needs work

Version

4.0

Component

Code

Created by

🇳🇱Netherlands Yuri

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Yuri
  • Status changed to Postponed: needs info about 1 year ago
  • 🇨🇦Canada jigarius Montréal

    4 years since the initial development, I really wish there were some other module that did what Sidr does currently. The reason why I made Sidr was because no other module allowed this:

    Create a slide-out menu that would contain not only a Drupal menu but also any kind of Drupal block.

    I haven't worked with Olivero much, but if someone has the time to do some research, please share your findings on this issue. If Olivero's menu mechanism allows any type of block in an off-canvas menu, then it'd be good to move in that direction instead of having the Sidr module.

    Another question to ask would be how reusable their solution is - is it bound to the Olivero theme?

  • Status changed to Needs work about 1 month ago
  • 🇨🇦Canada jigarius Montréal
  • 🇨🇦Canada jigarius Montréal

    Today, I worked on this module for around 6 hours after a long time. Thinking about the state of things, I've updated the issue description. Anybody willing to help with some research is welcome to share their ideas and thoughts.

  • 🇹🇭Thailand manarak

    In my opinion, the strength of the SIDR module comes from being able to place several blocks in it and its flexibility/configurability.

    Other solutions tend to concentrate on specific areas, such as mobile off-canvas menu and stop there.

    What about if we want to use a different menu for mobile, what if we want to include a logo, another block?

  • 🇨🇦Canada jigarius Montréal

    Sounds good. One of my concerns is the use of the Sidr JS library which has declared that no new features will be added. I'd lean towards using a library that will stay up-to-date with modern trends, especially accessibility stuff.

    You're right about the flexibility of the Sidr module – I had made it to allow putting blocks in an off-canvas menu.

    After some quick research, I think it might be a good idea to experiment with Drupal's off-canvas dialog and see if that could be used as a replacement. Some effort will indeed be needed for styling the dialogs, but the JS libraries ship with Drupal's core and they probably AA-level accessibility rules.

    I still need to figure out how one can display an existing DOM element in an off-canvas dialog, i.e. no AJAX. Once I have that answer, I'll try and use the new prototype on my website and share my findings on this issue. I'll also try out the Responsive Menus module to see how it works.

  • 🇺🇸United States W01F

    Jigarius, we came up with another solution for allowing customizable flyouts similar to and compatible with the core Olivero flyout. Let me know if you'd like to take a look - production implementation is for the filter flyout (on mobile) under the Olivero burger menu here - https://www.kobejet.com/en/lessons

    Let me know if even reviewing this implementation may be helpful.

Production build 0.69.0 2024