Misleading toggle announcement
What's the issue The 'Calendar' and 'Date Range' buttons are separate buttons. However, both use the attribute aria-pressed, which is misleading as it implies that the button can be "pressed" and then "un-pressed" by activating the same trigger, when in actuality the user must press the adjacent button.
Simplified Code Sample
Why it matters Screen reader users will have certain expectations on how to interact with an element or component based what is announced. If an attribute is added but the matching functionality is missing, the user will not be able to properly interact with the element or component.
Our recommendation
Group the buttons so users will know they are related. On the parent
Code example
Type WCAG 2
Success Criteria 1.3.1 Info and Relationships (A)
Severity Medium
Item Calendar / Date Range toggle buttons
Section Modal - Modal as Overlay