From b9b192277d4d649adfc3950c0269f02173a7f4d7 Mon Sep 17 00:00:00 2001 From: Triin Kullisaar <95503530+tkullisaar@users.noreply.github.com> Date: Thu, 21 Sep 2023 10:54:59 +0300 Subject: [PATCH] add note option to examples list --- assets/ds-moon-preset.js | 1 + lib/moon_web/components/example_and_code.ex | 11 +++++------ lib/moon_web/components/examples_list.ex | 1 + .../examples/design/button_example/multi_line.ex | 6 ++++++ 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/assets/ds-moon-preset.js b/assets/ds-moon-preset.js index f64749d3a..2972b0663 100644 --- a/assets/ds-moon-preset.js +++ b/assets/ds-moon-preset.js @@ -439,6 +439,7 @@ module.exports = { ]); addVariant('not-last', '&:not(:last-child)'); addVariant('not-first', '&:not(:first-child)'); + addVariant('empty', '&:empty'); }), ], }; diff --git a/lib/moon_web/components/example_and_code.ex b/lib/moon_web/components/example_and_code.ex index b2d23b821..7a784badd 100644 --- a/lib/moon_web/components/example_and_code.ex +++ b/lib/moon_web/components/example_and_code.ex @@ -24,8 +24,9 @@ defmodule MoonWeb.Components.ExampleAndCode do
<#slot {@note} />
+<#slot {@note} />
-