-
Notifications
You must be signed in to change notification settings - Fork 273
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-badge): add different design types #7564
Conversation
packages/main/src/Badge.ts
Outdated
@property({ type: ValueState, defaultValue: ValueState.None }) | ||
valueState!: `${ValueState}`; | ||
|
||
/** |
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.
can we combine this with colorScheme property. Both actually have colors from 1 to 10 and we can reuse the same enumeration?
* @alias sap.ui.webc.main.types.BadgeDesignType | ||
*/ | ||
enum BadgeDesignType { | ||
/** |
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.
maybe ColorSet1, ColorSet2, ColorSet3 and ValueState or Semantic?
lets discuss in the meeting
packages/main/src/Badge.ts
Outdated
* @public | ||
*/ | ||
@property({ defaultValue: BadgeDesignType.ColorScheme }) | ||
designType!: `${BadgeDesignType}`; |
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.
should we use just "design"? we already have "design" in other controls
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 UA perspective, I approve the changes.
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.
Property names for the indication colors and the overall approach is OK from MessageStrip side.
* feat(ui5-badge): add different design types
No description provided.