-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Class ml-auto
no longer working with 3.4.5+
#14013
Comments
Hey! Can you provide a reproduction? I can't reproduce this when I paste that exact HTML into a fresh project. What does your source HTML actually look like, are you using Slim or something for the HTML? |
Hey! Sure. Here is the page built with tailwindcss-rails v.2.6.1: And here is the same page after upgrade to v.2.6.3: I use Slim. Here is the relevant code: .flex.items-center.gap-x-6
a[class='-m-1.5 p-1.5' href=root_path]
span.sr-only
| Grocelio
= render 'shared/full_logo', html_class: 'h-6 w-auto'
.ml-auto[
data-ui--sidebar-target='hideButton'
data-action='click->ui--sidebar#hide'
data-transition-enter='ease-in-out duration-300'
data-transition-enter-start='opacity-0'
data-transition-enter-end='opacity-100'
data-transition-leave='ease-in-out duration-300'
data-transition-leave-start='opacity-100'
data-transition-leave-end='opacity-0'
]
button class='-m-2.5 p-2.5 rounded-md text-gray-700'
span.sr-only
| Close menu
svg.h-6.w-6[fill='none' viewbox='0 0 24 24' stroke-width='1.5' stroke='currentColor' aria-hidden='true']
path[stroke-linecap='round' stroke-linejoin='round' d='M6 18L18 6M6 6l12 12']
|
Think my bug from here has the same cause I use haml and following code is not working:
but
without custom attributes does. In this bug the |
Hey! This should be fixed in v3.4.7 which we released yesterday 👍 https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.4.7 |
Great! I confirm the bug is fixed. |
same for me |
With the release of version 3.4.5, the class
ml-auto
stopped working and is no longer recognized as CSS class.For example I have html from this example (simplified):
The CSS class
ml-auto
is not recognized by tailwind and not added to thestyles.css
, so the last block is not aligned to the right.What version of Tailwind CSS are you using?
v3.4.5, v3.4.6
What build tool (or framework if it abstracts the build tool) are you using?
Standalone CLI that comes with Tailwindcss-rails gem:
tailwindcss-rails (2.6.3-x86_64-linux)
What browser are you using?
Tested in the latest Chrome and Firefox
What operating system are you using?
Linux (Debian 12)
The text was updated successfully, but these errors were encountered: