Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork ajans-3356785

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bunty oberoi created an issue. See original summary.

o_timoshchuk’s picture

Status: Active » Needs review
StatusFileSize
new24.58 KB
new151.15 KB

I have tested it and found that enabling the "Show as expanded" option in the Home menu link settings allows the dropdown menu to function properly.

bunty oberoi’s picture

Title: Dropdown/Multilevel Menu not working. » Dropdown/Multilevel menu need style on hover
bunty oberoi’s picture

Hi o_tymoshchuk,

Sorry, I didn't explain it right. The dropdown/Multilevel menu needs style on hover.

keshavv’s picture

Status: Needs review » Active
rohit rana’s picture

Status: Active » Needs review
StatusFileSize
new145.54 KB

Hi,
Please replace this code
tr:hover,
tr:focus {
color: #232429;
background: #f5f8ff;
}
with this
tr:hover,
tr:focus {
color: #232429;
background: #adc9f7;
}
in /core/themes/claro/css/components/tables.css It works for me here I attached a screenshot.

akshay kashyap’s picture

Assigned: Unassigned » akshay kashyap
rohit rana’s picture

Assigned: akshay kashyap » Unassigned

Hi @bunty oberoi ,
Please Review comment #6.

akshay kashyap’s picture

Title: Dropdown/Multilevel menu need style on hover » Dropdown/Multilevel menu need to be style
akshay kashyap’s picture

StatusFileSize
new101.25 KB
isalmanhaider’s picture

Assigned: Unassigned » isalmanhaider
isalmanhaider’s picture

Resolution

Problem #1 - 3rd level item i.e book in this case isn't displayed (not part of markup at all)

Resolution: First from the block configuration at admin/structure/block/manage/ajans_main_menu for block `Main Navigation` change Number of levels to display to 3 or more (in this case 2 won't work because book is at 3rd level.

Problem # 2 - Styling the nested menu to react on hover.
Resolution: Moreover to style the nested menu, her's the CSS code patch. I will raise a PR as well.

isalmanhaider’s picture

StatusFileSize
new6.68 KB
new92.95 KB

A slight fix.

akshay kashyap’s picture

@isalmanhaider Thanks for the Work

I am not able to apply Patch it makes an error when I applied patch, please check.

git apply -v 3356785-dropdown-menu-style-1.patch
Checking patch css/theme.css...
error: while searching for:
  /* 1 */
  display: inline-block;
}
/* 2 */
.uk-input:not(input),
.uk-select:not(select) {

error: patch failed: css/theme.css:1515
error: css/theme.css: patch does not apply
isalmanhaider’s picture

You can apply the patch by using the command git apply 3356785-dropdown-menu-style-1.patch.

Alternatively, you can switch to the branch that contains the fix and test it. You can find the branch with the fix at the following URL: https://git.drupalcode.org/issue/ajans-3356785/-/tree/3356785-dropdown-menu-style.patch.

akshay kashyap’s picture

StatusFileSize
new41.5 KB

@isalmanhaider

Thank you so much

I got it now it looks good moving to RTBC

akshay kashyap’s picture

Status: Needs review » Reviewed & tested by the community
raveen_thakur51’s picture

I have reviewed & Implemented the #patch13 on my Drupal website having version 9.5, PHP version - 8.1
It is working fine for me.
And Thank You.

vishal choudhary’s picture

Version: 6.0.1 » 1.3.x-dev
Assigned: isalmanhaider » Unassigned
Status: Reviewed & tested by the community » Fixed
vishal choudhary’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.