Skip to content

Commit

Permalink
only in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-moreno committed Mar 4, 2025
1 parent 0cb4020 commit d9f6c00
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@
box-shadow: none;
}

#list-item-tag-no-sidebar,
#list-item-tag-play-fn,
#list-item-tag-internal {
display: none;
}

/* -- DARK -- */

body.dark,
Expand Down Expand Up @@ -152,3 +146,20 @@
color: #647084;
}
</style>

<script>
;(function () {
// Hide internal tags in production builds menu
if (window["CONFIG_TYPE"] === "PRODUCTION") {
const style = document.createElement("style")
style.textContent = `
#list-item-tag-no-sidebar,
#list-item-tag-play-fn,
#list-item-tag-internal {
display: none;
}
`
document.head.appendChild(style)
}
})()
</script>

0 comments on commit d9f6c00

Please sign in to comment.