Replies: 1 comment 2 replies
-
Would it work if you add a module.exports = plugin.withOptions(
function (options) {
addVariant('outlook-web', ctx => {
const foo = get(ctx.container.nodes[0], 'raws.tailwind.classCandidate', '&')
- return `[class~="x_outlook-web\\:${foo}"]`
+ return `[class~="[&x_outlook-web\\]:${foo}"]`
})
}
) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I register this variant in the tailwindcss-email-variants plugin:
So that for example
outlook-web:hidden
would result in this selector:[class~="x_outlook-web\:hidden"]
Worked fine with
3.0.x
, but now with latest3.1.x
I'm getting this error:You may see the (now failing) test here:
Test: https://github.com/maizzle/tailwindcss-email-variants/blob/a2998eabc2cf47dde3768993f2138a36790b8ca2/src/index.test.js#L114-L126
CI run: https://github.com/maizzle/tailwindcss-email-variants/runs/6900405408?check_suite_focus=true
The plugin also offers the ability to register your own variants, that you may pass as an options object, so this is also failing now:
https://github.com/maizzle/tailwindcss-email-variants/blob/a2998eabc2cf47dde3768993f2138a36790b8ca2/src/index.test.js#L156-L165
Is there any way to get those working again?
Beta Was this translation helpful? Give feedback.
All reactions