Skip to content

Quasar Q-Btn and Tailwindcss on Safari doesn't display properly when using :to #5609

Answered by adamwathan
maggie44 asked this question in Help
Discussion options

You must be logged in to vote

Hey! This looks like a Quasar issue — they are generating invalid HTML when you add the to attribute:

Notice the type="button" on the a tag, anchor tags do not support that attribute. Tailwind sets anything with type="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:

@layer base {
  [type="button"] {
    -webkit-appearance: unset;
  }
}

...but this may have unintended consequences for real buttons.

Another is to add appearance: none to anything with the q-btn class:

.q-btn {
  appearance: none;
}

Ultimately though the best lo…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pdanpdan
Comment options

@maggie44
Comment options

Answer selected by maggie44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #5607 on September 26, 2021 18:51.