add span back

This commit is contained in:
Severiano Badajoz
2020-05-27 13:53:04 -07:00
parent 241f219ae6
commit 13d24b623c
@@ -15,10 +15,10 @@ import * as globals from "../../../globals";
import styles from "../categorical.css"; import styles from "../categorical.css";
import AnnoDialog from "../annoDialog"; import AnnoDialog from "../annoDialog";
import LabelInput from "../labelInput"; import LabelInput from "../labelInput";
import Truncate from "../../util/truncate";
import { AnnotationsHelpers } from "../../../util/stateManager"; import { AnnotationsHelpers } from "../../../util/stateManager";
import { labelPrompt, isLabelErroneous } from "../labelUtil"; import { labelPrompt, isLabelErroneous } from "../labelUtil";
import Truncate from "../../util/truncate";
/* this is defined outside of the class so we can use it in connect() */ /* this is defined outside of the class so we can use it in connect() */
function _currentLabel(ownProps, categoricalSelection) { function _currentLabel(ownProps, categoricalSelection) {
@@ -383,6 +383,8 @@ class CategoryValue extends React.Component {
: globals.leftSidebarWidth - 145 - 26 : globals.leftSidebarWidth - 145 - 26
} }
fontSize={12} fontSize={12}
>
<span
data-testid={`categorical-value-${metadataField}-${displayString}`} data-testid={`categorical-value-${metadataField}-${displayString}`}
data-testclass="categorical-value" data-testclass="categorical-value"
style={{ style={{
@@ -403,6 +405,7 @@ class CategoryValue extends React.Component {
}} }}
> >
{displayString} {displayString}
</span>
</Truncate> </Truncate>
{editModeActive ? ( {editModeActive ? (
<div> <div>