Quasar Q-Btn and Tailwindcss on Safari doesn't display properly when using :to #5609
-
Platform: What version of Tailwind CSS are you using?
What version of Node.js are you using? v14.17.2 What browser are you using? Safari (Desktop and Mobile) What operating system are you using? macOS Reproduction URL I have tried to replicate this in JSFiddle but as it is Safari browser specific I haven't been able to. Instead, I have attached a demo project. ( Describe your issue I raise this with the Quasar team and they suggested it is an issue with the Tailwinds styling being applied: quasarframework/quasar#10636 To Reproduce It is a Quasar project created using the Quasar CLI + a tailwinds setup as described here (https://dev.to/eltoritoelvis/add-tailwind-css-to-your-quasar-project-in-5-minutes-or-less-3n4o). Then try the below two examples:
Expected behavior |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey! This looks like a Quasar issue — they are generating invalid HTML when you add the Notice the One workaround for your project is to add this CSS rule to your @layer base {
[type="button"] {
-webkit-appearance: unset;
}
} ...but this may have unintended consequences for real buttons. Another is to add .q-btn {
appearance: none;
} Ultimately though the best long term fix is to get Quasar to patch the issue where they are adding the type attribute incorrectly to |
Beta Was this translation helpful? Give feedback.
Hey! This looks like a Quasar issue — they are generating invalid HTML when you add the
to
attribute:Notice the
type="button"
on thea
tag, anchor tags do not support that attribute. Tailwind sets anything withtype="button"
to be styled with a-webkit-appearance: button
by default. Quasar should not be including that attribute on links, only on buttons.One workaround for your project is to add this CSS rule to your
base
layer:...but this may have unintended consequences for real buttons.
Another is to add
appearance: none
to anything with theq-btn
class:Ultimately though the best lo…