Commit 2740a71
committed
[ZEPPELIN-6384] Fix dropdown menu item links not clickable in full area
### What is this PR for?
#### Summary
- Fixed dropdown menu items in header where only text was clickable instead of the full item area
- Changed routerLinkActive to nzMatchRouter for proper NG-ZORRO integration
- Added CSS pseudo-element to expand clickable area of anchor tags
#### Cause
- Likely due to NG-ZORRO dropdown menu item anchor tag style changes that reduced the clickable area to just the text content.
#### Changes
- Updated `header.component.html`: Replace `routerLinkActive` with `nzMatchRouter` directive
- Updated `global.less`: Add `::before` pseudo-element to `.ant-dropdown-menu-item > a` to expand clickable area using absolute positioning
### What type of PR is it?
Bug Fix
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-6384
### Questions:
* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
Closes #5124 from tbonelee/fix-dropdown-link.
Signed-off-by: ChanHo Lee <[email protected]>
(cherry picked from commit b4193a0)
Signed-off-by: ChanHo Lee <[email protected]>1 parent 4548a85 commit 2740a71
2 files changed
Lines changed: 13 additions & 5 deletions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
| |||
0 commit comments