Skip to content

Commit 9f2efc6

Browse files
committed
Improve kdoc
1 parent 07322ee commit 9f2efc6

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

core/src/main/java/com/orange/ouds/core/component/OudsAlertMessage.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,23 +254,23 @@ enum class OudsAlertMessageActionLinkPosition {
254254
* It determines the background and the icon colors of the alert message.
255255
* It also carries the optional icon to be displayed in the alert message. Depending on the status, this icon can be customizable or be a status dedicated icon.
256256
*
257-
* @property icon The icon to be displayed in the alert message, or `null` if there is no icon.
257+
* @property icon The [OudsAlertIcon] to be displayed in the alert message, or `null` if there is no icon.
258258
*/
259259
sealed class OudsAlertMessageStatus(status: Companion.Status, val icon: OudsAlertIcon? = null) : OudsAlertStatus(status) {
260260

261261
/**
262262
* Neutral status can be used for generic informational messages that provide context but carry no semantic meaning.
263263
* Ideal for subtle notices, contextual help, or content highlights within pages.
264264
*
265-
* @property icon Icon to be displayed at the start of the inline alert.
265+
* @property icon The optional [OudsAlertIcon] to be displayed at the start of the inline alert.
266266
*/
267267
class Neutral(icon: OudsAlertIcon? = null) : OudsAlertMessageStatus(Companion.Status.Neutral, icon)
268268

269269
/**
270270
* Accent status uses brand colours and can include decorative icons to draw attention to key marketing or communication content.
271271
* Perfect for promotional, inspirational, or brand-driven highlights that engage the user positively.
272272
*
273-
* @property icon Icon to be displayed at the start of the inline alert.
273+
* @property icon The optional [OudsAlertIcon] to be displayed at the start of the inline alert.
274274
*/
275275
class Accent(icon: OudsAlertIcon? = null) : OudsAlertMessageStatus(Companion.Status.Accent, icon)
276276

core/src/main/java/com/orange/ouds/core/component/OudsInlineAlert.kt

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,9 @@ object OudsInlineAlertDefaults {
104104
/**
105105
* The status of an [OudsInlineAlert]. Each status is designed to convey a specific meaning and ensure clarity in communication.
106106
* It determines the text and the icon colors of the inline alert.
107-
* It also carries the optional icon to be displayed in the alert message. Depending on the status, this icon can be customizable or be a status dedicated icon.
107+
* It also carries the icon to be displayed in the inline alert. Depending on the status, this icon can be customizable or be a status dedicated icon.
108108
*
109-
*
110-
* @property icon The icon to be displayed in the inline alert.
109+
* @property icon The [OudsAlertIcon] to be displayed in the inline alert.
111110
*/
112111
sealed class OudsInlineAlertStatus(status: Companion.Status, val icon: OudsAlertIcon) : OudsAlertStatus(status) {
113112

@@ -116,7 +115,7 @@ sealed class OudsInlineAlertStatus(status: Companion.Status, val icon: OudsAlert
116115
* tips, general information, or descriptive labels — where no specific feedback or urgency is required. Appropriate for help sections, dashboards, or
117116
* onboarding flows.
118117
*
119-
* @property icon Icon to be displayed in the inline alert.
118+
* @property icon The [OudsAlertIcon] to be displayed in the inline alert.
120119
*/
121120
class Neutral(icon: OudsAlertIcon) : OudsInlineAlertStatus(Companion.Status.Neutral, icon) {
122121
override val defaultIconPainter
@@ -134,20 +133,20 @@ sealed class OudsInlineAlertStatus(status: Companion.Status, val icon: OudsAlert
134133
class Accent(icon: OudsAlertIcon) : OudsInlineAlertStatus(Companion.Status.Accent, icon)
135134

136135
/**
137-
* Positive status confirms that an action was completed successfully. Uses a green color and the standard success icon.
138-
* This status displays a dedicated default icon.
136+
* Positive status confirms that an action was completed successfully.
137+
* It uses a green color and the standard success icon.
139138
*/
140139
object Positive : OudsInlineAlertStatus(Companion.Status.Positive, OudsAlertIcon.Default)
141140

142141
/**
143-
* Info status provides neutral information or updates about the system or account status. Uses blue for neutrality and clarity.
144-
* This status displays a dedicated default icon.
142+
* Info status provides neutral information or updates about the system or account status.
143+
* It uses blue for neutrality and clarity and a dedicated default icon.
145144
*/
146145
object Info : OudsInlineAlertStatus(Companion.Status.Info, OudsAlertIcon.Default)
147146

148147
/**
149-
* Warning status draws attention to potential issues or upcoming changes. Uses yellow to signal caution while remaining non-blocking.
150-
* This status displays a dedicated default icon.
148+
* Warning status draws attention to potential issues or upcoming changes.
149+
* It uses yellow to signal caution while remaining non-blocking and a dedicated default icon.
151150
*/
152151
object Warning : OudsInlineAlertStatus(Companion.Status.Warning, OudsAlertIcon.Default)
153152

0 commit comments

Comments
 (0)