Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/slimy-tools-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.workflow-requests.v1": patch
---

Fix accessibility issue by replacing role="button" span with semantic button element in ActiveFiltersBar
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ $font-size-normal: 12px;
@include flex-center;
background: transparent;
border: none;
padding: 0;
font: inherit;
width: 18px;
height: 18px;
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,15 @@ const ActiveFiltersBar: React.FC<ActiveFiltersBarProps> = (
<span className="filter-value">
{ filter.label }
</span>
<span
role="button"
tabIndex={ 0 }
<button
type="button"
aria-label={ t("workflowRequests:activeFiltersBar.removeFilter",
{ filter: filter.label }) }
onClick={ () => onRemove(filter) }
onKeyPress={ (e: React.KeyboardEvent) => {
if (e.key === "Enter" || e.key === " ") onRemove(filter);
} }
className="filter-remove-button"
>
<Icon name="close" size="small" className="icon" />
</span>
</button>
</div>
))
) : (
Expand Down
Loading