Implement a hiding mechanism for sticky banners
未关闭
还没有人认领这个 Issue。
infra
- 主要语言
- reStructuredText
- 星标
- 5k
- 派生
- 1.8k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 25
描述
Maybe once it becomes sticky, it could shrink and show a shorter message?
I think the close button is good-enough as a solution for this TBH, because it's a more respectful way to allow users to hide banners as-and-when they wish to do so.
Originally posted by @pradyunsg in https://github.com/python/peps/issues/2992#issuecomment-1464897620
The specific UX might differ from the initial discussion referenced above, based on whether we want to completely hide the banner or just move it to a non-sticky state (avoiding a re-flow of the content on "close").
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读 python/peps#2992 中链接的讨论,尤其关注有关关闭按钮、缩小以及避免内容重新排版的要点。明确横幅应该完全隐藏,还是改为 non-sticky,然后在定位实现之前定义预期的用户交互和验收行为。
由索引模型根据 Issue 内容生成。
评估
- 领域
- documentation
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100