-
Notifications
You must be signed in to change notification settings - Fork 69
[Bug] RadixUI Tabs aren't styled as excepted #27
Comments
@samzhangjy hmm seems like the P.S: You can import import { cx } from '@vechaiui/react' |
Here it is... I just copied it from your comment in issue #22 : module.exports = {
mode: "jit",
purge: [
"./node_modules/@vechaiui/**/*.{js,ts,jsx,tsx}",
],
darkMode: "class", // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [
require("@tailwindcss/forms"),
require("@vechaiui/core"),
],
}
Oh... Thank you... Didn't see that 😅 |
@samzhangjy ah I see... You need to configure the |
Oh... Thank you! However, after I edited |
My module.exports = {
mode: "jit",
purge: [
"./node_modules/@vechaiui/**/*.{js,ts,jsx,tsx}",
"./src/**/*.{js,jsx,ts,tsx}",
"./public/index.html",
],
darkMode: "class", // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [
require("@tailwindcss/forms"),
require("@vechaiui/core"),
],
} |
@samzhangjy 🙀 can you reproduce to another repo that I can debug |
Sure... Here it goes: https://github.com/samzhangjy/stcomix-web... The code is messy, though... The usage of tabs should be in file |
@samzhangjy Ok I missing config in document to this component ... You need to add theme: {
extend: {
borderColor: {
inherit: "inherit",
},
},
}, |
Thank you. However... When I tried to use the soft-rounded style, it's still unstyled... I put the wrong type of tabs in my repo... It should be the style |
Ohh yes… You did fixed it… I copied the code again and it worked fine… Sorry 😅
PS: The import section of `tabs` seems to be wrong… `react-tooltip` should be replaced by `react-tabs`… Thank you!
***@***.***D77693.D60A0550]
发件人: ***@***.***>
发送时间: Sunday, July 11, 2021 8:26 PM
收件人: ***@***.***>
抄送: Sam ***@***.***>; ***@***.***>
主题: Re: [vechai/vechaiui] [Bug] RadixUI Tabs aren't styled as excepted (#27)
I copied from document and It works fine both light & dark mode
[Screen Shot 2021-07-11 at 19 25 47]<https://user-images.githubusercontent.com/84853682/125194987-ccd17300-e27d-11eb-848e-6fc5b0a07b89.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#27 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANQCYENVAIDJRMO67XHTKKLTXGEXPANCNFSM5AEHKX6Q>.
|
oh shit thanks u 🙀 |
Hello. I'm using VechaiUI in my personal project and when I use the RadixUI Tabs, the styles aren't complete. I mean, it has the bottom border but except that, there's no style at all. However, the tabs's functions are all functional... Here's the screen shot:
I'm using the very same code as shown in the docs:
Thank you!
P.S.: The documentation used
cx
function to concat class names, but the function itself wasn't written in the example code and / or imported from extrenal libraries. It's pretty confusing to people at first still....The text was updated successfully, but these errors were encountered: