Skip to content

Tags inheritance seems not to be working with multiple groups #102

@BenjaminMercier19

Description

@BenjaminMercier19

Hi,

Thanks for the great addon, but a difference seems to appeared since my last upgrade. I upgraded to storybook 9 and hence upgraded this addon from 1.0.4 to the latest 2.0.2.
Tags used not to be displayed when there was inheritance from a group (stories or docs inside group), but even if there was a group in a group. This was the expected behavior.
Now that changed and this happen :

  • group 1=> show tag
    • child story 1.1 => no tag
    • child story 1.2 => no tag
    • group 1.3 => no tag
      • child story 1.3.1 => show tag
      • child story 1.3.2 => show tag

In my example, 1.3.1 and 1.3.2 should not display tags, am I wrong on this ? This was the behavior before.

FYI, I'm using those versions :

    "storybook": "9.1.2",
    "storybook-addon-tag-badges": "2.0.2",

and I configured the tags with this :

      display: {
        mdx: ['story', 'component'],
        sidebar: [
          {type: 'story', skipInherited: true},
          {type: 'docs', skipInherited: true},
          {type: 'component', skipInherited: true},
          {type: 'group', skipInherited: true},
        ],
        toolbar: ['docs', 'story'],
      },

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds reproThis issue needs a reproduction MWE to progress

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions