You're getting the "Multiple naming techniques used" WCAG accessibility error from the ARC Toolkit because each of your <div role="combobox"> elements includes both:
aria-label
aria-labelledby
This violates WCAG 2.2 Success Criterion 4.1.2 – Name, Role, Value, because assistive technologies like screen readers may become confused when multiple techniques are used to provide an accessible name for the same element.
📌 The Problem:
These are mutually exclusive ways to give a name to an element:
aria-label: Provides a string label directly.
aria-labelledby: Refers to the IDs of existing elements to use their text content as the label.
If both aria-label and aria-labelledby are present, screen readers may read both—or neither reliably, which can confuse users who depend on assistive technologies.
🕵️♂️ Example from your code:
<div tabindex="0" role="combobox"
aria-controls="templateName-select"
aria-expanded="false"
aria-haspopup="listbox"
aria-label="Template Name"
aria-labelledby="templateName-select"
id="templateName-select"
class="...">
</div>
- ✅
aria-label="Template Name" is good.
- ✅
aria-labelledby="templateName-select" could also be valid if it points to another visible label element.
- ❌ But having both is ambiguous, hence the warning.
Also note: in your example, aria-labelledby="templateName-select" points to the same element it's applied to, not a separate labeling element — that alone is invalid usage.
✔️ Fix Options:
You should choose one technique only:
✅ Option 1: Use aria-label only (simple, self-contained)
<div tabindex="0" role="combobox"
aria-controls="templateName-select"
aria-expanded="false"
aria-haspopup="listbox"
aria-label="Template Name"
id="templateName-select"
class="...">
</div>
✅ Option 2: Use aria-labelledby only (if you have a visible label)
Make sure the element referenced by aria-labelledby exists and contains descriptive text:
<label id="templateName-label">Template Name</label>
<div tabindex="0" role="combobox"
aria-controls="templateName-select"
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="templateName-label"
id="templateName-select"
class="...">
</div>
🧠 Tips
- For elements with visible text labels, prefer
aria-labelledby to tie accessibility to the visual UI.
- Only use
aria-label when there is no visible label and you still need to provide an accessible name.
- Avoid pointing
aria-labelledby to the same element it's on (id === aria-labelledby) — that’s circular and invalid.
✅ Result
By removing one of the naming attributes (aria-label or aria-labelledby), the ARC Toolkit error will go away, and your component will be more reliably interpreted by assistive tech.
Let me know if you want help refactoring the actual DOM or JSX.