Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Micro-library & custom element that rewards accessible, semantic HTML and minimal, well-formed ARIA!
I'm the micro-library and custom element that rewards accessible, semantic HTML and minimal, well-formed ARIA!
Given HTML containing a <button>
and <dialog>
:
<button
id="triggerButton"
aria-controls="myDialog"
aria-expanded="false"> Click me! </button>
<dialog id="myDialog">
<p> Hello, I’m a native dialog box! </p>
</dialog>
You can use this Javascript:
import A11yAware from 'A11yAware';
const buttonProxy = new A11yAware('#triggerButton');
buttonProxy.addToggleListener();
… To show and hide the dialog box, while correctly updating the state of the ARIA attributes, for example, aria-expanded
.
Missing or incorrect ARIA is reported via helpful assertion errors in the browser console.
Aligning functionality with accessibility has to be a good thing 💡♿️
Neat, huh?
The library exports the <a11y-aware>
custom element – see the demo.
<a11y-aware>
<button … > … </button>
<dialog … > … </dialog>
</a11y-aware>
And, you can make accessibility issues more visible with a guided mode:
<a11y-aware guided="true">
<button … > … </button>
<dialog … > … </dialog>
</a11y-aware>
The library currently tests for and/or supports(*) the following HTML elements and attributes:
<dialog>
element, and the show()
, showModal()
and close()
methods on the HTMLDialogElement
class,hidden
global attribute,aria-controls
, aria-expanded
and aria-haspopup
attributes,role="listbox"
, role="dialog"
…FAQs
Micro-library & custom element that rewards accessible, semantic HTML and minimal, well-formed ARIA!
The npm package a11y-aware receives a total of 0 weekly downloads. As such, a11y-aware popularity was classified as not popular.
We found that a11y-aware demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.