platform
platform copied to clipboard
SideNav: link target API
trafficstars
Description
API for configuring a link in SideNav to open in a new browser window/tab.
Acceptance criteria
- [ ] API for setting/getting the
targetattribute for the link in aSideNavItem(Flow:setTarget(String),getTarget();targetproperty for WC & React); - [ ] Convenience API in Flow
SideNavItemfor opening the link in a new, unnamed browser tab:setOpenInNewBrowserTab(boolean)and corresponding getter (equivalent tosetTarget("_blank")
Notes
- Setting
rel="noopener"is unnecessary as that is the default fortarget="_blank"in modern browsers. - Setting
rel="noreferer"to be covered by a separate issue.
Original feature request issue: https://github.com/vaadin/flow-components/issues/5091
General criteria
- [ ] UX/DX tests in Alpha
-
[ ] Documentation: New Opening in new browser tab section in SideNav docs page (add link here when done)
-
[ ] How to test?
- [ ] Limitations:
Security
- [x] Security implications have been taken into account (elaborate or link to product security requirement specification if there are implications)