-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(telekom-profile-menu): keyboard accessibility & optional logout h…
…andler (#2306) * fix(app-navigation-user-menu): keyboard activation of links & buttons * fix(app-navigation-user-menu): optional clickHandler for logout button * fix(app-navigation-user-menu): mention clickHandler property in storybook * fix(app-navigation-user-menu): fixed link to component description in storybook * fix(telekom-profile-menu): mention new optional logoutHandler in readme
- Loading branch information
1 parent
2ad95bd
commit bb7aabd
Showing
6 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -539,6 +539,11 @@ window.onload = () => { | |
email: '[email protected]', | ||
}); | ||
profileMenu.serviceLinks = JSON.stringify(serviceLinks); | ||
// optional: set a custom handler for clicks on logout button | ||
profileMenu.logoutHandler = () => { | ||
// ... | ||
} | ||
}; | ||
</script> | ||
``` | ||
|
@@ -605,6 +610,11 @@ window.onload = () => { | |
email: '[email protected]', | ||
}); | ||
profileMenu.serviceLinks = JSON.stringify(serviceLinks); | ||
// optional: set a custom handler for clicks on logout button | ||
profileMenu.logoutHandler = () => { | ||
// ... | ||
} | ||
}; | ||
</script> | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters