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

fix(accordion-item): stretch slotted actions only #11082

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Dec 17, 2024

Related Issue: #10731

Summary

This avoids unintentionally styling other actionable components and offers more flexibility.

Note: this changes styles to use explicit selectors instead of universal ones to improve maintainability.

@jcfranco jcfranco added the no changelog entry Use the commit override to avoid a changelog entry label Dec 17, 2024
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Dec 17, 2024
@jcfranco jcfranco marked this pull request as draft December 17, 2024 05:45
@jcfranco jcfranco marked this pull request as ready for review December 17, 2024 05:46
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Dec 17, 2024
@jcfranco
Copy link
Member Author

Alternatively, we could also tweak switch (and similar ones), so that it centers when stretched vertically.

@jcfranco jcfranco added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Dec 17, 2024
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

👍

@macandcheese
Copy link
Contributor

Alternatively, we could also tweak switch (and similar ones), so that it centers when stretched vertically.

This could be a nice fallback for all non-action elements. A user can always slot a div, unset styles - but I think center align is a more expected default than align-top?

@jcfranco
Copy link
Member Author

@macandcheese Fortunately, slotted, non-action items are already centered, so no further changes needed! 🎉

@jcfranco jcfranco merged commit c0dab73 into dev Dec 17, 2024
15 checks passed
@jcfranco jcfranco deleted the jcfranco/fix-accordion-item-actions-alignment branch December 17, 2024 20:49
@github-actions github-actions bot added this to the 2024-12-17 - Dec Milestone milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. no changelog entry Use the commit override to avoid a changelog entry pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants