Skip to content

Commit a53adb0

Browse files
Added not annotatable class usage
1 parent 7a97e64 commit a53adb0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { PointerEvent, ReactNode, useCallback, useEffect, useMemo, useState } from 'react';
1+
import { PointerEvent, ReactNode, useEffect, useMemo, useState } from 'react';
2+
23
import { useAnnotator, useSelection } from '@annotorious/react';
3-
import { isRevived, TextAnnotation, TextAnnotator } from '@recogito/text-annotator';
4-
import { isMobile } from './isMobile';
4+
import { isRevived, NOT_ANNOTATABLE_CLASS, TextAnnotation, TextAnnotator } from '@recogito/text-annotator';
5+
56
import {
67
autoUpdate,
78
flip,
@@ -16,6 +17,8 @@ import {
1617
useRole
1718
} from '@floating-ui/react';
1819

20+
import { isMobile } from './isMobile';
21+
1922
import './TextAnnotatorPopup.css';
2023

2124
interface TextAnnotationPopupProps {
@@ -122,7 +125,7 @@ export const TextAnnotatorPopup = (props: TextAnnotationPopupProps) => {
122125
returnFocus={false}
123126
initialFocus={initialFocus}>
124127
<div
125-
className="a9s-popup r6o-popup annotation-popup r6o-text-popup not-annotatable"
128+
className={`a9s-popup r6o-popup annotation-popup r6o-text-popup ${NOT_ANNOTATABLE_CLASS}`}
126129
ref={refs.setFloating}
127130
style={floatingStyles}
128131
{...getFloatingProps(getStopEventsPropagationProps())}>

0 commit comments

Comments
 (0)