You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we use Storybook its quite helpful to set up classes based on params of a component, but this one gives me false positives for all of the class variants:
<scriptsetuplang="ts">import{computed}from'vue'// ...constvariantClasses=computed(()=>{switch(props.variant){case'primary':
return'oh-btn-primary'case'secondary':
return'oh-btn-secondary'case'tertiary-blue':
return'oh-btn-tertiary-blue'case'tertiary-gray':
return'oh-btn-tertiary-gray'default:
return''}})</script><template><buttonclass="oh-btn" :class="[variantClasses]"><slot/></button></template><stylelang="scss"scoped>
@import"../../assets/styles/main.scss";.oh-btn{
display: flex;align-items: center;justify-content: center;
cursor: pointer;
transition: all0.3sease-in-out;&-primary{/* The selector `.oh-btn-primary` is unused */}&-secondary{/* The selector `.oh-btn-secondary` is unused */}/*...*/</style>
Is it a bug or is there something I've missed in the config?
The text was updated successfully, but these errors were encountered:
As I was working on a PR, I realized that my issue is slightly different (although it results in the same undesired result). I created a new issue here for tracking.
As we use Storybook its quite helpful to set up classes based on params of a component, but this one gives me false positives for all of the class variants:
Is it a bug or is there something I've missed in the config?
The text was updated successfully, but these errors were encountered: