Skip to content

Commit 2b7f076

Browse files
committed
Move the text of the remove button into a span.
This is done to provide better styling options such as hiding the text and only displaying the icon, only showing the text on screen readers.
1 parent a0f73a9 commit 2b7f076

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/containers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function FormRow(props) {
2020
onClick={(e) => props.onRemove(name)}
2121
title="Remove"
2222
>
23-
×
23+
<span>&times;</span>
2424
</Button>
2525
}
2626
<div className="rjf-form-row-inner">

src/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function getArrayFormRow(data, schema, name, onChange, onAdd, onRemove, l
179179
onClick={(e) => onRemove(name + '-' + index)}
180180
title="Remove"
181181
>
182-
&times;
182+
<span>&times;</span>
183183
</Button>
184184
}
185185
{i}

0 commit comments

Comments
 (0)