Repository navigation
v0.78.0
Changed
raft-ui/prefer-scroll-areaalso reads class lists kept in a const and aclassNameproperty: a native-scrolling class in aconstof the same file is reported when the const is used as a class there (const log = "max-h-64 overflow-auto", thenclassName={log}orcn(log)), wherever in the file it is declared; and so is one in aclassName,classor*ClassNameproperty, such as a recipe slot's option (content({ className: "overflow-y-auto" })). The escape comment works on them as before. (#1078)- Why: apps keep many class lists in consts; Stamp's port of the rule found four native scrollers this way that the rule missed (Kirby, #proj-raft-ui:#209).
- Affects: upgrading can report scrollers the rule didn't see before; fix them, or mark an allowed exception. The Raft app gets one, the onboarding form panel (
ONBOARDING_CREATE_FORM_PANEL_CLASS); its desktop app none. A string in a const that is never used as a class is still not reported. - Docs: https://raft-design.botiverse.build/about/use-raft-ui/#lint-rules
Full Changelog: v0.77.1...v0.78.0