-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui5-timeline-item): introduce state
property
#10277
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- From the commit description - the semantic meaning gets set over the
ui5-timeline-item
and not only over the icon. - You could add a test, in order to check whether the
accessible-description
property results intoaria-description
over the inner element.
Tested with NVDA and JAWS. The announcements are as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See Dialog, NotificationListItem:
@property() state:
${ValueState}= "None" (edited)
In short:
- change the name to
state
to be consistent - use the existing enum
state
property
🎉 This PR is included in version v2.7.0-rc.1 🎉 The release is available on v2.7.0-rc.1 Your semantic-release bot 📦🚀 |
Introducing
state
property into the<ui5-timeline-item>
web component.The
state
property allows you to set the semantic state of the icon using the following values:Information
,Positive
,Critical
,Negative
orNone
.Each state automatically changes the icon's color to visually represent the corresponding state, improving clarity and consistency.
The
state
is also accessible. Screen readers will read the text, ensuring that users with assistive technologies can understand the semantic meaning.Sample usecases with and without
state
propertyWith
Without
Fixes: #9806