feat: added @suffixIcon arg to oss::button#639
Draft
OwenCoogan wants to merge 5 commits intomasterfrom
Draft
Conversation
edouardmisset
approved these changes
Feb 13, 2026
Comment on lines
53
to
56
| test('it applies margin-left-px-6 to suffix icon when label is present', async function (assert) { | ||
| await render(hbs`<OSS::Button @label="Test" @suffixIcon="fas fa-chevron-down" />`); | ||
|
|
||
| assert.dom('.upf-btn i.fa-chevron-down').hasClass('margin-left-px-12'); |
There was a problem hiding this comment.
question: Is it 12px or 6px ? I'm confused.
Suggested change
| test('it applies margin-left-px-6 to suffix icon when label is present', async function (assert) { | |
| await render(hbs`<OSS::Button @label="Test" @suffixIcon="fas fa-chevron-down" />`); | |
| assert.dom('.upf-btn i.fa-chevron-down').hasClass('margin-left-px-12'); | |
| test('it applies margin-left-px-12 to suffix icon when label is present', async function (assert) { | |
| await render(hbs`<OSS::Button @label="Test" @suffixIcon="fas fa-chevron-down" />`); | |
| assert.dom('.upf-btn i.fa-chevron-down').hasClass('margin-left-px-12'); |
Comment on lines
+217
to
+222
| export const WithSuffixIcon = Template.bind({}); | ||
| WithSuffixIcon.args = { | ||
| ...defaultArgs, | ||
| ...{ | ||
| suffixIcon: 'fas fa-chevron-down' | ||
| } |
There was a problem hiding this comment.
question: Should it be suffix only? Or is it intended to be prefix and suffix icons?
Suggested change
| export const WithSuffixIcon = Template.bind({}); | |
| WithSuffixIcon.args = { | |
| ...defaultArgs, | |
| ...{ | |
| suffixIcon: 'fas fa-chevron-down' | |
| } | |
| export const WithPrefixAndSuffixIcon = Template.bind({}); | |
| WithSuffixIcon.args = { | |
| ...defaultArgs, | |
| ...{ | |
| suffixIcon: 'fas fa-chevron-down' | |
| } |
Contributor
There was a problem hiding this comment.
Imo suffix is sufficient here, the goal is just to have an example of usage available in storybook
aprentout
approved these changes
Feb 13, 2026
Comment on lines
+217
to
+222
| export const WithSuffixIcon = Template.bind({}); | ||
| WithSuffixIcon.args = { | ||
| ...defaultArgs, | ||
| ...{ | ||
| suffixIcon: 'fas fa-chevron-down' | ||
| } |
Contributor
There was a problem hiding this comment.
Imo suffix is sufficient here, the goal is just to have an example of usage available in storybook
JulienVannier66
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Related to: #
What are the observable changes?
Good PR checklist