Hi I need add keyboard navigation and accessibility to my custom dropdown button. Do you have any ideas? I thought about using aria?
<div class="dropdown-select">
  <input type="hidden" name="select_offer" class="dropdown-select--value" />
  <button class="dropdown-select--btn"> Lorem ipsum
    <span class="sr-only">(rozwiń listę)</span>
  </button>
  <ul class="opl-dropdown-select--list">
    <li>
      <a href="#" data-option="value1">Lorem ipsum</a>
    </li>
    <li>
      <a href="#" data-option="value2">Lorem ipsum</a>
    </li>
    <li>
      <a href="#" data-option="value3">Lorem ipsum</a>
    </li>
  </ul>
</div>
				
                        
The Mozilla Foundation has described a technique for custom listbox elements: Using the listbox role which implies multiple considerations :
listboxrole to the elementoptionrole on the different choicesaria-activedescendantfor current focused elementaria-selectedfor current selected elementWCAG has full working examples in the page Listbox examples but this page is still under development.