angular / angular/components

[mat-menu] support horizontal (xPosition) overlap detection

未关闭
#8,400 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: material/menu feature needs: discussion P4
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### Bug, feature request, or proposal:
feature

#### What is the expected behavior?
When [overlapTrigger] is false the menu will NOT overlap on the horizontal axis (xPosition)

#### What is the current behavior?
The horizontal axis is overlapping the triggering element wether overlapTrigger is true/false.

#### What is the use-case or motivation for changing an existing behavior?
Per the docs, the overlapTrigger should respect both x and y.
It is also a valid requirement.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular 5, material 5.0.0-rc0

贡献指南

打开贡献指南

调研方向

从 Angular Material mat-menu 的定位入口开始,跟踪 overlapTrigger 当前如何处理 y 轴与 xPosition 的关系。运行相关的菜单测试,然后验证将 overlapTrigger 设置为 false 会阻止与触发元素发生水平重叠,同时在其为 true 时保留现有行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。