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

Support deletion state for post summary child answers #1186

Open
kylejrp opened this issue Nov 18, 2022 · 0 comments
Open

Support deletion state for post summary child answers #1186

kylejrp opened this issue Nov 18, 2022 · 0 comments

Comments

@kylejrp
Copy link
Contributor

kylejrp commented Nov 18, 2022

Is your feature request related to a problem? Please describe.
In one part of the Stack Overflow codebase, we're adding .s-post-summary__deleted alongside .s-post-summary--answer to show that the parent is not deleted, but the child is. It happened to work out nicely:
image
https://codepen.io/kpollardso/pen/wvXPMeY

The documentation on post summary doesn't list this case on the page. There's also some other states that may come up in the future like ignored, watched, or pinned.

Describe the solution you'd like
I'd like this usage to be added to the documentation for post summary so we can document this as official usage. It would also be appreciated if you could review this usage and make any styling changes necessary for this new use case.

Describe alternatives you've considered
I was reaching for a generic Stacks utility that didn't exist, something like how Bootstrap does card backgrounds/color and card borders. It would be nice to be able to have something more top-level that we could use to designate some components as deleted. Something that would combine the font colors, border colors, and background colors all into one utility class so I can put .s-danger or something on a div and have it look like it's deleted.

Additional context
If you want a live example, this appears when you've saved one of your deleted answers into Saves on Stack Overflow, it's using our PostSummary view component thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant