Commit cbfd53e
committed
fix: improve notification close button hover detection
The close button in notifications was difficult to click because the
hover detection area was too small. Changed the FocusScope to a Control
component with hover tracking capability. Added hover state as a trigger
condition for displaying the close button, making it easier for users to
close notifications by expanding the interactive area.
Log: Improved notification close button interaction by expanding hover
detection area
Influence:
1. Test hovering over notification area to verify close button appears
2. Verify close button functionality works correctly when clicked
3. Test with notifications containing actions to ensure
strongInteractive mode still works
4. Check close button visibility in different notification states
5. Verify accessibility and keyboard navigation still functions properly
fix: 改进通知关闭按钮悬停检测
通知中的关闭按钮难以点击,因为悬停检测区域太小。将 FocusScope 改为具有悬
停跟踪功能的 Control 组件。添加悬停状态作为显示关闭按钮的触发条件,通过
扩大交互区域使用户更容易关闭通知。
Log: 通过扩大悬停检测区域改进了通知关闭按钮的交互体验
Influence:
1. 测试悬停在通知区域时关闭按钮是否正常显示
2. 验证点击关闭按钮功能是否正常工作
3. 测试包含操作的通知,确保强交互模式仍然有效
4. 检查不同通知状态下关闭按钮的可见性
5. 验证辅助功能和键盘导航是否仍然正常工作1 parent d93d7bd commit cbfd53e
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments