![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
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.
embla-carousel-aria
Advanced tools
This plugin adds ARIA-spec compliance to the amazing Embla Carousel
First you need to follow the installation instructions for Embla Carousel, after that you can add aria support:
npm install --save embla-carousel-aria # yarn add embla-carousel-aria
import EmblaCarousel from 'embla-carousel';
import { AriaPlugin } from 'embla-carousel-aria';
// initialize Embla Carousel
const embla = EmblaCarousel(
emblaNode,
{
inViewThreshold: 0.25, // A high view threshold is recommended.
},
[AriaPlugin()]
);
import { useEmblaCarousel } from 'embla-carousel-react';
import { AriaPlugin } from 'embla-carousel-aria';
const EmblaCarouselComponent = ({ children }) => {
const [emblaRef, embla] = useEmblaCarousel(
{
inViewThreshold: 0.25, // A high view threshold is recommended.
},
[AriaPlugin()]
);
// ...
};
Type: string
Default: en-US
Locale to be used in IETF's BCP 47 format.
Type: boolean
Default: false
Whether the screen reader should announce slide changes. Recommended to be turned off if autoscroll is used.
Type: number
Default: 300
The debounce to use when updating aria properties.
Type: Function
Default: (evt: HTMLElement, target: HTMLElement) => void
A callback function that is invoked when the focus is moved by the Aria plugin.
You can also set global options that will be applied to all instances. This allows for overriding the default plugin options with your own:
AriaPlugin.globalOptions = {
debounce: 1000,
};
Kudos to David Jerleke for creating Embla Carousel with its open API 🙏
MIT.
FAQs
An accessibility plugin for Embla Carousel
The npm package embla-carousel-aria receives a total of 1,383 weekly downloads. As such, embla-carousel-aria popularity was classified as popular.
We found that embla-carousel-aria demonstrated a not healthy version release cadence and project activity because the last version was released 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.