# Шаги создания пользовательских малых действий для использования в плагине?

**URL:** <https://meta.discourse.org/t/steps-for-creating-custom-small-actions-to-use-in-plugin/144599>\
**Category:** Development\
**Created:** [17.Март.2020 15:17:49 UTC](https://meta.discourse.org/t/steps-for-creating-custom-small-actions-to-use-in-plugin/144599 "2020-03-17T15:17:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Hooksmith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hooksmith/32/142826_2.png) [@Hooksmith](https://meta.discourse.org/u/Hooksmith)\
**Post date:** [18.Март.2020 17:05:10 UTC](https://meta.discourse.org/t/steps-for-creating-custom-small-actions-to-use-in-plugin/144599/3 "2020-03-18T17:05:10Z")

</div>

Спасибо, это очень помогло.

Какой будет лучший способ сделать отображение мелких действий с более богатым текстом?

Текущий вариант:  
 ![image](https://global.discourse-cdn.com/meta/original/3X/9/6/96947f472e0e2c414d28cef93a981bd83f313c82.png)

То, что я хочу: (я достиг этого, вручную добавив класс `cooked` в div с классом `small-action-desc`)

![image](https://global.discourse-cdn.com/meta/original/3X/3/a/3a8b0334f19b131ef9056c09096987860dfdb4cd.png)

Я просмотрел исходный код о пост-трансформаторах, но не нашёл ничего связанного с этим.

* * *

**РЕДАКТИРОВАНИЕ:** в итоге я просто добавил это как .scss

```scss
.custom-message {
    ins {
        background-color: dark-light-choose(
            $success-low,
            scale-color($success, $lightness: -60%)
        );
    }
    del {
        background-color: dark-light-choose(
            $danger-low,
            scale-color($danger, $lightness: -60%)
        );
    }
}

```

---

_[View the full topic](https://meta.discourse.org/t/steps-for-creating-custom-small-actions-to-use-in-plugin/144599)._
