A client-side utility to append Workspace navigation to the dotcom-ui-header
.
- Adds the navigation link to the mobile drawer.
- Adds the navigation link to the desktop header.
- Adds a dismissible tooltip to the desktop header link. The tooltip displays a maximum of three times, persisting the view count to
localStorage
.
Building
To build the library, run:
rushx build
Running
In order to see the library in action, run:
rushx demo
You can then view the static demo page directly (demo/index.html
), or serve it using Caddy by running caddy run
and visiting https://local.ft.com.