Skip to content
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

SuperSelect::Multiple - fix placeholder style and layout #2473

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

alex-ju
Copy link
Member

@alex-ju alex-ju commented Oct 2, 2024

📌 Summary

SuperSelect::Single has an HDS-level component for the placeholder, managing the mark-up and the style.

However, the placeholder for SuperSelect::Multiple is more complex and doesn't sit at the HDS-level. Hence it requires font style adjustments (only when the search is not enabled) and layout adjustments to fill the parent container (otherwise it will result in trimmed text, as reported by our consumers).

📸 Screenshots

BeforeAfter
Screenshot 2024-10-02 at 12 06 52 Screenshot 2024-10-02 at 12 05 45

🔗 External links

Jira ticket: HDS-3916


👀 Component checklist

💬 Please consider using conventional comments when reviewing this PR.

Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
hds-showcase ✅ Ready (Inspect) Visit Preview Oct 2, 2024 11:14am
hds-website ✅ Ready (Inspect) Visit Preview Oct 2, 2024 11:14am

Copy link
Contributor

@didoo didoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


<SF.Item {{style flex="1"}} @label="Selected">
</SG.Item>
<SG.Item @label="With placeholder">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@alex-ju alex-ju merged commit 2141517 into main Oct 2, 2024
14 checks passed
@alex-ju alex-ju deleted the alex-ju/fix-power-select-placeholder branch October 2, 2024 16:21
@hashibot-hds hashibot-hds mentioned this pull request Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants