🐼 Panda v0.26.0 #1975
anubra266
announced in
Announcements
🐼 Panda v0.26.0
#1975
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To upgrade to v0.26.0:
What's Changed
Fixed
[]
escape hatch clashed with named grid lines@pandacss/postcss
plugin regression when the entry CSS file (with@layer
rules order) contains user-definedrules, those user-defined rules would not be reloaded correctly after being changed.
config.outdir
would not be set in thepanda.config
Internal details: The
outdir
would not have any value after a config change due to the fallback being set in theinitial config resolving code path but not in context reloading code path, moving it inside the config loading function
fixes this issue.
Added
data-placeholder
anddata-placeholder-shown
topreset-base
conditionsborderWidths
token to typesChanged
and Node.js.
config.strictTokens
will only affect properties that have config tokens, such ascolor
,bg
,borderColor
, etc.config.strictPropertyValues
is added and will throw for properties that do not have config tokens, such asdisplay
,content
,willChange
, etc. when the value is not a predefined CSS value.In version
0.19.0 we changed
config.strictTokens
typings a bit so that the only property values allowed were the config tokens OR the predefined CSS values, ex:
flex
for the property
display
, which prevented typos such asdisplay: 'aaa'
.The problem with this change is that it means you would have to provide every CSS properties a given set of values so
that TS wouldn't throw any error. Thus, we will partly revert this change and make it so that
config.strictTokens
shouldn't affect properties that do not have config tokens, such as
content
,willChange
,display
, etc.v0.19.0:
now:
Instead, if you want the v.19.0 behavior, you can use the new
config.strictPropertyValues
option. You can combine itwith
config.strictTokens
if you want to be strict on both properties with config tokens and properties without configtokens.
The new
config.strictPropertyValues
option will only be applied to this exhaustive list of properties:Beta Was this translation helpful? Give feedback.
All reactions