Commit c691532
fix: remove redundant focus property in notification center
Removed explicit focus: true from OverlapNotify component as it was
causing focus issues when multiple notifications are present. Added
focus management to the main view container to clear focus when
NotificationCenter is closed. Replaced Control with FocusScope in
NotifyItemContent to better handle focus behavior and simplified the
close button visibility logic.
Log: Fixed focus issues in notification center
Influence:
1. Test notification center opening and closing behavior
2. Verify focus transitions between notifications
3. Check close button visibility and functionality
4. Test keyboard navigation through notifications
5. Verify focus is properly cleared when center is closed
fix: 修复通知中心的焦点问题
移除了OverlapNotify组件中显式的focus: true属性,该属性在多个通知同时存在
时会导致焦点问题。为主视图容器添加了焦点管理,在通知中心关闭时清除焦点。
将NotifyItemContent中的Control替换为FocusScope以更好地处理焦点行为,并简
化了关闭按钮的可见性逻辑。
Log: 修复通知中心的焦点问题
Influence:
1. 测试通知中心打开和关闭行为
2. 验证通知之间的焦点转换
3. 检查关闭按钮的可见性和功能
4. 测试通过键盘在通知间的导航
5. 验证通知中心关闭时焦点是否正确清除
PMS: BUG-2841391 parent f09556b commit c691532
3 files changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | | - | |
57 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments