Allow for text alternative to be passed into icon in calcite-notice and calcite-alert #10340
Open
2 of 6 tasks
Labels
0 - new
New issues that need assignment.
a11y
Issues related to Accessibility fixes or improvements.
ArcGIS Hub
Issues logged by ArcGIS Hub team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
needs triage
Planning workflow - pending design/dev review.
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Check existing issues
Summary
As color alone cannot be used to communicate status, our design team typically uses an icon on notices or alerts that belong to
kind: success, danger, warning
. However, the icon in the notice / alert does not allow us to pass in an accessible label, which was requested on a recent Hub accessibility audit. Our work-around is putting the status into the actual message as a string, but ideally, we'd be able to combine the inclusion of an icon with that status, so that the main message of the component can be consolidated.Actual Behavior
The icons included on the notices and alerts are set to aria-hidden="true" and we cannot change them.
Expected Behavior
We'd like to be able to pass a simple status label onto icons included in success, danger, and warning style notices and alerts, such as
success
,warning
,error
,attention
.Reproduction Sample
https://developers.arcgis.com/calcite-design-system/components/notice/
Reproduction Steps
Reproduction Version
v2.12.2
Working W3C Example/Tutorial
No response
Relevant Info
No response
Regression?
No response
Priority impact
impact - p3 - not time sensitive
Calcite package
Esri team
ArcGIS Hub
The text was updated successfully, but these errors were encountered: