I'm trying to upgrade a third-party gadget from 10.6 to 11.5 and having some issues with the state button drawing too much attention to itself.
I found this in Header.js which wasn't in the the 10.6 version and it seems to give me problems when I trying to regain focus after performing an action that results in a userChange event:
In header.js a handler is added for the change event
_user.addHandler('chagne', _handleUserChange);
And in _handleUserChange the function ends with this:
// This currently causes the focus to go on the user's state every
// time it gets an agent event. This isn't ideal because it will
// pull the focus away from the existing action. The reason why it
// can't be fixed now is because other gadgets/components is pulling
// the focus away from the state. This issue should be addressed in
// future accessibility stories.
_stateBtn.focus();
Does anyone know how to override this behavior?
Thanks.