# Is there a way to restyle the solution?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459
**Category:** Feature
**Tags:** pr-welcome, solved
**Created:** [Juin 26, 2016, 1:00 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459 "2016-06-26T13:00:16Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [Juin 26, 2016, 1:00 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/1 "2016-06-26T13:00:16Z")

</div>

and also to change the background of the accepted answer in the topic page to green? that is to make it more handy, in a topic with lots of replies.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Juin 27, 2016, 2:19 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/2 "2016-06-27T02:19:33Z")

</div>

No, but I think the solution should be expandable under the first post as if it was a quoted reply cc @sam

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [Juin 27, 2016, 4:35 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/3 "2016-06-27T04:35:36Z")

</div>

at the moment a link is shown below the first post and when one clicks on it, we go to the post directly.

is it possible to change this to a quoted reply, since i think this would be better than a jump?

p.s.: i don’t know how to discuss the reason! perhaps the jump make the user afraid of losing the discussion in between, while the immediate next reply still gives the chance to easily go down to other discussions as well. but this is not a good reasoning!

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [Juin 27, 2016, 4:48 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/4 "2016-06-27T04:48:14Z")

</div>

btw, in order to change the css of accepted answer this doesn’t work:

[https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155/45](https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155/45)

any trick to make it work?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [Juin 27, 2016, 11:13 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/5 "2016-06-27T11:13:26Z")

</div>

Looks like the `.topic-post.accepted-answer` is no longer being injected into the DOM (probably happened when it was converted to using vDOM?).

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Juin 27, 2016, 11:48 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/6 "2016-06-27T11:48:23Z")

</div>

We should consider this a bug for the release @sam

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Mars 8, 2017, 9:57 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/7 "2017-03-08T21:57:14Z")

</div>

OK, now that I added the extensibility this is doable quite easily

> <https://github.com/discourse/discourse/blob/0c03ccb01e1ee96d48582960fed451836f9fc637/app/assets/javascripts/discourse/lib/plugin-api.js.es6#L431-L441>

Going to put a #pr-welcome on this

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Mars 8, 2017, 10:18 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/8 "2017-03-08T22:18:06Z")

</div>

Why is this needed? If you can already expand the full answer as a quote (as of today thanks @david) , why do we also need the post docked underneath as well?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Mars 8, 2017, 10:19 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/9 "2017-03-08T22:19:42Z")

</div>

This is about custom styling of the accepted answer, say you wanted the accepted answer have a beige background and some slik CSS animation you could do so.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [Mars 8, 2017, 10:19 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/10 "2017-03-08T22:19:42Z")

</div>

Confused me as well, but I think @sam is talking about this bit:

> [@cpradio](#):
>
> Looks like the .topic-post.accepted-answer is no longer being injected into the DOM (probably happened when it was converted to using vDOM?).

The topic name is misleading as the discussion changed halfway through

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [Mars 8, 2017, 10:33 UTC](https://meta.discourse.org/t/is-there-a-way-to-restyle-the-solution/46459/11 "2017-03-08T22:33:47Z")

</div>

No, it is the same thing. There used to be a class on the post that was marked as the solution, yes, it is not as necessary due to your changes, but it makes for a nice API ability for other plugins (future thinking)
