fix(editor): keep the drawing still when the selection changes
The « Sélection : … » tag above the drawing mounted on select and unmounted on deselect, moving the canvas. It is now sr-only text, not live, in both twins; board 04 deviation recorded (owner 2026-11-12).
This commit is contained in:
1 parent
9f092ec1e2
commit
927537b343
6 files changed
+91
-8
No files matched your search
@@ -110,6 +110,15 @@ describe('selection and the list', () => {
|
||||
'Sélection : point',
|
||||
)
|
||||
})
|
||||
|
||||
it('keeps the selection tag out of the visual flow and not live', async () => {
|
||||
await mount()
|
||||
await selectFromList()
|
||||
const tag = screen.getByTestId('annotation-selection-tag')
|
||||
expect(tag).toHaveClass('sr-only')
|
||||
expect(tag).not.toHaveAttribute('aria-live')
|
||||
expect(tag).not.toHaveAttribute('role')
|
||||
})
|
||||
})
|
||||
|
||||
describe('a numeric edit', () => {
|
||||
|
||||
Reference in new issue
Block a user