Skip to content

Commit

Permalink
Move the text of the remove button into a span.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bhch committed Sep 5, 2021
1 parent a0f73a9 commit 2b7f076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/containers.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function FormRow(props) {
onClick={(e) => props.onRemove(name)}
title="Remove"
>
×
<span>&times;</span>
</Button>
}
<div className="rjf-form-row-inner">
Expand Down
2 changes: 1 addition & 1 deletion src/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export function getArrayFormRow(data, schema, name, onChange, onAdd, onRemove, l
onClick={(e) => onRemove(name + '-' + index)}
title="Remove"
>
&times;
<span>&times;</span>
</Button>
}
{i}
Expand Down

0 comments on commit 2b7f076

Please sign in to comment.