Page MenuHomePhabricator

Icon-only dismiss button should have an aria-label
Closed, DuplicatePublic

Description

QuickSurveys uses an icon-only Codex button to allow the user to dismiss the survey. This button is currently throwing the following warning:

[Vue warn]: icon-only buttons require one of the following attribute: aria-label or aria-hidden.
		See documentation on https://doc.wikimedia.org/codex/latest/components/demos/button.html#icon-only-button-1 
  at <CdxButton weight="quiet" onClick=fn<bound dismissAndDestroy> > 
  at <QuickSurvey onLogEvent=fn onDismiss=fn<dismissSurvey> onDestroy=fn<onDestroy>  ... > 
  at <App>
w

I recommend setting the aria-label attribute on the <cdx-button> tag to something like "Close" or "Dismiss" (or rather, an i18n-ed version thereof).