I have a HTML structure like this:
<fieldset>
<legend>Legend</legend>
<span>Labeltext</span>
<button aria-pressed="false">Filter 1</button>
<button aria-pressed="true">Filter 2</button>
</fieldset>
The span-Element acts like a label for the two buttons. Each button acts independently. As the design is given, it is not possible to change the structure of the text.
As far as i know, it is not possible to add one label to two buttons.
Is it sufficient to extend the label of the buttons and add the "label" (span) into it? Like this: <button aria-pressed="false" aria-label="Labeltext Filter 1">Filter 1</button>
The alternative would be to use the Checkbox Pattern from the ARIA Authoring Practices Guide (APG), which would change the "label" (span) into a heading. But there is no other heading around, so this might be more confusing for screenreader user.