Ariakit automatically adjusts the color to ensure a minimum contrast ratio of 4.5:1 with the layer background.
No JS. Just CSS and color theory.
Ariakit automatically adjusts the color to ensure a minimum contrast ratio of 4.5:1 with the layer background.
No JS. Just CSS and color theory.
Another benefit is that it provides out of the box interoperability with other libraries. For example, rendering React Aria's DatePicker within an Ariakit dialog just works™, even though React Aria renders the popover outside the dialog by default.
Another benefit is that it provides out of the box interoperability with other libraries. For example, rendering React Aria's DatePicker within an Ariakit dialog just works™, even though React Aria renders the popover outside the dialog by default.
Even the native <dialog> element doesn't support this yet, as browser extensions don't use the top layer.
Even the native <dialog> element doesn't support this yet, as browser extensions don't use the top layer.