v3.0.2
Fix: Style and behavior of the logout button
This change modifies the styling of the logout button to include an underline and sets the cursor to pointer on hover. It also ensures that the default action of the logout link is prevented and the onSignOutClick event is emitted when the button is clicked.
Changes
- Added underline to the logout link and changed cursor to pointer on hover in
src/stories/main-navigation/user-account/user-account.scss. - Added
role="button"attribute to the logout link. - Added
event.preventDefault()to theonclickhandler for the logout link insrc/stories/main-navigation/user-account/user-account.tsto prevent default link behavior.
Impact
- The logout button now appears as an underlined link.
- The logout button now has a pointer cursor on hover, indicating it is clickable.
- Clicking the logout button will now always trigger the
onSignOutClickevent, rather than navigating to the URL specified inthis.signouturl. - No breaking changes are apparent.
- No performance implications are apparent.
Full Changelog: v3.0.1...v3.0.2