feat(sidenav): add a modal option
未关闭
还没有人认领这个 Issue。
Accessibility
area: material/sidenav
feature
G
P3
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
Feature Description
Add an input to the mat-sidenav that determines whether it is treated as a modal dialog. This is where we landed after some discussion about the sidenav's current focus trapping behavior: https://github.com/angular/components/pull/21962#issuecomment-796983169
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 mat-sidenav 的实现及其现有的 focus-trapping 行为,然后阅读链接的 pull request 讨论,了解已达成一致的模态语义。完成标准是 sidenav 暴露一个 input,用于控制是否将其视为模态对话框,并且该选项有相应的行为和测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100