Skip to content

Commit

Permalink
Hide internal tags in Storybook filter menu (#1301)
Browse files Browse the repository at this point in the history
* Hide internal tags in Storybook search menu

* only in prod

* prod

* prod
  • Loading branch information
dani-moreno authored Mar 4, 2025
1 parent 4c20892 commit b33038d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,22 @@
color: #647084;
}
</style>

<script>
;(function () {
// hide internal tags in production builds menu
setTimeout(function () {
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)
}
}, 100)
})()
</script>

0 comments on commit b33038d

Please sign in to comment.