v3.0: Support for tailwindcss v3.2.2+ #752
ben-rogerson
started this conversation in
Releases
Replies: 2 comments 8 replies
-
Arbitrary selector parent issuesexport const Table = styled.table(() => [
tw`w-full table-fixed`,
tw`[tr]:h-[82px]`,
tw`[td,th]:(border-b border-r bg-white px-4 text-center border-[#e6e5e5] last:border-r-0)`,
tw`[th]:(font-semibold text-base)`,
tw`[td]:(font-medium text-sm text-dimgray first:text-base)`,
tw`[tbody tr:last-of-type]:[td,th]:border-b-0`,
]) tw`[td,th]:(border-b border-r bg-white px-4 text-center border-[#e6e5e5] last:border-r-0)`
// ↓ ↓ ↓ ↓ ↓ ↓
{
"& td,th": {
// ...
},
"td,th:last-child": {
"borderRightWidth": "0px"
}
}
// 3.0.0-rc.3
{
"td,th": {
// ...
":last-child": {
"borderRightWidth": "0px"
}
}
} tw`[tbody tr:last-of-type]:[td,th]:border-b-0`
// ↓ ↓ ↓ ↓ ↓ ↓
{
"& tbody tr:last-of-type td,th": {
"borderBottomWidth": "0px"
}
}
// 3.0.0-rc.3
{
"tbody tr:last-of-type": {
"td,th": {
"borderBottomWidth": "0px"
}
}
} tw`[path[fill='rgb(51,51,51)']]:[fill:white]`
// ↓ ↓ ↓ ↓ ↓ ↓
{
"& path[fill='rgb(51ⱑⱑ)']": {
"fill": "white"
}
}
// 3.0.0-rc.3
{
"path[fill='rgb(51,51,51)']": {
"fill": "white"
}
} |
Beta Was this translation helpful? Give feedback.
8 replies
-
Congrats on the release! :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See release notes
Beta Was this translation helpful? Give feedback.
All reactions