You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All notable changes to this widget will be documented in this file.
4
+
5
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
Adds a skip navigation link for keyboard accessibility. The link is hidden until focused and allows users to jump directly to the main content.
4
+
5
+
## Usage
6
+
7
+
1. Add the Skip Link widget anywhere on your page, preferrably at the top or in a layout.
8
+
2. Configure the **Link Text** and **Main Content ID** properties.
9
+
3. Ensure your main content element has the specified ID, or there's a main tag on the page.
10
+
11
+
The widget automatically inserts the skip link as the first child of the `#root` element.
12
+
13
+
## Properties
14
+
15
+
-**Link Text**: Text displayed for the skip link (default: "Skip to main content").
16
+
-**Main Content ID**: ID of the main content element to focus (optional).
17
+
18
+
If the target element is not found, the widget will focus the first `<main>` element instead.
19
+
20
+
## Accessibility
21
+
22
+
The skip link is positioned absolutely at the top-left of the page, hidden by default with `transform: translateY(-120%)`, and becomes visible when focused via keyboard navigation.
// Because the test isolation that will open a new session for every test executed, and that exceeds Mendix's license limit of 5 sessions, so we need to force logout after each test.
0 commit comments