Skip to content

Update build process to use data-skipto attribute to configure skipto.js #259

@jongund

Description

@jongund

I would like to update skipto.js to use the standard distribution. Right now I created a customized version of skipto.js for the APG that sets the default colorTheme to use the aria option and for displayOption the 'popup` option.

The data-skipto attribute can be put on thescript element referencing skipto.js, for example:

  <script data-skipto="colorTheme:aria; displayOption:popup; containerElement:div" src="../../shared/js/skipto.js"></script>

I have created a PR 2807 in the aria-practices repository for the current production version of skipto.js.

It can also be downloaded or referenced from:
https://github.com/skipto-landmarks-headings/page-script-5/tree/main/dist

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    In production / Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions