Skip to content
Open
Changes from all commits
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
24 changes: 16 additions & 8 deletions ui/perfherder/graphs/HighlightOptionsDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const HighlightOptionsDropdown = ({
];

return (
<Dropdown className="me-0 text-nowrap" title="Highlight Options Dropdown">
<Dropdown className="me-0 text-nowrap">
<Dropdown.Toggle
variant="secondary"
aria-label="Highlight Options Dropdown"
Expand All @@ -47,15 +47,23 @@ const HighlightOptionsDropdown = ({
<Dropdown.Item
key={key}
as="button"
className="d-flex align-items-center"
onClick={() => updateStateParams({ [key]: !isChecked })}
role="menuitemcheckbox"
aria-checked={isChecked}
>
{isChecked && (
<FontAwesomeIcon
icon={faCheck}
className="me-2"
title="Selected"
/>
)}
<span
className="border border-secondary rounded me-2 d-flex align-items-center justify-content-center"
style={{ width: '18px', height: '18px' }}
aria-hidden="true"
>
{isChecked && (
<FontAwesomeIcon
icon={faCheck}
style={{ fontSize: '12px' }}
/>
)}
</span>
{label}
</Dropdown.Item>
))}
Expand Down