Some classes missing in Ajax requests

Created on 20 February 2023, over 1 year ago

Problem/Motivation

In Ajax requests, some Tailwind classes are not properly injected, even though they are included in the source content.

An ajax request in Drupal uses UTF-8 encoded quotes \u022 and encoded slashes \/. Tailwind's parser assumes plain code and therefore doesn't detect classes containting or adjacent to those encoded symbols.

Proposed resolution

Decode the request and use the unencoded request payload as content source for the compiler.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria hudri Austria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024