[Notification]: Investigate deprecating hasFocus
prop
#15534
Labels
component: notification
role: dev 🤖
severity: 2
User cannot complete task, and/or no workaround
type: bug 🐛
Milestone
I think we actually need to deprecate hasFocus - the spec for alertdialog states that focus should always be given to a focusable element within the dialog. This originally came up in slack
In #14877, focus wrap behavior was implemented for the ActionableNotification. I think it was a slight oversight to leave
hasFocus
in. Even withhasFocus
off, I believe thewrapFocus()
helper always focuses thecurrentActiveElement
that is passed in.Even if it doesn't, this prop should be deprecated because the spec states that focus should always move to the alertdialog.
hasFocus
propI think many of the use cases previously using
ActionableNotification hasFocus="false"
should actually use StaticNotification once it's available, #15532The text was updated successfully, but these errors were encountered: