Skip to content

Commit

Permalink
Fix broken theme switcher (#305) [MDS-165]
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisdevtailor authored Jul 8, 2022
1 parent 7ee113a commit cf3a7ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/moon_web/components/example_and_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ defmodule MoonWeb.Components.ExampleAndCode do
<div class="my-2 text-moon-14" :if={slot_assigned?(:note)}>
<p><#slot name="note" /></p>
</div>
<Context>
<Context get={theme_class: theme_class}>
<div class={
"p-4 flex bg-goku-100 text-moon-14 rounded-moon-s-sm",
"moon-design-dark hidden": @selected_button == "code"
}>
<#slot name="example">Example not defined</#slot>
<div class={"w-full bg-transparent", theme_class}>
<#slot name="example">Example not defined</#slot>
</div>
</div>
<div class={
"overflow-scroll",
Expand Down

0 comments on commit cf3a7ad

Please sign in to comment.