Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with latest versions #1

Open
malonehedges opened this issue Nov 12, 2022 · 1 comment
Open

Doesn't work with latest versions #1

malonehedges opened this issue Nov 12, 2022 · 1 comment
Assignees

Comments

@malonehedges
Copy link

In some recent version of tailwind theme('aria') started returning an object with strings as the values, while this plugin expects an array of strings as the values. This causes the plugin to fail when building.

theme('aria') usage: https://github.com/mellambias/tailwind-aria/blob/master/index.js#L46

where it fails due to an assumption of it being an array instead of a string: https://github.com/mellambias/tailwind-aria/blob/master/index.js#L53

@mellambias mellambias self-assigned this Nov 27, 2023
@mellambias
Copy link
Owner

In Tailwind 3.0.23 If the 'aria' attribute does not exist, it returns undefined, however in the 3.3.5 it returns an object.

The solution is to put the attribute on theme
// tailwind.config.js
{
theme: {
aria: {},
plugins: [
require('tailwind-aria'),
],
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants