Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Targeting specific elements doesn't create hover effects from nested elements #88

Open
StuDownie opened this issue Sep 14, 2023 · 0 comments

Comments

@StuDownie
Copy link

StuDownie commented Sep 14, 2023

Vue 3.3.4, Tailwind 3.3.3, Storybook 7.4.1 and Pseudo-states 2.1.1

Hover states have disappeared from all our snapshots where we use this method:

  parameters: {
    pseudo: {
      hover: ".showHover",
    },
  },

This example won't work:

  <div class="showHover">
    <code class="hover:bg-red-300">Pseudo test</code>
  </div>

But this will

   <code class="showHover hover:bg-red-300">Pseudo test</code>

Because we're applying showHover to components, they have many nested div's, so nothing is working. However, using the Pseudo States toolbar works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant