fix(editor): drop the permanent will-change on the findings list, its text blurred on screen
This commit is contained in:
1 parent
9cedaccbb3
commit
1f0b710b6e
2 files changed
+13
-1
No files matched your search
@@ -195,7 +195,6 @@ export default function FindingsTreePicker({
|
||||
initial="enter"
|
||||
animate="center"
|
||||
transition={{ duration: 0.22, ease: 'easeOut' }}
|
||||
style={{ willChange: 'transform, opacity' }}
|
||||
className="space-y-1.5 max-h-64 overflow-auto pr-1"
|
||||
>
|
||||
{currentNodes.length === 0 ? (
|
||||
|
||||
@@ -221,4 +221,17 @@ describe('FindingsTreePicker on a sheet finding zone', () => {
|
||||
).not.toBeChecked()
|
||||
})
|
||||
})
|
||||
|
||||
it('the findings list carries no permanent compositing hint (text stays crisp)', () => {
|
||||
render(
|
||||
<FindingsTreePicker
|
||||
zone={sheet.findingZone('hip')!}
|
||||
selected={[]}
|
||||
onChange={() => {}}
|
||||
/>,
|
||||
)
|
||||
const ul = document.querySelector('ul') as HTMLElement
|
||||
expect(ul.getAttribute('style') ?? '').not.toContain('will-change')
|
||||
expect(ul.style.willChange).toBe('')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user