mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): add accessibility concern notes for accesskey in lecture (#67087)
Co-authored-by: Copilot <copilot@github.com> Co-authored-by: Jeevankumar S <jeevenkumar2003@gmail.com> Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
bd0c98e9d1
commit
41bfbdc54d
+5
-1
@@ -68,7 +68,11 @@ Here is an interactive example you can try out following the suggestions below (
|
||||
- `accesskey="c"` sets the key `C` to the `Cancel` button, allowing users to activate it using `ALT + C` (Windows) and `CTRL + Option + C` (Mac).
|
||||
- `accesskey="h"` assigns the key `H` to the `Home` link, allowing users to navigate to the homepage using `ALT + H` (Windows) and `CTRL + Option + H` (Mac).
|
||||
|
||||
Please note that the exact key combination to activate the accesskey might vary depending on the browser and operating system. It's typically `ALT + Specified Key` on Windows and `CTRL + Option + Specified Key` on Mac.
|
||||
Please note that the exact key combination to activate the `accesskey` might vary depending on the browser and operating system. It's typically `ALT + Specified Key` on Windows and `CTRL + Option + Specified Key` on Mac.
|
||||
|
||||
The `accesskey` attribute can be problematic because it may conflict with existing shortcuts or behave inconsistently across devices and keyboards, and is often not intuitive for users to discover or remember.
|
||||
|
||||
If you choose to use `accesskey`, it should be done with clear guidance to users, but in most cases it's better to avoid `accesskey` in websites and web applications.
|
||||
|
||||
:::interactive_editor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user