+
:
}
@@ -28,6 +28,7 @@ export default function TimelineItemTemplate(this: TimelineItem) {
data-sap-focus-ref
class="ui5-tli-bubble"
tabindex={parseInt(this.forcedTabIndex)}
+ aria-description={this.timelineItemStateText}
>
{ this.name && name.call(this) }
diff --git a/packages/fiori/src/i18n/messagebundle.properties b/packages/fiori/src/i18n/messagebundle.properties
index ca7675c8c770..9d7c69b01ee3 100644
--- a/packages/fiori/src/i18n/messagebundle.properties
+++ b/packages/fiori/src/i18n/messagebundle.properties
@@ -98,6 +98,12 @@ NOTIFICATION_LIST_GROUP_EXPANDED=Expanded
#XACT: ARIA announcement for timeline label
TIMELINE_ARIA_LABEL=Timeline
+#XACT: ARIA announcement for the TimelineItem state
+TIMELINE_ITEM_INFORMATION_STATE_TEXT=Information State
+TIMELINE_ITEM_POSITIVE_STATE_TEXT=Positive State
+TIMELINE_ITEM_NEGATIVE_STATE_TEXT=Negative State
+TIMELINE_ITEM_CRITICAL_STATE_TEXT=Critical State
+
#XBUT: Button text for cancel button in the UploadCollectionItem
UPLOADCOLLECTIONITEM_CANCELBUTTON_TEXT=Cancel
diff --git a/packages/fiori/src/themes/TimelineItem.css b/packages/fiori/src/themes/TimelineItem.css
index 9b145271891a..3d5490a95629 100644
--- a/packages/fiori/src/themes/TimelineItem.css
+++ b/packages/fiori/src/themes/TimelineItem.css
@@ -33,6 +33,22 @@
inset-inline-start: 50%;
}
+:host([state="Positive"]) .ui5-tli-icon {
+ color: var(--sapPositiveElementColor);
+}
+
+:host([state="Negative"]) .ui5-tli-icon {
+ color: var(--sapNegativeElementColor);
+}
+
+:host([state="Critical"]) .ui5-tli-icon {
+ color: var(--sapCriticalElementColor);
+}
+
+:host([state="Information"]) .ui5-tli-icon {
+ color: var(--sapInformativeElementColor);
+}
+
:host(:not([icon])[layout="Vertical"]) .ui5-tli-indicator::before {
inset-block-start: 1.75rem;
}
diff --git a/packages/fiori/test/pages/Timeline.html b/packages/fiori/test/pages/Timeline.html
index 15e6abfca042..527b9a4bea50 100644
--- a/packages/fiori/test/pages/Timeline.html
+++ b/packages/fiori/test/pages/Timeline.html
@@ -286,6 +286,33 @@
Advanced Timeline - Horizontal With Groups and Diverse Components
+
+
+ Timeline with Various Timeline Item States
+
+
+
+
+ Compilation succeeded.
+
+
+ Lint completed with minor issues.
+
+
+
+
+ Unit tests failed.
+
+
+ Integration tests have warnings.
+
+
+ End-to-end tests passed.
+
+
+
+
+