Conversation
There was a problem hiding this comment.
@coraliefeil Correct me if I´m wrong, but as I remember it, the badge is supposed to "grow to the left" when the texts gets longer.
@Vahid1919 That is the exact point I got stuck the last time, as you have to change the positioning of the badge in the button component. See FIGMA.
|
Yes growing to the left would be good ... if possible in code ... if that is causing too much stress, centered would be ok as well. only to the right growing would look weird I guess. |
|
@Vahid1919 What is the current state of this ticket? |
@mariohamann I have to look into the growing behavior to see what I can do. Currently it is growing to the right which is not the behaviour we want. Moving this back to "In Progress" as this is something that is waiting on me. |
@coraliefeil @MarcMatthiae Can confirm that the current behavior is centered, not right. |
|
Well, if it is growing from it’s center then that’s ok ... Nevertheless this comments still neds fixing: Pls set badge to inverted: true when showing it together with an inverted button. Pls add a story for a tertiary button - icon only - where the badge is positioned top-right to the icon. (https://www.figma.com/file/frKFVz9UBKAts...) THX |
Merge branch 'main' into feat/sd-button-sample
|
@coraliefeil Requesting re-review after a fix for the tertiary buttons :) |
|
@van-nguyen-ht Assigning this to you for the Chromatic tests/review :) I addressed Colarie's comments in Chromatic. |
|
@Vahid1919 va |
|
@Vahid1919 @mariohamann |
|
@van-nguyen-ht I aligned a small margin difference I noticed between the inverted and non-inverted tertiary buttons. Please review :) |
# [@solid-design-system/components-v1.17.0](components/1.16.0...components/1.17.0) (2023-10-06) ### Features * ✨ sd-button with sd-badge sample ([#420](#420)) ([da1f63a](da1f63a))
# [@solid-design-system/components-v1.17.0](components/1.16.0...components/1.17.0) (2023-10-06) ### Features * ✨ sd-button with sd-badge sample ([#420](#420)) ([da1f63a](da1f63a))


Description:
Added a samples story to showcase the sd-button working with sd-badge. Closes #341
Definition of Reviewable:
PR notes: Irrelevant elements should be removed.